/* ============================================
   ETHEREAL BALANCE - SHOP STYLES
   ============================================ */

/* Shop Section */
.shop {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
    position: relative;
}

.shop .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.shop .section-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 16px;
}

.shop .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.shop .section-subtitle {
    font-size: 1.05rem;
    color: var(--stone);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Filter Tabs */
.shop-filters {
    display: none;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.shop-filter-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 10px 28px;
    border: 1.5px solid var(--sand);
    border-radius: 50px;
    background: transparent;
    color: var(--stone);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
}

.shop-filter-btn:hover {
    border-color: var(--sage);
    color: var(--sage-dark);
    background: rgba(156, 175, 136, 0.05);
}

.shop-filter-btn.active {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--warm-white);
}

/* Product Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 30px;
    justify-content: center;
}

/* Product Card */
.product-card {
    background: var(--warm-white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sage), var(--terracotta));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--sand);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 14px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--charcoal);
    color: var(--warm-white);
    z-index: 2;
}

.product-badge.sale {
    background: var(--terracotta);
}

.product-badge.digital {
    background: var(--sage-dark);
}

.product-badge.service {
    background: var(--gold);
    color: var(--charcoal);
}

.product-info {
    padding: 24px;
}

.product-category {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 8px;
    display: block;
}

.product-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.product-price .original-price {
    text-decoration: line-through;
    color: var(--stone);
    font-weight: 300;
    margin-left: 8px;
    font-size: 0.95rem;
}

.product-add-btn {
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: var(--charcoal);
    color: var(--warm-white);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
}

.product-add-btn:hover {
    background: var(--sage-dark);
    transform: translateY(-2px);
}

.product-add-btn.added {
    background: var(--sage);
}

/* Product Quick View on Card */
.product-quick-view {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
}

.product-card:hover .product-quick-view {
    opacity: 1;
}

.quick-view-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 24px;
    border: 1.5px solid white;
    border-radius: 50px;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.quick-view-btn:hover {
    background: white;
    color: var(--charcoal);
}

/* Shop Loading Skeleton */
.shop-loading {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 30px;
    justify-content: center;
}

.shop-loading.hidden {
    display: none;
}

.shop-skeleton {
    background: var(--warm-white);
    border-radius: 20px;
    overflow: hidden;
}

.shop-skeleton::before {
    content: '';
    display: block;
    aspect-ratio: 4 / 5;
    background: linear-gradient(90deg, var(--sand) 25%, var(--cream) 50%, var(--sand) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.shop-skeleton::after {
    content: '';
    display: block;
    height: 120px;
    margin: 24px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--sand) 25%, var(--cream) 50%, var(--sand) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    animation-delay: 0.2s;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty State */
.shop-empty {
    text-align: center;
    padding: 80px 40px;
    color: var(--stone);
}

.shop-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.shop-empty h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.shop-empty p {
    font-size: 1rem;
}

/* ============================================
   PRODUCT DETAIL MODAL
   ============================================ */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 45, 45, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.product-modal {
    background: var(--warm-white);
    border-radius: 24px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.4s ease;
}

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

.product-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--cream);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--charcoal);
}

.product-modal-close:hover {
    background: var(--charcoal);
    color: var(--warm-white);
}

.product-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.product-modal-gallery {
    position: relative;
    background: var(--sand);
    border-radius: 24px 0 0 24px;
    overflow: hidden;
}

.product-modal-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-gallery-nav {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.product-modal-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-modal-gallery-dot.active {
    background: white;
    transform: scale(1.2);
}

.product-modal-details {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
}

.product-modal-category {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 12px;
}

.product-modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 12px;
    line-height: 1.2;
}

.product-modal-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 24px;
}

.product-modal-description {
    font-size: 0.95rem;
    color: var(--stone);
    line-height: 1.8;
    margin-bottom: 32px;
    flex: 1;
}

.product-modal-quantity {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.product-modal-quantity label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--charcoal);
    letter-spacing: 0.05em;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--sand);
    border-radius: 12px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--charcoal);
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--cream);
}

.quantity-value {
    width: 48px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-left: 1.5px solid var(--sand);
    border-right: 1.5px solid var(--sand);
    padding: 8px 0;
    color: var(--charcoal);
}

