@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&display=swap');


/* Custom Shop Page - Frontend Styles */

/* ===== Base Styles ===== */
* {
    box-sizing: border-box;
}

.csp-shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* ===== Hero Banner ===== */
.csp-hero-banner {
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 40px;
}

.csp-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .csp-hero-banner {
        min-height: 250px;
        max-height: 400px;
    }
}

/* ===== Shop Layout ===== */
.csp-shop-layout {
    display: flex;
    gap: 30px;
    padding: 0 20px 40px;
}

/* ===== Filter Panel ===== */
.csp-filter-panel {
    width: 20%;
    min-width: 250px;
    background: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.csp-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.csp-filter-header h2 {
    font-size: 24px;
    font-weight: 600;
    colour: #333;
    margin: 0;
}

.csp-clear-filters {
    background: none;
    border: none;
    colour: #666;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 0;
}

.csp-filter-section {
    margin-bottom: 25px;
}

.csp-filter-section h3 {
    font-size: 18px;
    font-weight: 600;
   colour: #333;
    margin: 0 0 15px;
}

/* ===== Checkbox Styles ===== */
.csp-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 12px;
    position: relative;
}

.csp-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.csp-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    background: #fff;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.csp-checkbox-label input:checked ~ .csp-checkbox {
    background: #333;
    border-colour: #333;
}

.csp-checkbox-label input:checked ~ .csp-checkbox::after {
    content: '✓';
    colour: #fff;
    font-size: 14px;
    font-weight: bold;
}

.csp-label-text {
    font-size: 15px;
    color: #555;
    flex: 1;
}

.csp-category-count {
    font-size: 13px;
    color: #999;
}

/* ===== Categories Filter ===== */
.csp-category-hidden {
    display: none;
}

.csp-show-more-categories {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.csp-show-more-categories:hover {
    color: #333;
}

/* ===== Price Filter ===== */
.csp-price-filter {
    padding: 10px 0;
}

.csp-price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.csp-price-label {
    font-size: 15px;
    color: #555;
}

.csp-price-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.csp-price-slider {
    width: 100%;
    margin: 15px 0;
    cursor: pointer;
}

.csp-price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
}

.csp-price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.csp-price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #999;
    margin-top: 10px;
}

/* ===== Filter Actions ===== */
.csp-filter-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.csp-apply-filters-btn {
    width: 100%;
    padding: 15px 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.csp-apply-filters-btn:hover {
    background: #555;
}

/* ===== Product Grid Container ===== */
.csp-product-grid-container {
    flex: 1;
    min-width: 0;
}

.csp-products-header {
    margin-bottom: 25px;
}

.csp-products-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

.csp-products-count {
    font-size: 15px;
    color: #999;
}

/* ===== Product Grid ===== */
.csp-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* ===== Product Card ===== */
.csp-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #eee;
}

.csp-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.csp-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.csp-product-image {
    width: 100%;
    padding-top: 120%;
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
}

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

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

.csp-product-info {
    padding: 15px;
}

