* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #800020 0%, #a1233f 50%, #c44569 100%);
    color: #fff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}


.products-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
    letter-spacing: -0.5px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 40px;
}

.product-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 16px;
}

.product-card:hover {
    transform: none;
    box-shadow: none;
}

.product-card:hover .product-image-wrapper {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #ffffff;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}


.quick-view-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(187, 161, 79, 0.3);
}


.quick-view-btn:hover {
    transform: scale(1.1);
    background: #800020;
    stroke: #ffffff;
    box-shadow: 0 4px 12px rgba(187, 161, 79, 0.5);
}
.quick-view-btn:hover svg {
  stroke: #ffffff;  
}

.quick-view-btn svg {
    width: 18px;
    height: 18px;
    stroke: #800020;
    fill: none;
    stroke-width: 2;
    transition: all 0.3s ease;
}

/* Wishlist Button - Keep on right */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wishlist-btn:hover {
    transform: scale(1.1);
    background: #800020;
}

.wishlist-btn.active {
    background: #ff4757;
}

.wishlist-btn svg {
    width: 18px;
    height: 18px;
    stroke: #800020;
    fill: none;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.wishlist-btn:hover svg {
    stroke: #FFFFFF; 
    
}

.wishlist-btn.active svg {
    fill: #ffffff;
    stroke: #ffffff;
}

.new-arrival-badge {
    position: absolute;
    top: 56px;
    left: 12px;
    background: #BBA14F;
    color: #1a1a1a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
}


.discount-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #BBA14F;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(187, 161, 79, 0.4);
}

.product-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.product-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.product-subtitle {
    font-size: 0.8rem;
    color: #95a5a6;
    margin-bottom: 12px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 6px;
}

.stars {
    display: flex;
    gap: 1px;
}

.star {
    color: #ffd700;
    font-size: 0.85rem;
}

.star.empty {
    color: #e0e0e0;
}

.review-count {
    color: #95a5a6;
    font-size: 0.75rem;
}

.product-price {
    margin-bottom: 12px;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-right: 8px;
}

.original-price {
    font-size: 0.9rem;
    color: #bdc3c7;
    text-decoration: line-through;
}

/* Updated Add to Cart Button - FULL WIDTH WITH PRICES INSIDE */
.add-to-cart-btn {
    width: 100%;
    height: 42px;
    background: transparent;
    color: #800020;
    border: 3px solid #800020;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.add-to-cart-btn:hover {
    background: #800020;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(128, 0, 32, 0.4);
}

.add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.add-to-cart-btn .action-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Price inside button styling */
.price-inside-btn {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-original-inline {
    color: #999;
    text-decoration: line-through;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-current-inline {
    color: inherit;
    font-weight: 700;
    font-size: 0.95rem;
}

/* When button is hovered, update inline price colors */
.add-to-cart-btn:hover .price-original-inline {
    color: rgba(255, 255, 255, 0.7);
}

.add-to-cart-btn:hover .price-current-inline {
    color: #fff;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.1rem;
    color: #7f8c8d;
    grid-column: 1 / -1;
}

/* Quick View Modal */
.quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-view-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: #ecf0f1;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.quick-view-close:hover {
    background: #e74c3c;
}

.quick-view-close:hover svg {
    stroke: #ffffff;
}

.quick-view-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
}

.quick-view-image {
    width: 100%;
    border-radius: 12px;
}

.quick-view-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.quick-view-subtitle {
    font-size: 0.95rem;
    color: #95a5a6;
    margin-bottom: 16px;
}

.quick-view-price {
    margin-bottom: 16px;
}