.product-modal-add-btn {
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 18px 24px;
    border: none;
    border-radius: 14px;
    background: var(--charcoal);
    color: var(--warm-white);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.product-modal-add-btn:hover {
    background: var(--sage-dark);
    transform: translateY(-2px);
}

.product-modal-details-list {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--sand);
}

.product-modal-details-list h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.product-modal-details-list ul {
    list-style: none;
    padding: 0;
}

.product-modal-details-list li {
    font-size: 0.9rem;
    color: var(--stone);
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
}

.product-modal-details-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sage);
    transform: translateY(-50%);
}

/* ============================================
   CART DRAWER
   ============================================ */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 45, 45, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 90vw;
    background: var(--warm-white);
    z-index: 1501;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 28px 20px;
    border-bottom: 1px solid var(--sand);
}

.cart-drawer-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--charcoal);
}

.cart-drawer-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--cream);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--charcoal);
}

.cart-drawer-close:hover {
    background: var(--charcoal);
    color: var(--warm-white);
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--sand);
}

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

.cart-item-image {
    width: 80px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--sand);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1.3;
}

.cart-item-category {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-top: 2px;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--sand);
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.cart-item-qty-btn:hover {
    background: var(--cream);
}

.cart-item-qty-value {
    width: 32px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    border-left: 1px solid var(--sand);
    border-right: 1px solid var(--sand);
    padding: 4px 0;
}

.cart-item-price {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--charcoal);
}

.cart-item-remove {
    border: none;
    background: none;
    color: var(--stone);
    font-size: 0.75rem;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
    padding: 2px 0;
}

.cart-item-remove:hover {
    color: var(--terracotta);
}

/* Cart Empty State */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--stone);
}

.cart-empty svg {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-empty h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.cart-empty p {
    font-size: 0.9rem;
}

.cart-empty .btn {
    margin-top: 20px;
    padding: 12px 28px;
    border: 1.5px solid var(--charcoal);
    border-radius: 50px;
    background: transparent;
    color: var(--charcoal);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cart-empty .btn:hover {
    background: var(--charcoal);
    color: var(--warm-white);
}

/* Cart Footer */
.cart-drawer-footer {
    padding: 24px 28px 28px;
    border-top: 1px solid var(--sand);
    background: var(--cream);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cart-subtotal span:first-child {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--stone);
}

.cart-subtotal span:last-child {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--charcoal);
}

.cart-shipping-note {
    font-size: 0.8rem;
    color: var(--stone);
    margin-bottom: 16px;
    text-align: center;
}

.cart-checkout-btn {
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 18px 24px;
    border: none;
    border-radius: 14px;
    background: var(--charcoal);
    color: var(--warm-white);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.cart-checkout-btn:hover {
    background: var(--sage-dark);
    transform: translateY(-2px);
}

.cart-checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Nav Cart Button */
.nav-cart-btn {
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px;
    color: var(--charcoal);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-cart-btn:hover {
    color: var(--sage-dark);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    background: var(--terracotta);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Order Success Banner */
.order-success-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--sage), var(--sage-dark));
    color: white;
    text-align: center;
    padding: 16px 20px;
    z-index: 2500;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.order-success-banner.active {
    transform: translateY(0);
}

.order-success-banner .close-banner {
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.order-success-banner .close-banner:hover {
    background: rgba(255,255,255,0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .shop {
        padding: 80px 0;
    }

    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .shop-loading {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-card {
        border-radius: 16px;
    }

    .product-info {
        padding: 16px;
    }

    .product-info h3 {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .product-add-btn {
        padding: 12px 16px;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .product-quick-view {
        display: none;
    }

    /* Modal responsive */
    .product-modal-grid {
        grid-template-columns: 1fr;
    }

    .product-modal-gallery {
        border-radius: 24px 24px 0 0;
        max-height: 300px;
    }

    .product-modal-details {
        padding: 28px 24px;
    }

    .product-modal-title {
        font-size: 1.6rem;
    }

    /* Cart responsive */
    .cart-drawer {
        width: 100%;
        max-width: 100vw;
    }

    .shop-filters {
        gap: 8px;
        margin-bottom: 30px;
    }

    .shop-filter-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .shop-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shop-loading {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 680px) {
    .shop-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
