/* Shop Specific Styles */

/* Shop Hero */
.shop-hero {
    padding: 12rem 0 6rem;
    background: linear-gradient(135deg, var(--porcelain) 0%, var(--soft-blush) 100%);
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 1;
}

.shop-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(125, 124, 120, 0.1) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.5;
}

.shop-hero-content {
    text-align: center;
    max-width: 50rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.shop-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    font-family: var(--font-display);
    color: var(--deep-black);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.shop-hero-subtitle {
    font-size: 1.25rem;
    color: var(--deep-black);
    font-family: var(--font-body);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.shop-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(125, 124, 120, 0.3);
    border-radius: 0.75rem;
    margin: 0 auto;
    max-width: 42rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shop-notice svg {
    flex-shrink: 0;
    color: var(--deep-black);
    margin-top: 0.125rem;
}

.shop-notice p {
    font-size: 0.9375rem;
    color: var(--deep-black);
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Filters */
.shop-filters {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid rgba(125, 124, 120, 0.15);
    position: sticky;
    top: 80px;
    z-index: 40;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-bar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.75rem;
    background: var(--porcelain);
    border: 1px solid rgba(125, 124, 120, 0.2);
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--deep-black);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--soft-blush);
    border-color: var(--dove-gray);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--deep-black);
    color: white;
    border-color: var(--deep-black);
}

/* Products Grid */
.shop-products {
    padding: 5rem 0;
    background: var(--porcelain);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* Product Card */
.product-card-shop {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-shop.hidden {
    display: none;
}

.product-card-shop:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

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

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

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

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: var(--deep-black);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.375rem;
    z-index: 2;
}

.product-badge.new {
    background: #10b981;
}

.product-info-shop {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name-shop {
    font-size: 1.375rem;
    font-weight: 400;
    font-family: var(--font-display);
    color: var(--deep-black);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-brand {
    font-size: 0.8125rem;
    color: var(--dove-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.product-description {
    font-size: 0.9375rem;
    color: var(--dove-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-details {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--porcelain);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.product-details p {
    margin-bottom: 0.75rem;
    color: var(--deep-black);
}

.product-details p:last-child {
    margin-bottom: 0;
}

.product-details strong {
    color: var(--deep-black);
    font-weight: 600;
}

.product-price-shop {
    font-size: 1.75rem;
    font-weight: 500;
    font-family: var(--font-display);
    color: var(--deep-black);
    margin-bottom: 1.25rem;
}

.product-button-shop {
    display: none;
}

/* Cart Button (Floating) */
.cart-button {
    display: none;
}

.cart-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 3px solid white;
}

/* Cart Sidebar */
.cart-sidebar {
    display: none;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(125, 124, 120, 0.15);
}

.cart-header h3 {
    font-size: 1.5rem;
    font-weight: 400;
    font-family: var(--font-display);
    color: var(--deep-black);
}

.cart-close {
    width: 40px;
    height: 40px;
    background: var(--porcelain);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-close:hover {
    background: var(--soft-blush);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-empty {
    text-align: center;
    color: var(--dove-gray);
    font-style: italic;
    padding: 3rem 0;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(125, 124, 120, 0.1);
}

.cart-item-image {
    width: 80px;
    height: 100px;
    border-radius: 0.5rem;
    object-fit: cover;
    background: var(--champagne);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--deep-black);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--deep-black);
    font-family: var(--font-display);
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: underline;
    margin-top: 0.5rem;
}

.cart-item-remove:hover {
    color: #dc2626;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid rgba(125, 124, 120, 0.15);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--deep-black);
    margin-bottom: 1.5rem;
}

.cart-checkout {
    width: 100%;
    padding: 1rem;
    background: var(--deep-black);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-checkout:hover {
    background: var(--dove-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .shop-hero {
        padding: 8rem 0 4rem;
    }

    .shop-hero-content {
        padding: 0 1rem;
    }

    .shop-hero-title {
        font-size: 2.5rem;
    }

    .shop-hero-subtitle {
        font-size: 1rem;
    }

    .shop-notice {
        margin: 0 0.5rem;
        padding: 1rem;
    }

    .shop-notice p {
        font-size: 0.875rem;
    }

    .filter-bar {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        white-space: nowrap;
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .product-name-shop {
        font-size: 1.25rem;
    }

    .product-info-shop {
        padding: 1.5rem;
    }

    .product-details {
        font-size: 0.8125rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-button {
        width: 56px;
        height: 56px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .cart-item-name {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

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

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 199;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

