/* WooCommerce Shop Page Styling Override */

/* 1. Shop Hero Banner */
.snb-shop-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 60px 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.snb-shop-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.snb-shop-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.snb-shop-hero h1 {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.025em;
    line-height: 1.2 !important;
}

.snb-shop-hero p {
    font-size: 16px !important;
    color: #94a3b8 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* 2. Grid Optimization */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

/* 3. Product Card Styling */
.woocommerce ul.products li.product {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
    float: none !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border-color: #cbd5e1 !important;
}

/* Product Thumbnail */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    text-decoration: none !important;
}

.woocommerce ul.products li.product img {
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    background-color: #f8fafc !important;
    transition: opacity 0.2s ease !important;
}

/* Product Title */
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    min-height: 50px !important;
}

/* Product Short Description */
.woocommerce-product-details__short-description {
    font-size: 13px !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
}

/* Product Price */
.woocommerce ul.products li.product span.price {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #2563eb !important;
    margin: auto 0 15px 0 !important;
    display: block !important;
}

.woocommerce ul.products li.product span.price del {
    font-size: 14px !important;
    color: #94a3b8 !important;
    font-weight: normal !important;
}

.woocommerce ul.products li.product span.price ins {
    background: none !important;
    text-decoration: none !important;
    font-weight: 800 !important;
}

/* Add to Cart Button */
.woocommerce ul.products li.product a.button {
    background-color: #2563eb !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: block !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(37,99,235,0.2) !important;
}

.woocommerce ul.products li.product a.button:hover {
    background-color: #1d4ed8 !important;
    transform: scale(1.02) !important;
    box-shadow: 0 4px 6px rgba(37,99,235,0.3) !important;
}

/* Responsive Grid Adapters */
@media (max-width: 991px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    .snb-shop-hero h1 {
        font-size: 26px !important;
    }
}

@media (max-width: 600px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
    .snb-shop-hero {
        padding: 40px 20px;
    }
    .snb-shop-hero h1 {
        font-size: 22px !important;
    }
}

/* ==========================================================================
   Single Product Page Overrides
   ========================================================================== */

/* 1. Grid & Column Split */
@media (min-width: 768px) {
    .woocommerce div.product {
        display: grid !important;
        grid-template-columns: 1fr 1.2fr !important;
        gap: 50px !important;
        margin-top: 20px !important;
    }
    .woocommerce div.product div.images {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }
    .woocommerce div.product div.summary {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Image Border */
.woocommerce div.product div.images img {
    border-radius: 12px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
}

/* 2. Summary Details */
.woocommerce div.product h1.product_title {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
    margin-bottom: 15px !important;
}

/* Price Display */
.woocommerce div.product p.price {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #2563eb !important;
    margin-bottom: 20px !important;
    display: inline-block !important;
}

/* Checklist Styling */
.woocommerce div.product div.summary ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 !important;
}

.woocommerce div.product div.summary ul li {
    position: relative !important;
    padding-left: 28px !important;
    margin-bottom: 12px !important;
    font-size: 14px !important;
    color: #475569 !important;
    line-height: 1.6 !important;
}

.woocommerce div.product div.summary ul li::before {
    content: "✓" !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    color: #10b981 !important;
    font-weight: bold !important;
    font-size: 16px !important;
}

/* Quantity & Button Container */
.woocommerce div.product form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 15px !important;
}

/* Quantity Field */
.woocommerce div.product form.cart div.quantity input.qty {
    height: 48px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 16px !important;
    width: 60px !important;
    background: #f8fafc !important;
}

/* Single Add to Cart Button */
.woocommerce div.product form.cart button.single_add_to_cart_button {
    background-color: #2563eb !important;
    color: #ffffff !important;
    height: 48px !important;
    padding: 0 30px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(37,99,235,0.2) !important;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
    background-color: #1d4ed8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 10px rgba(37,99,235,0.3) !important;
}

/* 3. Product Tabs Overrides */
.woocommerce div.product .woocommerce-tabs {
    grid-column: span 2 !important;
    margin-top: 40px !important;
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 30px !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    border: none !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
    background: none !important;
    display: flex !important;
    gap: 20px !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: none !important;
    border: none !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 10px 0 !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.2s ease !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #2563eb !important;
    border-color: #2563eb !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #475569 !important;
}

/* 4. Upsells & Related Products */
.woocommerce div.product .up-sells,
.woocommerce div.product .related {
    grid-column: span 2 !important;
    margin-top: 50px !important;
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 40px !important;
}

.woocommerce div.product .up-sells h2,
.woocommerce div.product .related h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 25px !important;
}