/* ===================================
   SHOP PAGE STYLES
   =================================== */

/* Container */
.shop-hero .container,
.product-categories .container,
.products-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Shop Hero Section */
.shop-hero {
    padding: 12rem 2rem 6rem;
    background: linear-gradient(135deg, var(--brown) 0%, var(--dark-brown) 30%, var(--purple) 70%, var(--dark-purple) 100%);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="rgba(255,255,255,0.1)"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.shop-hero .hero-title {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.shop-hero .hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--secondary-gold);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* Product Categories Filter */
.product-categories {
    background: var(--white);
    padding: 2.5rem 0;
    border-bottom: 2px solid var(--cream);
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.8rem 2rem;
    background: var(--white);
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.category-btn:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 155, 109, 0.3);
}

.category-btn.active {
    background: var(--primary-gold);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(200, 155, 109, 0.4);
}

/* Products Section */
.products-section {
    padding: 6rem 2rem;
    background: var(--white);
}

.category-section {
    margin-bottom: 6rem;
    animation: fadeInUp 0.6s ease-out;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-section.hidden {
    display: none;
}

.section-title {
    font-size: 2.8rem;
    font-family: var(--font-heading);
    color: var(--black);
    margin-bottom: 3.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 600;
}

.section-title i {
    color: var(--primary-gold);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--cream);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(200, 155, 109, 0.2);
}

.product-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--light-gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-gold);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-badge.new {
    background: var(--primary-purple);
}

/* Product Info */
.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.4rem;
    color: var(--black);
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.product-description {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.product-specs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.product-specs span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--dark-gold);
    background: var(--cream);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.product-specs i {
    color: var(--primary-gold);
}

/* Product Footer */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cream);
}

.product-price {
    display: flex;
    flex-direction: column;
}

.product-price .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-purple);
    font-family: var(--font-heading);
}

.product-price .price-unit {
    font-size: 0.8rem;
    color: var(--gray);
}

.btn-add-cart {
    background: var(--primary-gold);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-add-cart:hover {
    background: var(--dark-gold);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(200, 155, 109, 0.4);
}

.btn-add-cart i {
    font-size: 1.1rem;
}

/* Shopping Cart Icon in Nav */
.nav-menu .cart-icon {
    position: relative;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all var(--transition-fast);
}

.navbar.scrolled .cart-icon {
    color: var(--white);
}

.nav-menu .cart-icon:hover {
    color: var(--primary-gold);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-purple);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    z-index: 10000;
    transition: right var(--transition-medium);
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    padding: 1.5rem;
    background: var(--primary-gold);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.cart-close:hover {
    transform: rotate(90deg);
}

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

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

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--cream);
    animation: slideInRight 0.3s ease-out;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.cart-item-name {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--primary-purple);
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background: var(--cream);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.quantity-btn:hover {
    background: var(--primary-gold);
    color: var(--white);
}

.quantity-value {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-fast);
}

.remove-item:hover {
    color: #e74c3c;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--cream);
    background: var(--light-gray);
}

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

.cart-total span:last-child {
    color: var(--primary-purple);
    font-size: 1.5rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

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

/* Shop Info Banner */
.shop-info-banner {
    background: var(--cream);
    padding: 5rem 2rem;
    border-top: none;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.info-item {
    text-align: center;
    padding: 1.5rem;
    transition: transform var(--transition-fast);
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item i {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.info-item h3 {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 968px) {
    .shop-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .shop-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cart-sidebar {
        width: 350px;
        right: -350px;
    }
}

@media (max-width: 768px) {
    .shop-hero {
        padding: 8rem 1.5rem 4rem;
        min-height: 40vh;
    }
    
    .shop-hero .hero-title {
        font-size: 2rem;
    }
    
    .shop-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .product-categories {
        padding: 1.5rem 0;
        top: 70px;
    }
    
    .category-filters {
        gap: 0.8rem;
    }
    
    .category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .products-section {
        padding: 4rem 1rem;
    }
    
    .category-section {
        margin-bottom: 4rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-sidebar.active {
        right: 0;
    }
    
    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-add-cart {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .shop-hero .hero-title {
        font-size: 1.8rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        flex-direction: column;
    }
    
    .product-image {
        height: 250px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