.csp-product-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.csp-product-price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.csp-product-price del {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

.csp-product-actions {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-top: 1px solid #eee;
}

.csp-wishlist-btn,
.csp-add-to-cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csp-wishlist-btn:hover,
.csp-add-to-cart-btn:hover {
    color: #333;
}

/* ===== No Products ===== */
.csp-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

/* ===== Pagination ===== */
.csp-pagination {
    margin-top: 30px;
}

.csp-pagination ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.csp-pagination li a,
.csp-pagination li span {
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.csp-pagination li a:hover,
.csp-pagination li span.current {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* ===== Mobile Filter Drawer ===== */
.csp-mobile-filter-trigger {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    z-index: 1000;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
}



.csp-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.csp-drawer-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.csp-mobile-filter-drawer.active .csp-drawer-content {
    transform: translateY(0);
}

.csp-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.csp-drawer-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.csp-drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.csp-drawer-filters {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.csp-drawer-actions {
    padding: 20px;
    border-top: 1px solid #eee;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .csp-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .csp-filter-panel {
        display: none;
    }
    
    .csp-shop-layout {
        flex-direction: column;
    }
    
    .csp-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .csp-mobile-filter-trigger {
        display: flex;
    }
}

@media (max-width: 576px) {
    .csp-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .csp-product-name {
        font-size: 14px;
    }
    
    .csp-product-price {
        font-size: 16px;
    }
    
    .csp-filter-panel {
        min-width: 100%;
        max-height: 70vh;
    }
}

/* ===== Product Details Page ===== */
.csp-product-details-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.csp-product-details-layout {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

/* ===== Product Images ===== */
.csp-product-images {
    flex: 1;
    max-width: 600px;
}

.csp-main-image {
    width: 100%;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.csp-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.csp-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
}

.csp-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
}

.csp-thumbnail:hover,
.csp-thumbnail.active {
    border-color: #333;
}

.csp-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Product Info ===== */
.csp-product-info {
    flex: 1;
    max-width: 600px;
}

.csp-product-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
    line-height: 1.3;
}

/* ===== Price Section ===== */
.csp-price-section {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.csp-regular-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.csp-sale-price {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.csp-discount-badge {
    background: #e74c3c;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.csp-price {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

/* ===== Short Description ===== */
.csp-short-description {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

/* ===== Color Selection ===== */
.csp-color-selection {
    margin-bottom: 30px;
}

.csp-color-selection h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
}

.csp-color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.csp-color-swatch {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.csp-color-swatch span {
    display: block;
    width: 100%;
    height: 100%;
}

.csp-color-swatch:hover {
    transform: scale(1.1);
}

.csp-color-swatch.selected {
    border-color: #333;
    transform: scale(1.1);
}

/* ===== Size Selection ===== */
.csp-size-selection {
    margin-bottom: 30px;
}

.csp-size-selection h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
}

.csp-size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.csp-size-option {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.csp-size-option:hover {
    border-color: #333;
}

.csp-size-option.selected {
    background: #333;
    color: #fff;
    border-color: #333;
}

.csp-size-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Quantity Selector ===== */
.csp-quantity-selector {
    margin-bottom: 30px;
}

.csp-quantity-selector h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
}

.csp-quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.csp-qty-minus,
.csp-qty-plus {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.csp-qty-minus:hover,
.csp-qty-plus:hover {
    border-color: #333;
    background: #333;
    color: #fff;
}

#csp-quantity {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* ===== Action Buttons ===== */
.csp-product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.csp-btn-primary,
.csp-btn-secondary {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.csp-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.csp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.csp-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
}

.csp-btn-secondary:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* ===== Product Features ===== */
.csp-product-features {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.csp-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.csp-feature-item:last-child {
    margin-bottom: 0;
}

.csp-feature-item svg {
    color: #333;
}

/* ===== Key Features ===== */
.csp-key-features {
    margin-bottom: 30px;
}

.csp-key-features h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
}

.csp-key-features p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ===== Long Description ===== */
.csp-long-description {
    margin-bottom: 30px;
}

.csp-long-description h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
}

.csp-description-content {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

/* ===== Reviews Section ===== */
.csp-reviews-section {
    margin-bottom: 40px;
}

.csp-reviews-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
}

/* ===== Related Products ===== */
.csp-related-products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.csp-related-products h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 30px;
    text-align: center;
}

.csp-related-products .csp-product-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== Responsive Product Details ===== */
@media (max-width: 992px) {
    .csp-product-details-layout {
        flex-direction: column;
    }
    
    .csp-product-images,
    .csp-product-info {
        max-width: 100%;
    }
    
    .csp-product-title {
        font-size: 28px;
    }
    
    .csp-related-products .csp-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .csp-product-details-container {
        padding: 20px 10px;
    }
    
    .csp-product-title {
        font-size: 24px;
    }
    
    .csp-price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .csp-product-actions {
        flex-direction: column;
    }
    
    .csp-thumbnails {
        justify-content: flex-start;
    }
}


/*-----------------------------------------------*/

/* ================= FINAL PRODUCT CARD (LOCKED) ================= */

/* CARD – ALL CORNERS ROUNDED */
.csp-product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

/* IMAGE WRAP – 3:4 RATIO */
.csp-product-image-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    width: 100%;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

/* IMAGE – FULL IMAGE, NO CROP */
.csp-product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


/* WISHLIST – PURE HEART ICON (NO BG) */
.csp-wishlist-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 3;
}

/* HEART ICON – DEFAULT WHITE */
.csp-wishlist-btn svg {
    width: 26px;               /* ⬅️ SLIGHTLY BIGGER */
    height: 26px;
    fill: none;
    stroke: #fff;              /* WHITE HEART */
    stroke-width: 2;
    transition: fill 0.25s ease,
                stroke 0.25s ease,
                transform 0.2s ease;
}

/* ACTIVE – BLUE HEART */
.csp-wishlist-btn.active svg {
    fill: #2563eb;
    stroke: #2563eb;
}

/* HOVER – LITTLE POP */
.csp-wishlist-btn:hover svg {
    transform: scale(1.12);
}


.csp-wishlist-btn svg {
    width: 18px;
    height: 18px;
    fill: transparent;
    stroke: #000;
    stroke-width: 2;
    transition: fill 0.25s ease, stroke 0.25s ease;

}

.csp-wishlist-btn.active svg {
    fill: #2563eb;
    stroke: #2563eb;
}

/* QUICK VIEW – RECTANGLE, SLIDE UP */
.csp-quick-view {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -60px;
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 0;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: bottom 0.3s ease;
}

.csp-product-card:hover .csp-quick-view {
    bottom: 16px;
}

/* CONTENT */
.csp-card-content {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* TITLE – SAME HEIGHT ALL CARDS */
.csp-product-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    min-height: 42px;
    margin: 0;
    color: #000;
}

/* PRICE ROW */
.csp-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* PRICE ORDER FIX (SALE LEFT, REGULAR RIGHT) */
.csp-product-price {
    display: flex;
    align-items: center;
    gap: 6px;
}

.csp-product-price ins {
    order: 1;
    text-decoration: none;
    font-weight: 600;
    color: #000;
}

.csp-product-price del {
    order: 2;
    font-size: 14px;
    color: #777;
}

/* CART ICON – BAG OUTLINE */
.csp-add-to-cart-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.csp-add-to-cart-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #000;
    stroke-width: 2;
}

/* MOBILE – SAME LOOK */
@media (max-width: 768px) {
    .csp-product-name {
        font-size: 14px;
    }
}

/*-----------------------*/


/* ================= PREMIUM SIZE POPUP ================= */

.csp-size-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* POPUP BOX */
.csp-size-popup {
    background: #fff;
    width: 92%;
    max-width: 360px;          /* 🔥 SLIGHTLY SMALLER */
    border-radius: 20px;
    padding: 22px 22px 24px;
    text-align: center;
    animation: popFromBag 0.35s cubic-bezier(.4,0,.2,1);
}

/* BAG-STYLE ANIMATION */
@keyframes popFromBag {
    0% {
        transform: scale(0.85) translateY(10px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* TITLE */
.csp-size-popup-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111;
}

/* SUBTITLE */
.csp-size-popup-sub {
    font-size: 14px;
    color: #666;
    margin-bottom: 18px;
}

/* SIZE GRID */
.csp-size-popup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* SIZE BOX */
.csp-size-popup-size {
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 12px 0;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.csp-size-popup-size:hover {
    border-color: #111;
}

.csp-size-popup-size.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ACTION BUTTONS */
.csp-size-popup-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

/* ADD TO BAG */
.csp-size-confirm {
    flex: 1;
    padding: 14px;
    background: rgba(0,0,0,0.9);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease;
}

.csp-size-confirm:hover {
    background: #000;
    transform: translateY(-1px);
}

/* CANCEL */
.csp-size-cancel {
    flex: 1;
    padding: 14px;
    background: rgba(0,0,0,0.08);
    color: #111;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}

.csp-size-cancel:hover {
    background: rgba(0,0,0,0.15);
}
/*------------------------------------------------------*/

/* ===========================
   PREMIUM SIZE SELECTOR (ZARA STYLE)
   =========================== */

.csp-size-selection {
    margin-top: 24px;
}

.csp-size-selection h3 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 14px;
}

/* GRID */
.csp-size-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* SIZE BOX */
.csp-size-option {
    background: #fff;
    border: 1px solid #d6d6d6;
    border-radius: 2px;              /* Zara style: almost flat */
    padding: 12px 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #111;
    cursor: pointer;
    text-align: center;
    transition: all 0.18s ease;
}

/* HOVER */
.csp-size-option:hover {
    border-color: #111;
}

/* SELECTED */
.csp-size-option.selected {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* DISABLED (OUT OF STOCK) */
.csp-size-option.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* MOBILE */
@media (max-width: 768px) {
    .csp-size-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*----------------------------------------------------------*/

/* ===== PREMIUM COLOR SELECTOR ===== */

.csp-color-selection {
    margin: 18px 0 26px;
}

.csp-color-selection h3 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.csp-color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.csp-color-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    padding: 3px;
    background: none;
    cursor: pointer;
    transition: border 0.25s ease;
}

.csp-color-swatch.selected {
    border-color: #000;
}

.csp-color-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

/*-----------------------------------------------*/

.csp-main-image {
    overflow: hidden;
    position: relative;
}

.csp-main-carousel-img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.csp-slide-out {
    transform: translateX(-100%);
    opacity: 0;
}

.csp-slide-in {
    transform: translateX(100%);
    opacity: 0;
}

.csp-slide-active {
    transform: translateX(0);
    opacity: 1;
}





.csp-main-image img {
    transition: opacity 0.35s ease;
    will-change: opacity;
}


/* ===============================
   PREMIUM PRODUCT ACTION BUTTONS
   =============================== */

.csp-product-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

/* COMMON BUTTON BASE */
.csp-product-actions button {
    width: 100%;
    height: 56px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===============================
   ADD TO CART – SOFT MATTE BLACK
   =============================== */
.csp-add-to-cart-btn {
    background: rgba(15, 15, 15, 0.92);
    color: rgba(255, 255, 255, 0.88);
    border: none;
    backdrop-filter: blur(6px);
}

/* subtle shine layer */
.csp-add-to-cart-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255,255,255,0.08),
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

/* hover */
.csp-add-to-cart-btn:hover {
    background: rgba(10, 10, 10, 0.98);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.csp-add-to-cart-btn:hover::before {
    transform: translateX(100%);
}

/* ===============================
   BUY NOW – RICH DARK CONTRAST
   =============================== */
.csp-buy-now-btn {
    background: rgba(255, 255, 255, 0.92);
    color: rgba(10, 10, 10, 0.9);
    border: 1.5px solid rgba(10,10,10,0.25);
    backdrop-filter: blur(6px);
}

/* hover */
.csp-buy-now-btn:hover {
    background: rgba(10, 10, 10, 0.92);
    color: rgba(255,255,255,0.95);
    border-color: rgba(10,10,10,0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}

/* ===============================
   ACTIVE / PRESS EFFECT
   =============================== */
.csp-product-actions button:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* ===============================
   MOBILE TOUCH FEEL
   =============================== */
@media (max-width: 768px) {
    .csp-product-actions button {
        height: 52px;
        font-size: 14.5px;
    }
}









/* ===============================
   PRODUCT CARD – CART ICON (PLAIN)
   =============================== */

.csp-product-card .csp-add-to-cart-btn {
    background: transparent !important;
    border: none !important;
    padding: 6px;
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(0,0,0,0.85);
    transition: transform 0.25s ease, color 0.25s ease;
}

/* SVG bag icon */
.csp-product-card .csp-add-to-cart-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

/* Hover – premium subtle */
.csp-product-card .csp-add-to-cart-btn:hover {
    color: #000;
    transform: translateY(-1px);
}

/* Active click */
.csp-product-card .csp-add-to-cart-btn:active {
    transform: scale(0.94);
}

/* REMOVE any pseudo circle/bg */
.csp-product-card .csp-add-to-cart-btn::before,
.csp-product-card .csp-add-to-cart-btn::after {
    display: none !important;
}
/*------------------------------------------------------------------*/

/* =================================================
   DESKTOP / LARGE SCREENS (SIDEBAR FILTER)
================================================= */
@media (min-width: 1025px) {

    .csp-filter-panel {
        display: block;
        position: sticky;
        top: 20px;
        width: 280px;
        max-height: calc(100vh - 40px);
        background: #fff;
        border-radius: 16px;
        padding: 20px;
        overflow-y: auto;
    }

    /* Only categories scroll if needed */
    .csp-categories-filter {
        max-height: 260px;
        overflow-y: auto;
        padding-right: 6px;
    }

    .csp-mobile-filter-trigger,
    .csp-mobile-filter-drawer {
        display: none !important;
    }
}


/* =================================================
   MOBILE + TABLET FILTER BUTTON
================================================= */

.csp-mobile-filter-trigger {
    display: none;
}

@media (max-width: 1024px) {

    .csp-filter-panel {
        display: none !important;
    }

    .csp-mobile-filter-trigger {
        display: flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
        background: #000;
        color: #fff;
        padding: 14px 22px;
        border-radius: 999px;
        font-weight: 500;
        cursor: pointer;
        box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    }
}

/* Filter count badge */
.csp-filter-count {
    background: #fff;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
}


/* =================================================
   MOBILE FILTER DRAWER (BOTTOM SLIDE)
================================================= */

.csp-mobile-filter-drawer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}

.csp-mobile-filter-drawer.active {
    pointer-events: auto;
}

/* Overlay */
.csp-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity .3s ease;
}

.csp-mobile-filter-drawer.active .csp-drawer-overlay {
    opacity: 1;
}

/* Drawer panel */
.csp-drawer-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 90vh;
    background: #fff;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}

/* Open state */
.csp-mobile-filter-drawer.active .csp-drawer-content {
    transform: translateY(0);
}

/* Scroll area */
.csp-drawer-filters {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Apply button fixed */
.csp-drawer-actions {
    padding: 16px;
    border-top: 1px solid #eee;
    background: #fff;
}















.csp-login-required-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.csp-login-required-box {
    background: #fff;
    width: 90%;
    max-width: 360px;
    padding: 22px;
    border-radius: 14px;
    text-align: center;
    position: relative;
}

.csp-login-required-box h3 {
    margin-bottom: 10px;
}

.csp-login-btn {
    width: 100%;
    padding: 12px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.csp-login-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}



/* ================= FINAL MODERN LOGIN POPUP ================= */

.csp-login-required-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 16, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: overlayFade .35s ease forwards;
}

/* POPUP BOX */
.csp-login-required-box {
    width: 92%;
    max-width: 420px;
    background: rgba(255,255,255,0.96);
    border-radius: 18px;
    padding: 36px 28px 32px;
    text-align: center;
    position: relative;
    box-shadow: 0 28px 70px rgba(0,0,0,.28);
    font-family: "Inter", "Poppins", system-ui, -apple-system, sans-serif;
    animation: popupEnter .45s cubic-bezier(.22,1,.36,1);
}

/* TITLE */
.csp-login-required-box h3 {
    font-size: 25px;
    font-weight: 700;
    color: #111;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(-10px);
    animation: textFade .4s ease forwards;
    animation-delay: .12s;
}

/* TEXT */
.csp-login-required-box p {
    font-size: 15.5px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(10px);
    animation: textFade .4s ease forwards;
    animation-delay: .22s;
}

/* 🔥 LOGIN BUTTON */
.csp-login-btn {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: none;
    cursor: pointer;

    /* transparent black */
    background: rgba(0,0,0,0.88);
    color: #fff;

    font-size: 15px;
    font-weight: 600;
    letter-spacing: .4px;
    font-family: inherit;

    box-shadow: 0 14px 34px rgba(0,0,0,.35);

    opacity: 0;
    transform: translateY(36px);
    animation: buttonSlide .5s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: .32s;

    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

/* Hover */
.csp-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(0,0,0,.45);
    opacity: .95;
}

/* Active – NO BLUE */
.csp-login-btn:active {
    transform: scale(.97);
    background: rgba(0,0,0,0.9);
}

/* Remove browser blue focus */
.csp-login-btn:focus,
.csp-login-btn:focus-visible {
    outline: none;
    box-shadow: 0 14px 34px rgba(0,0,0,.35);
}

/* ❌ CLOSE ICON – SIMPLE */
.csp-login-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #444;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.csp-login-close:hover {
    color: #000;
}

/* ================= ANIMATIONS ================= */

@keyframes popupEnter {
    from {
        opacity: 0;
        transform: scale(.92) translateY(22px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

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

@keyframes overlayFade {
    from { opacity: 0 }
    to   { opacity: 1 }
}

/* MOBILE */
@media (max-width: 480px) {
    .csp-login-required-box {
        padding: 30px 22px;
        border-radius: 16px;
    }

    .csp-login-required-box h3 {
        font-size: 22px;
    }
}
