/* ============================================
   SHOP PAGE — Premium E-Commerce Styles
   ============================================ */

/* Nav Actions (Cart, Login, Sign Up) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

.nav-cart-btn {
    position: relative;
    color: #333;
    text-decoration: none;
    font-size: 1.15rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-cart-btn:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #d4af37;
    color: #1a1a2e;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.nav-login-btn {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-login-btn:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
}

.nav-signup-btn {
    background: linear-gradient(135deg, #d4af37, #c9a12e);
    color: #1a1a2e;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.nav-signup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

/* Search Bar Section */
.shop-search-bar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 20px 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-category {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 14px 18px;
    border-radius: 12px 0 0 12px;
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 160px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.search-category option {
    background: #1a1a2e;
    color: white;
}

.search-input-wrap {
    flex: 1;
    position: relative;
}

.search-input-wrap input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 0 12px 12px 0;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    outline: none;
    transition: border-color 0.3s;
}

.search-input-wrap input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.search-input-wrap input::placeholder {
    color: #999;
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 20px;
    background: linear-gradient(135deg, #d4af37, #f4e37a);
    border: none;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    font-size: 1.1rem;
    color: #1a1a2e;
    transition: all 0.3s;
}

.search-btn:hover {
    background: linear-gradient(135deg, #c9a12e, #e8d86e);
    transform: scale(1.05);
}

/* Category Icon Menu */
.category-icon-menu {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-icon-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.category-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    width: 120px;
    text-align: center;
}

.category-icon-item .icon-box {
    width: 70px;
    height: 70px;
    background: #f9f9f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.category-icon-item:hover {
    transform: translateY(-5px);
}

.category-icon-item:hover .icon-box {
    background: #d4af37;
    color: white;
    border-color: #d4af37;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.category-icon-item span {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Banner Slider */
.shop-slider {
    position: relative;
    width: 100%;
    max-height: 560px;
    overflow: hidden;
    background: #111;
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slider-slide {
    min-width: 100%;
    position: relative;
    max-height: 560px;
}

.slider-slide img {
    width: 100%;
    height: 560px;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    display: flex;
    align-items: center;
    padding: 0 80px;
}

.slider-content {
    max-width: 500px;
    color: white;
}

.slider-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.slider-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.slider-content .slider-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #d4af37, #f4e37a);
    color: #1a1a2e;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.slider-content .slider-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(212, 175, 55, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: #d4af37;
    width: 30px;
    border-radius: 6px;
}

/* Shop Layout */
.shop-layout {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

/* Sidebar Filters */
.shop-sidebar {
    position: sticky;
    top: 150px;
    align-self: start;
}

.filter-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.filter-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.filter-card h3 i {
    color: #d4af37;
    margin-right: 8px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 2px;
}

.category-list li a {
    display: block;
    padding: 8px 14px;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.92rem;
}

.category-list li a:hover,
.category-list li a.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(244, 227, 122, 0.1));
    color: #b8941e;
    font-weight: 600;
}

.category-list li strong {
    display: block;
    padding: 10px 14px 4px;
    font-weight: 700;
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sort-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 0.92rem;
    color: #333;
    background: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
}

.sort-select:focus {
    border-color: #d4af37;
}

/* Product Grid */
.shop-main .results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-bar h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.results-bar span {
    color: #999;
    font-size: 0.9rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #f0f0f0;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.product-card .product-image {
    height: 260px;
    overflow: hidden;
    position: relative;
    background: #f8f8f8;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-card .product-image .quick-view {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 20px;
    text-align: center;
    transition: bottom 0.4s;
}

.product-card:hover .product-image .quick-view {
    bottom: 0;
}

.quick-view a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-card .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-details {
    padding: 20px;
}

.product-details .product-category {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-details .product-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
}

.product-details .product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-details .product-title a:hover {
    color: #d4af37;
}

.product-details .product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.product-details .product-price .current {
    font-size: 1.3rem;
    font-weight: 700;
    color: #d4af37;
}

.product-details .product-price .original {
    font-size: 0.95rem;
    color: #bbb;
    text-decoration: line-through;
}

.product-details .add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2c2c2c, #444);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.product-details .add-to-cart-btn:hover {
    background: linear-gradient(135deg, #d4af37, #c9a12e);
    color: #1a1a2e;
    transform: translateY(-1px);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    color: #ccc;
    font-size: 3rem;
}

/* Empty / Loading States */
.loading-spinner {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px;
    color: #d4af37;
}

.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h3 {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #999;
}

/* Mobile responsive */
@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .search-category {
        display: none;
    }

    .search-input-wrap input {
        border-radius: 12px 0 0 12px;
    }

    .slider-overlay {
        padding: 0 30px;
    }

    .slider-content h2 {
        font-size: 1.8rem;
    }

    .slider-content p {
        font-size: 0.95rem;
    }

    .shop-slider,
    .slider-slide img {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .shop-sidebar {
        grid-template-columns: 1fr;
    }

    .shop-search-bar {
        top: 60px;
        padding: 12px 0;
    }

    .slider-content h2 {
        font-size: 1.4rem;
    }

    .slider-content p {
        display: none;
    }

    .shop-slider,
    .slider-slide img {
        height: 220px;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card .product-image {
        height: 180px;
    }

    .product-details {
        padding: 12px;
    }

    .product-details .product-title {
        font-size: 0.95rem;
    }
}