/* Product Shortcode Styles */
.product-card {
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    position: relative;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card-link {
    padding: 25px;
    display: grid;
    grid-template-columns: 250px 1fr auto;
    grid-template-areas: 
        "image info button"
        "logo info button";
    column-gap: 30px;
    align-items: start;
    color: inherit;
    text-decoration: none;
}

.product-card .product-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    grid-area: image;
}

.product-card .product-image {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    max-width: 250px;
}

.product-card .product-title {
    color: #12263A;
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 20px 0;
    padding-left: 15px;
    border-left: 4px solid #CC0000;
    line-height: 1.3;
    grid-area: title;
}

.product-card .product-specs {
    grid-area: info;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.product-card .spec-item {
    margin-bottom: 12px;
    display: flex;
}

.product-card .spec-label {
    font-weight: normal;
    color: #666;
    width: 140px;
    flex-shrink: 0;
}

.product-card .spec-value {
    font-weight: bold;
    color: #333;
}

.product-card .spec-value.highlight {
    color: #CC0000;
    font-size: 18px;
}

.product-card .brand-logo {
    max-height: 50px;
    margin-top: 15px;
    grid-area: logo;
    align-self: flex-end;
}

.product-card .price-button {
    grid-area: button;
    align-self: center;
    justify-self: end;
}

.product-card .btn {
    background-color: #d22630;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.1s;
    white-space: nowrap;
}

.product-card .btn:hover {
    background-color: #b51e27;
    transform: translateY(-2px);
}

.product-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .product-card-link {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "image"
            "title"
            "info"
            "logo"
            "button";
        row-gap: 15px;
        padding: 20px;
    }
    
    .product-card .product-image {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .product-card .price-button {
        justify-self: center;
        margin-top: 15px;
    }
      .product-card .brand-logo {
        justify-self: center;
        margin: 10px 0;
    }
}

/* Optional Battery Styles */
.optional-battery-header {
    width: 100%;
    padding: 15px 0 5px 0;
    margin: 30px 0 20px 0;
    border-top: 1px solid #e1e1e1;
    text-align: center;
}

.optional-battery-header h3 {
    font-size: 20px;
    color: #12263A;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
}

.optional-battery-header h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #CC0000;
}

/* Responsive adjustments for optional battery section */
@media (max-width: 768px) {
    .optional-battery-header {
        padding: 10px 0;
        margin: 20px 0 15px 0;
    }
    
    .optional-battery-header h3 {
        font-size: 18px;
    }
}