.quick-view-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.quick-view-meta {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #ecf0f1;
    font-size: 0.9rem;
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-label {
    font-weight: 600;
    color: #2c3e50;
}

.meta-value {
    color: #7f8c8d;
}

.quick-view-add-to-cart {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #8B0000 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-view-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.quick-view-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: #8B0000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.quick-view-link:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .quick-view-body {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-title {
        font-size: 0.9rem;
        min-height: 38px;
    }

    .current-price {
        font-size: 1.2rem;
    }
    
    .add-to-cart-btn {
        font-size: 0.8rem;
        height: 38px;
        gap: 6px;
    }
    
    .price-inside-btn {
        font-size: 0.8rem;
    }
    
    .price-original-inline {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.loading {
    text-align: center;
    padding: 30px;
    font-size: 1rem;
    color: #95a5a6;
}

.category-header {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.category-header.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.product-count {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.content-box-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.seo-content-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border: 3px solid #800020;
    border-radius: 30px;
    padding: 50px;
    position: relative;
    box-shadow: 0 10px 40px rgba(128, 0, 32, 0.1);
    overflow: hidden;
}

.seo-content-box::before,
.seo-content-box::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at center, transparent 40%, #800020 41%, #800020 43%, transparent 44%);
    opacity: 0.1;
}

.seo-content-box::before {
    top: -75px;
    left: -75px;
    transform: rotate(45deg);
}

.seo-content-box::after {
    bottom: -75px;
    right: -75px;
    transform: rotate(225deg);
}

.swirl-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid #800020;
    border-radius: 50% 0 50% 50%;
    opacity: 0.15;
}

.swirl-decoration.top-left {
    top: 20px;
    left: 20px;
    transform: rotate(-45deg);
}

.swirl-decoration.bottom-right {
    bottom: 20px;
    right: 20px;
    transform: rotate(135deg);
}

.content-inner {
    position: relative;
    z-index: 1;
}

.seo-content-box h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #800020;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(128, 0, 32, 0.1);
}

.seo-content-box h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #800020;
    margin: 30px 0 15px;
    padding-left: 15px;
    border-left: 4px solid #800020;
}

.seo-content-box h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #800020;
    margin: 25px 0 15px;
    padding-left: 15px;
    border-left: 4px solid #800020;
}

.seo-content-box p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #5a0000;
    margin-bottom: 20px;
    text-align: justify;
}

.seo-content-box a {
    color: #800020;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.seo-content-box a:hover {
    color: #a1233f;
    text-decoration: underline;
}

.seo-content-box ol {
    color: #5a0000;
    font-size: 1.05rem;
    line-height: 1.8;
    padding-left: 25px;
    margin: 20px 0;
}

.seo-content-box ol li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.seo-content-box ol li::marker {
    color: #800020;
    font-weight: 700;
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #800020 50%, transparent 100%);
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '❋';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff5f5;
    padding: 0 15px;
    color: #800020;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .seo-content-box {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .seo-content-box h1 {
        font-size: 1.5rem;
    }

    .seo-content-box h2 {
        font-size: 1.3rem;
    }

    .seo-content-box h3 {
        font-size: 1.2rem;
    }

    .seo-content-box p,
    .seo-content-box ol {
        font-size: 0.95rem;
    }

    .swirl-decoration {
        display: none;
    }
}

.sticky-category-header {
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transition: transform 0.3s ease;
    transform: translateY(0);
    opacity: 1;
    margin: 0 auto;
}

.sticky-category-header.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.products-container {
    padding-top: 120px;
}

.products-grid {
    margin-top: 20px;
}

body {
    background: linear-gradient(135deg, #800020 0%, #a1233f 50%, #c44569 100%);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Make key containers transparent or semi-transparent so gradient shows */
.products-container,
.product-info,
.category-header,
.sticky-category-header,
.seo-content-box {
    background: transparent !important;
}

/* Optional: add subtle frosted effect for readability */
.product-info,
.seo-content-box {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(6px);
}

/* Optional: darken text slightly for better contrast */
.product-title, 
.seo-content-box h1, 
.seo-content-box h2, 
.seo-content-box h3,
.seo-content-box p, 
.seo-content-box li {
    color: #2c2c2c !important;
}

/* ===== FIX MOBILE PRODUCT CARD ALIGNMENT ===== */
@media (max-width: 768px) {
  .products-container {
    padding: 60px 10px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-content: start;
    margin-left: -4px;
  }

  .product-card {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .products-container {
    padding: 50px 6px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-left: -6px;
  }

  .product-card {
    padding: 8px;
  }
}