/*
 * WooCommerce Custom Styles for Toporec Farm Theme
 * Matches the main theme design system
 */

/* ============================================
   SHOP PAGE WRAPPER
   ============================================ */

.shop-page-wrapper {
    padding-top: 0;
    min-height: 80vh;
    background: #ffffff;
}

.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* Shop Header */
.shop-header {
    text-align: center;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

.shop-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.shop-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--light-blue), var(--primary-blue));
    border-radius: 2px;
}

.shop-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* ============================================
   CATEGORY CARDS WITH IMAGES
   ============================================ */

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0;
}

.category-card {
    display: block;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(30, 58, 138, 0.08);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.15);
}

.category-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f1f5f9;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.08);
}

.category-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-card-image::after {
    opacity: 1;
}

/* Category placeholder when no image */
.category-card-image.no-image {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
}

.category-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue, #1e3a8a);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.category-card:hover .category-placeholder {
    opacity: 0.8;
    transform: scale(1.1);
}

.category-card-image.no-image::after {
    display: none;
}

.category-card-content {
    padding: 1.2rem;
    text-align: center;
    background: white;
}

.category-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark, #1e293b);
    margin: 0 0 0.3rem 0;
    transition: color 0.3s ease;
}

.category-card:hover .category-card-title {
    color: var(--primary-blue, #1e3a8a);
}

.category-card-count {
    font-size: 0.85rem;
    color: var(--text-light, #64748b);
    font-weight: 500;
}

/* Responsive category cards */
@media (max-width: 968px) {
    .category-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .category-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .category-card-content {
        padding: 0.8rem;
    }

    .category-card-title {
        font-size: 0.95rem;
    }

    .category-card-count {
        font-size: 0.75rem;
    }
}

/* ============================================
   SHOP CATEGORIES NAV
   ============================================ */

.shop-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding: 0;
}

.shop-categories .category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: white;
    color: #1e293b;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid #f1f5f9;
    transition: all 0.3s ease;
}

.shop-categories .category-link:hover {
    border-color: #3b82f6;
    color: #1e3a8a;
}

.shop-categories .category-link.active {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    border-color: transparent;
}

