/* ============================================
   WOOCOMMERCE FULL WIDTH OVERRIDE
   ============================================ */
/* Force full width - override WooCommerce container */
.woocommerce .site-main,
.woocommerce-page .site-main {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce .content-area,
.woocommerce-page .content-area {
    max-width: 100% !important;
    width: 100% !important;
}

/* Remove default WooCommerce padding/margins */
.woocommerce,
.woocommerce-page {
    padding:80px 0 0 0 !important;
}

/* ============================================
   SHOP HERO WITH IMAGE
   ============================================ */
.shop-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    padding: 140px 20px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a4d68 0%, #1a1a2e 50%, #16213e 100%);
}

/* Hero Background Image */
.shop-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shop-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* Gradient Overlays */
.shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(210, 23, 118, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(34, 150, 208, 0.1) 0%, transparent 50%);
    z-index: 2;
}

.shop-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(
        circle,
        rgba(210, 23, 118, 0.15) 0%,
        transparent 70%
    );
    z-index: 2;
}

/* Hero Content */
.shop-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.shop-hero-title {
    font-family: 'Play', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px;
    line-height: 1.2;
    text-shadow: 
        0 0 20px rgba(210, 23, 118, 0.5),
        0 0 40px rgba(34, 150, 208, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.5);
}

.shop-hero-subtitle {
    font-family: 'Play', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

/* Mobile Hero */
@media (max-width: 768px) {
    .shop-hero {
        min-height: 270px;
        padding: 120px 20px 40px;
    }
    
    .shop-hero-title {
        font-size: 32px;
    }
    
    .shop-hero-subtitle {
        font-size: 16px;
    }
}

/* ============================================
   CATEGORY TABS - GLASSMORPHISM (YOUR STYLES)
   ============================================ */
.shop-filters-wrapper {
    position: sticky;
    top: 95px; /* Below header (65px + 20px margin + 10px gap) */
    z-index: 100;
	 padding: 0 20px 20px;
    margin:10px 0 30px 0;
	  max-width: 1250px;      /* ✓ Added */
    margin-left: auto;       /* ✓ Added */
    margin-right: auto;      /* ✓ Added */
 }

.category-tabs-wrapper {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.category-tabs-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.category-tabs {
    display: flex;
    gap: 8px;
    min-width: min-content;
    padding: 2px;
}

.cat-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Play', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 40px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    outline: none;
}

.cat-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cat-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, #D21776 0%, #2296D0 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 20px rgba(210, 23, 118, 0.3),
        0 0 30px rgba(34, 150, 208, 0.2);
}

.cat-tab-text {
    font-size: 12px;
    font-weight: 500;
}

.cat-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    line-height: 1;
}

.cat-tab.active .cat-tab-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Mobile tabs - smaller padding */
@media (max-width: 768px) {
    .shop-filters-wrapper {
        top: 75px; /* Below mobile header */
        padding: 0 15px 15px;
    }
    
    .category-tabs-wrapper {
        padding: 8px;
    }
    
    .cat-tab {
        padding: 10px 18px;
        font-size: 12px;
    }
    
    .cat-tab-count {
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        font-size: 11px;
    }
}

/* ============================================
   SHOP CONTROLS (YOUR SORT/COUNT STYLES)
   ============================================ */
.shop-controls {
	 max-width: 1250px;      /* ✓ Added */
    margin-left: auto;       /* ✓ Added */
    margin-right: auto;      /* ✓ Added */
    padding: 0 20px 20px;
    margin-bottom: 20px;
}

.shop-controls-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.shop-result-count,
.woocommerce-result-count {
    font-family: 'Play', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.shop-ordering,
.woocommerce-ordering {
    display: flex;
    align-items: center;
    gap: 10px;
}

.woocommerce-ordering select {
    font-family: 'Play', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 35px 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='white' stroke-opacity='0.6' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.woocommerce-ordering select:hover,
.woocommerce-ordering select:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.woocommerce-ordering select option {
    background: #0a0a1c;
    color: #ffffff;
    padding: 10px;
}

/* Mobile controls - stack vertically */
@media (max-width: 768px) {
    .shop-controls {
        padding: 0 15px 15px;
    }
    
    .shop-controls-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
        gap: 12px;
    }
    
    .shop-ordering,
    .woocommerce-ordering {
        width: 100%;
    }
    
    .woocommerce-ordering select {
        width: 100%;
    }
}

/* ============================================
   PRODUCTS GRID - 3 COLUMNS (WIDTH METHOD)
   ============================================ */
.shop-products {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px 60px;
    transition: opacity 0.3s ease;
}

.shop-products.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* WooCommerce products list */
ul.products {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
 gap:15px;
}

/* Desktop: 3 Columns with Width Method */
ul.products li.product {
    width: 30.78% !important;
    margin-right: 10px !important;
    margin-bottom: 40px !important;
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
    padding: 0 !important; /* Remove any padding */
}

/* Remove margin on every 3rd item (last in each row) */
ul.products li.product:nth-child(3n) {
    margin-right: 0 !important;
}

ul.products li.product:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(210, 23, 118, 0.3);
    transform: translateY(-5px);
    box-shadow: 
        0 10px 40px rgba(210, 23, 118, 0.2),
        0 0 60px rgba(34, 150, 208, 0.1);
}