.shop-categories .cat-count {
    background: rgba(0,0,0,0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.shop-categories .category-link.active .cat-count {
    background: rgba(255,255,255,0.2);
}

/* ============================================
   PRODUCT PAGE CATEGORIES NAV
   ============================================ */

.product-categories-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.product-categories-nav .category-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.product-categories-nav .category-nav-link:first-child {
    background: #f1f5f9;
    color: #1e3a8a;
    font-weight: 600;
}

.product-categories-nav .category-nav-link:hover {
    background: #f1f5f9;
    color: #1e3a8a;
}

.product-categories-nav .category-nav-link svg {
    flex-shrink: 0;
}

.product-categories-nav .nav-separator {
    color: #e2e8f0;
    font-weight: 300;
}

/* Cart/Checkout Page Header */
.cart-page-header {
    text-align: center;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

.cart-page-header .shop-title {
    font-size: 2rem;
}

.cart-page-header .shop-title::after {
    width: 60px;
}

@media (max-width: 768px) {
    .shop-categories {
        gap: 0.5rem;
    }

    .shop-categories .category-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .product-categories-nav {
        gap: 0.5rem;
    }

    .product-categories-nav .category-nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   PRODUCT GRID
   ============================================ */

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

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

.woocommerce ul.products li.product {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(30, 58, 138, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    clear: none !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.15);
}

/* Product Image */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .woocommerce-loop-product__link img {
    width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 10px !important;
    background: #f8fafc;
    transition: transform 0.4s ease;
}

.woocommerce ul.products li.product:hover a img {
    transform: scale(1.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
    overflow: hidden;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    padding: 1.2rem 1.2rem 0.5rem !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 !important;
    transition: color 0.3s ease;
    line-height: 1.4 !important;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title,
.woocommerce ul.products li.product:hover h2 {
    color: #1e3a8a !important;
}

/* Price */
.woocommerce ul.products li.product .price {
    padding: 0 1.2rem 1rem !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product .price del {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 400;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product a.button {
    display: block !important;
    margin: 0 1.2rem 1.2rem !important;
    padding: 0.9rem 1.2rem !important;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2) !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3) !important;
}

.woocommerce ul.products li.product .added_to_cart {
    display: block;
    margin: -0.5rem 1.2rem 1.2rem;
    padding: 0.5rem;
    text-align: center;
    color: #3b82f6;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
}

/* Sale Badge */
.woocommerce span.onsale {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 50px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    z-index: 10 !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.2 !important;
}

/* ============================================
   RESULT COUNT & ORDERING
   ============================================ */

.woocommerce .woocommerce-result-count {
    margin: 0 0 1.5rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

.woocommerce .woocommerce-ordering {
    margin: 0 0 1.5rem 0;
}

.woocommerce .woocommerce-ordering select {
    padding: 0.7rem 2rem 0.7rem 1rem;
    border: 2px solid #f1f5f9;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1e293b;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.woocommerce .woocommerce-ordering select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* ============================================
   SINGLE PRODUCT PAGE
   ============================================ */

.woocommerce div.product {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.woocommerce div.product div.images {
    width: 48% !important;
    float: left !important;
}

.woocommerce div.product div.images img {
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.12);
}

.woocommerce div.product div.summary {
    width: 48% !important;
    float: right !important;
}

.woocommerce div.product .product_title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.woocommerce div.product p.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 2rem;
}

/* Quantity & Add to Cart */
.woocommerce div.product form.cart {
    margin-bottom: 2rem;
}

.woocommerce .quantity .qty {
    width: 70px;
    padding: 0.8rem;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.woocommerce .quantity .qty:focus {
    outline: none;
    border-color: #3b82f6;
}

.woocommerce div.product form.cart .button {
    padding: 1rem 2rem !important;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3) !important;
}

.woocommerce div.product form.cart .button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(30, 58, 138, 0.4) !important;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs {
    clear: both;
    padding-top: 3rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
    margin: 0 0 2rem 0;
    list-style: none;
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    display: block;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #1e3a8a;
    border-bottom-color: #1e3a8a;
}

.woocommerce div.product .woocommerce-tabs .panel {
    padding: 1.5rem 0;
}

/* ============================================
   CART PAGE
   ============================================ */

.woocommerce-cart .shop-container {
    max-width: 1000px;
}

.woocommerce table.shop_table {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(30, 58, 138, 0.08);
}

.woocommerce table.shop_table th {
    background: #1e3a8a;
    color: white;
    font-weight: 600;
    padding: 1rem;
    border: none;
}

.woocommerce table.shop_table td {
    padding: 1.2rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.woocommerce table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

/* Product thumbnail in cart */
.woocommerce table.shop_table td.product-thumbnail {
    width: 80px;
}

.woocommerce table.shop_table td.product-thumbnail img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.woocommerce a.remove {
    color: #ef4444 !important;
    font-size: 1.3rem;
}

.woocommerce a.remove:hover {
    background: #ef4444 !important;
    color: white !important;
}

/* Cart Totals */
.woocommerce .cart_totals {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.12);
}

.woocommerce .cart_totals h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.woocommerce .wc-proceed-to-checkout {
    padding: 1rem 0;
    text-align: center;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.3rem 3rem;
    background: linear-gradient(135deg, #15803d, #22c55e);
    color: white !important;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.15rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(21, 128, 61, 0.3);
    position: relative;
    overflow: hidden;
    width: auto;
    min-width: 280px;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button::after {
    content: '→';
    font-size: 1.3rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover::before {
    left: 100%;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(21, 128, 61, 0.4);
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover::after {
    transform: translateX(5px);
}

/* Update Cart Button */
.woocommerce button[name="update_cart"],
.woocommerce input[name="update_cart"] {
    padding: 0.8rem 1.5rem !important;
    background: #f1f5f9 !important;
    color: #1e3a8a !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.woocommerce button[name="update_cart"]:hover,
.woocommerce input[name="update_cart"]:hover {
    background: #e2e8f0 !important;
    border-color: #1e3a8a !important;
}

/* Coupon Button */
.woocommerce .coupon button,
.woocommerce .coupon input[type="submit"] {
    padding: 0.8rem 1.5rem !important;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.woocommerce .coupon input[type="text"] {
    padding: 0.8rem 1rem !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 50px !important;
    font-size: 0.9rem !important;
}

/* Continue Shopping Link */
.woocommerce .return-to-shop a,
.woocommerce a.button.wc-backward {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #f1f5f9;
    color: #1e3a8a;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce .return-to-shop a:hover,
.woocommerce a.button.wc-backward:hover {
    background: #e2e8f0;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */

.woocommerce-checkout .shop-container {
    max-width: 1000px;
}

.woocommerce form .form-row label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    padding: 0.9rem 1.2rem;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    border-color: #3b82f6;
}

.woocommerce #place_order {
    padding: 1.3rem 3rem;
    background: linear-gradient(135deg, #15803d, #22c55e);
    color: white !important;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(21, 128, 61, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 250px;
    position: relative;
    overflow: hidden;
}

.woocommerce #place_order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.woocommerce #place_order:hover::before {
    left: 100%;
}

.woocommerce #place_order:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(21, 128, 61, 0.4);
}

/* ============================================
   MESSAGES
   ============================================ */

.woocommerce-message,
.woocommerce-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e3a8a;
    border: none;
    border-left: 4px solid #3b82f6;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}

.woocommerce-message::before,
.woocommerce-info::before {
    position: static !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #3b82f6;
    color: white !important;
    border-radius: 50%;
    font-size: 1rem;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
}

.woocommerce-message a,
.woocommerce-info a {
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: underline;
}

.woocommerce-message a:hover,
.woocommerce-info a:hover {
    color: #3b82f6;
}

.woocommerce-message a.button,
.woocommerce-info a.button {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: #1e3a8a;
    color: white !important;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover {
    background: #3b82f6;
}

.woocommerce-error {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fef2f2;
    color: #991b1b;
    border: none;
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.woocommerce-error::before {
    position: static !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ef4444;
    color: white !important;
    border-radius: 50%;
    font-size: 1rem;
    margin: 0 !important;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.woocommerce .woocommerce-breadcrumb {
    padding: 0 0 1rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

.woocommerce .woocommerce-breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover {
    color: #1e3a8a;
}

/* ============================================
   PAGINATION
   ============================================ */

.woocommerce nav.woocommerce-pagination {
    margin-top: 3rem;
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
    border: none;
    display: inline-flex;
    gap: 0.5rem;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 0.7rem 1rem;
    background: white;
    color: #1e293b;
    border: 2px solid #f1f5f9;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

/* ============================================
   PLACEHOLDER IMAGE
   ============================================ */

.woocommerce ul.products li.product a img.woocommerce-placeholder,
.woocommerce ul.products li.product img.wp-post-image[src*="placeholder"] {
    background: linear-gradient(135deg, #f1f5f9, #f8fafc);
    border: 2px dashed #93c5fd;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    .shop-title {
        font-size: 2.2rem;
    }

    .woocommerce div.product div.images,
    .woocommerce div.product div.summary {
        width: 100% !important;
        float: none !important;
    }

    .woocommerce div.product div.images {
        margin-bottom: 2rem;
    }
}

@media (max-width: 600px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }

    .shop-container {
        padding: 1rem;
    }

    .shop-title {
        font-size: 1.8rem;
    }

    .woocommerce div.product .product_title {
        font-size: 1.5rem;
    }

    .woocommerce div.product p.price {
        font-size: 1.4rem;
    }
}

/* ============================================
   CART RESPONSIVE - Premium Mobile Design
   ============================================ */

@media (max-width: 768px) {
    .woocommerce-cart .shop-container {
        padding: 0.5rem;
    }

    .woocommerce-cart .cart-page-header {
        padding: 0.8rem 0;
    }

    .woocommerce-cart .cart-page-header .shop-title {
        font-size: 1.5rem;
    }

    /* Cart table -> card layout on mobile */
    .woocommerce table.shop_table {
        border-radius: 16px;
        box-shadow: none;
        background: transparent;
    }

    .woocommerce table.shop_table thead {
        display: none;
    }

    .woocommerce table.shop_table tbody {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .woocommerce table.shop_table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        background: #ffffff;
        border-radius: 16px;
        padding: 1rem;
        box-shadow: 0 2px 12px rgba(30, 58, 138, 0.08);
        border: 1px solid #f1f5f9;
        position: relative;
    }

    .woocommerce table.shop_table tbody tr.cart_item {
        gap: 0.5rem;
    }

    /* Remove button - top right corner */
    .woocommerce table.shop_table td.product-remove {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        padding: 0 !important;
        border: none !important;
        width: auto;
    }

    .woocommerce table.shop_table td.product-remove::before {
        display: none;
    }

    .woocommerce a.remove {
        font-size: 1.2rem !important;
        width: 28px !important;
        height: 28px !important;
        line-height: 26px !important;
        border-radius: 50%;
        background: #fef2f2;
        text-align: center;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Thumbnail */
    .woocommerce table.shop_table td.product-thumbnail {
        width: 70px !important;
        padding: 0 !important;
        border: none !important;
        flex-shrink: 0;
    }

    .woocommerce table.shop_table td.product-thumbnail::before {
        display: none !important;
    }

    .woocommerce table.shop_table td.product-thumbnail img {
        width: 70px !important;
        height: 70px !important;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    /* Product name - next to thumbnail */
    .woocommerce table.shop_table td.product-name {
        flex: 1;
        padding: 0 0 0 0.8rem !important;
        border: none !important;
        font-weight: 600;
        font-size: 0.95rem;
        color: #1e293b;
    }

    .woocommerce table.shop_table td.product-name::before {
        display: none !important;
    }

    .woocommerce table.shop_table td.product-name a {
        color: #1e293b;
        text-decoration: none;
        font-weight: 600;
    }

    /* Price, Quantity, Subtotal - full row below */
    .woocommerce table.shop_table td.product-price,
    .woocommerce table.shop_table td.product-quantity,
    .woocommerce table.shop_table td.product-subtotal {
        width: 33.33%;
        text-align: center;
        padding: 0.6rem 0.3rem !important;
        border: none !important;
        border-top: 1px solid #f1f5f9 !important;
        font-size: 0.9rem;
    }

    .woocommerce table.shop_table td.product-price::before,
    .woocommerce table.shop_table td.product-quantity::before,
    .woocommerce table.shop_table td.product-subtotal::before {
        content: attr(data-title);
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.2rem;
    }

    .woocommerce table.shop_table td.product-subtotal {
        font-weight: 700;
        color: #1e3a8a;
    }

    /* Quantity input */
    .woocommerce table.shop_table td.product-quantity .quantity input {
        width: 50px !important;
        padding: 0.4rem !important;
        font-size: 0.9rem;
        border-radius: 8px;
        border: 2px solid #e2e8f0;
        text-align: center;
    }

    /* Actions row */
    .woocommerce table.shop_table tbody tr.actions-row td,
    .woocommerce table.shop_table td.actions {
        width: 100% !important;
        padding: 1rem !important;
        background: transparent;
        border: none !important;
        border-radius: 16px;
    }

    /* Coupon */
    .woocommerce .coupon {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        margin-bottom: 0.8rem;
    }

    .woocommerce .coupon input[type="text"] {
        flex: 1;
        width: auto !important;
        padding: 0.8rem 1rem !important;
        border-radius: 12px !important;
        border: 2px solid #e2e8f0 !important;
        font-size: 0.9rem;
    }

    .woocommerce .coupon button,
    .woocommerce .coupon input[type="submit"] {
        border-radius: 12px !important;
        padding: 0.8rem 1.2rem !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
    }

    /* Update cart */
    .woocommerce button[name="update_cart"],
    .woocommerce input[name="update_cart"] {
        width: 100%;
        border-radius: 12px !important;
        padding: 0.8rem !important;
    }

    /* Cart Totals */
    .woocommerce .cart_totals {
        padding: 1.2rem;
        border-radius: 16px;
        margin-top: 1rem;
    }

    .woocommerce .cart_totals h2 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .woocommerce .cart_totals table td,
    .woocommerce .cart_totals table th {
        padding: 0.7rem 0.5rem !important;
        font-size: 0.9rem;
    }

    /* Checkout button */
    .woocommerce .wc-proceed-to-checkout a.checkout-button {
        padding: 1.1rem 2rem;
        font-size: 1rem;
        width: 100%;
        min-width: auto;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .woocommerce table.shop_table td.product-thumbnail img {
        width: 55px !important;
        height: 55px !important;
    }

    .woocommerce table.shop_table td.product-name {
        font-size: 0.85rem;
    }

    .woocommerce table.shop_table td.product-price,
    .woocommerce table.shop_table td.product-quantity,
    .woocommerce table.shop_table td.product-subtotal {
        font-size: 0.85rem;
    }

    .woocommerce .cart-page-header .shop-title {
        font-size: 1.3rem;
    }

    .woocommerce .wc-proceed-to-checkout a.checkout-button {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   CART ICON IN MENU (for WooCommerce pages)
   ============================================ */

.menu-item-cart {
    position: relative;
}

.menu-item-cart .cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem !important;
    position: relative;
}

.menu-item-cart .cart-link svg {
    stroke: #1e293b;
    transition: all 0.3s ease;
}

.menu-item-cart .cart-link:hover svg {
    stroke: #1e3a8a;
}

.menu-item-cart .cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* =================================
   RELATED PRODUCTS - FIX ALIGNMENT
   ================================= */
.woocommerce div.product .related.products,
.woocommerce div.product section.related {
    clear: both !important;
    width: 100% !important;
    float: none !important;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.woocommerce div.product .related.products > h2,
.woocommerce div.product section.related > h2 {
    text-align: left !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.woocommerce div.product .related.products ul.products,
.woocommerce div.product section.related ul.products {
    clear: both !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .woocommerce div.product .related.products ul.products,
    .woocommerce div.product section.related ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .woocommerce div.product .related.products ul.products,
    .woocommerce div.product section.related ul.products {
        grid-template-columns: 1fr;
    }
}

/* ============================================


/* ============================================
   SHOP INFO NOTICE
   ============================================ */

.shop-info-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin-top: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #166534;
}

.shop-info-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #22c55e;
}

.shop-info-notice p {
    margin: 0;
}

.shop-info-notice a {
    color: #15803d;
    font-weight: 600;
    text-decoration: none;
}

.shop-info-notice a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .shop-info-notice {
        padding: 1rem;
        font-size: 0.9rem;
        gap: 0.8rem;
    }

    .shop-info-notice svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   WOOCOMMERCE HEADER ADJUSTMENTS
   ============================================ */