/* ============================================
   PRODUCT IMAGE
   ============================================ */
.products li.product .woocommerce-loop-product__link {
    display: block;
    text-decoration: none;
    padding: 0 !important; /* Remove padding */
    border-radius: 0 !important; /* Remove border radius */
}

.products li.product img {
    transition: transform 0.4s ease;
    padding: 0 !important; /* Remove padding */
    margin: 0 !important; /* Remove margin */
}

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

/* ============================================
   ADD TO CART BUTTON
   ============================================ */
.products li.product .button {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px 20px;
    font-family: 'Play', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, #D21776 0%, #2296D0 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products li.product .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(210, 23, 118, 0.4);
}

.products li.product .button.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   SALE BADGE
   ============================================ */
.products li.product .onsale {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    font-family: 'Play', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: #D21776;
    border-radius: 8px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   PAGINATION
   ============================================ */
.woocommerce-pagination {
    margin: 40px 0 0;
    padding: 0 20px;
}

.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-pagination ul li {
    margin: 0;
    border: none !important;
    background: transparent !important;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-family: 'Play', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce-pagination ul li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.woocommerce-pagination ul li span.current {
    color: #ffffff;
    background: linear-gradient(135deg, #D21776 0%, #2296D0 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(210, 23, 118, 0.3);
}

/* Prev/Next arrows */
.woocommerce-pagination ul li .prev,
.woocommerce-pagination ul li .next {
    font-size: 18px;
}

/* ============================================
   TABLET BREAKPOINT (2 COLUMNS)
   ============================================ */
@media (max-width: 991px) {
    .shop-products {
        padding: 0 15px 40px;
    }
    
    ul.products li.product {
        width: 49% !important;
        margin-right: 2% !important;
        margin-bottom: 30px !important;
    }
    
    /* Remove margin on every 2nd item */
    ul.products li.product:nth-child(3n) {
        margin-right: 2% !important; /* Reset 3n rule */
    }
    
    ul.products li.product:nth-child(2n) {
        margin-right: 0 !important;
    }
}

/* ============================================
   MOBILE BREAKPOINT
   ============================================ */
@media (max-width: 768px) {
    .shop-products {
        padding: 0 15px 40px;
    }
    
    ul.products li.product {
        width: 49% !important;
        margin-right: 2% !important;
        margin-bottom: 25px !important;
    }
    
    ul.products li.product:nth-child(2n) {
        margin-right: 0 !important;
    }
    
    .products li.product .woocommerce-loop-product__title {
        font-size: 14px;
        margin: 12px 15px 6px;
    }
    
    .products li.product .price {
        font-size: 16px;
        margin: 0 15px 12px;
    }
    
    .products li.product .button {
        width: calc(100% - 30px);
        margin: 0 15px 15px;
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .products li.product .onsale {
        top: 10px;
        right: 10px;
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .woocommerce-pagination {
        padding: 0 15px;
    }
    
    .woocommerce-pagination ul {
        gap: 6px;
    }
    
    .woocommerce-pagination ul li a,
    .woocommerce-pagination ul li span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* ============================================
   SMALL MOBILE (< 400px) - 1 COLUMN
   ============================================ */
@media (max-width: 400px) {
    ul.products li.product {
        width: 100% !important;
        margin-right: 0 !important;
    }
    
    ul.products li.product:nth-child(2n) {
        margin-right: 0 !important;
    }
}

/* ============================================
   NO PRODUCTS FOUND
   ============================================ */
.woocommerce-info,
.woocommerce-no-products-found {
    padding: 40px;
    text-align: center;
    font-family: 'Play', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    margin: 20px;
}

/* ============================================
   LOADING STATE
   ============================================ */
.shop-products[style*="opacity: 0.5"] {
    position: relative;
}

.shop-products[style*="opacity: 0.5"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #D21776;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   UTILITIES
   ============================================ */
#shop-ajax-top-anchor {
    position: absolute;
    top: -100px;
    visibility: hidden;
    pointer-events: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}