/* ============================================
   Shop Page Styles
   ============================================ */

/* ============================================
   Page Header
   ============================================ */
body {
    /* Set the background image */
    background-image: url('../images/hero-banner.webp');

    /* Ensure the image covers the entire page */
    background-size: cover;

    /* Center the background image */
    background-position: center center;

    /* Keep the background fixed while scrolling */
    background-attachment: fixed;

    /* Prevent the image from repeating */
    background-repeat: no-repeat;

    /* Make background more visible with light overlay */
    background-color: var(--bg-primary);

    /* Add a semi-transparent overlay to make it light */
    position: relative;
}

/* Add a dark overlay to maintain readability and luxury feel */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark semi-transparent overlay */
    background: rgba(10, 10, 10, 0.85);
    /* Blur effect for a premium glassmorphism feel */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: -1;
}

.page-header {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.9) 0%, rgba(5, 5, 5, 0.95) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

@media (min-width: 768px) {
    .page-header {
        padding: 8rem 0;
    }
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 3rem;
    }
}

.page-header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
}



.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* legacy placeholder for text logo; hidden when using image */
.logo-circle {
    display: none;
}

/* new logo image styling */
.logo-image {
    max-width: 120px;
    height: auto;
    display: block;
}

.logo-text {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.125rem;
    display: none;
}

@media (min-width: 640px) {
    .logo-text {
        display: inline;
    }
}

/* ============================================
   Section Styling
   ============================================ */

.section-padding {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.gold-line {
    width: 4rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 1rem auto;
}

/* ============================================
   Best Sellers Section
   ============================================ */

.best-sellers {
    background-color: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(10px);
}

.best-sellers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .best-sellers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .best-sellers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   Product Cards
   ============================================ */

.product-card {
    background: rgba(25, 25, 25, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2), 0 0 15px rgba(212, 175, 55, 0.1) inset;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #111;
}

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

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

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.btn-details {
    background: linear-gradient(135deg, var(--accent) 0%, #c9a227 100%);
    color: var(--text-on-gold);
    /* Dark text on gold background */
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-details:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

@media (min-width: 768px) {
    .product-info h3 {
        font-size: 1.125rem;
    }
}

.product-price {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--accent);
    font-weight: 500;
}

@media (min-width: 768px) {
    .product-price {
        font-size: 0.85rem;
    }
}

/* ============================================
   Discount Badge
   ============================================ */

.discount-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
    color: var(--primary);
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: bold;
    font-size: 0.75rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.price-section {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.original-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.875rem;
}

.sale-price {
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
}

/* ============================================
   Attar Collection Section
   ============================================ */

.attar-collection {
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .collection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .collection-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   Combos Section
   ============================================ */

.combos {
    background-color: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
}

.combos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .combos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .combos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.combo-card {
    background: rgba(25, 25, 25, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.combo-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2), 0 0 15px rgba(212, 175, 55, 0.1) inset;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.combo-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #111;
}

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

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

.combo-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, #c9a227 100%);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.combo-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.combo-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.combo-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.combo-price {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.combo-info .btn-details {
    width: 100%;
    text-align: center;
}

/* ============================================
   Modal Styles
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(20px);
    border-radius: 0.75rem;
    max-width: 680px;
    width: 100%;
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.08) inset;
    border: 1px solid rgba(212, 175, 55, 0.25);
    animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, #c9a227 100%);
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary);
    z-index: 10;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.modal-close:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
}

@media (min-width: 640px) {
    .modal-body {
        padding: 1.5rem;
        gap: 1.25rem;
    }
}

@media (min-width: 600px) {
    .modal-body {
        grid-template-columns: 180px 1fr;
        gap: 1.5rem;
        align-items: start;
    }
}

.modal-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #111 0%, #050505 100%);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    max-height: 200px;
}

@media (min-width: 600px) {
    .modal-image {
        width: 180px;
        height: 180px;
        flex-shrink: 0;
        aspect-ratio: unset;
        max-height: unset;
    }
}

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

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

.modal-details {
    display: flex;
    flex-direction: column;
}

.modal-details h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

@media (min-width: 600px) {
    .modal-details h2 {
        font-size: 1.35rem;
    }
}

.product-description {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .product-description {
        font-size: 0.95rem;
    }
}

/* ============================================
   Quantity Selector
   ============================================ */

.quantity-selector {
    margin-bottom: 1rem;
}

.quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 0.85rem;
}

.quantity-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.5rem;
}

.qty-btn {
    background: rgba(30, 30, 30, 0.5);
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 0.4rem;
    padding: 0.5rem 0.4rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    color: var(--light-text);
}

.qty-btn .size {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.8rem;
}

.qty-btn .price {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.75rem;
}

.qty-btn:hover {
    border-color: var(--accent);
    background-color: rgba(212, 175, 55, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.qty-btn.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.08) 100%);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
    transform: scale(1.05);
}

/* ============================================
   Fragrance Notes
   ============================================ */

.fragrance-notes {
    margin-bottom: 1rem;
}

.fragrance-notes h3 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

.notes-pyramid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.note-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.03) 100%);
    padding: 0.5rem 0.75rem;
    border-radius: 0.4rem;
    border-left: 2px solid var(--accent);
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    border-right: 1px solid rgba(212, 175, 55, 0.12);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.note-section h4 {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.15rem;
}

.note-section p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* ============================================
   Modal Price & Actions
   ============================================ */

.modal-price {
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-radius: 0.4rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: inline-block;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

@media (min-width: 640px) {
    .modal-actions {
        flex-direction: row;
        gap: 1rem;
    }
}

.modal-actions .btn {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .modal-actions .btn {
        padding: 1rem;
        font-size: 1rem;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #c9a227 100%);
    color: var(--text-on-gold);
    /* Dark text on gold background */
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--text-on-gold);
    /* Dark text on gold background */
    transform: translateY(-3px);
}

.btn-outline:active {
    transform: translateY(-1px);
}

/* ============================================
   Cart Notification
   ============================================ */

.cart-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent) 0%, #c9a227 100%);
    color: var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    z-index: 3000;
    transition: bottom 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.cart-notification.show {
    bottom: 2rem;
}

@media (max-width: 640px) {
    .cart-notification {
        left: 1rem;
        right: 1rem;
        transform: none;
    }
}

/* ============================================
   Cart Notification
   ============================================

.cart-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, #c9a227 100%);
    color: var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 999;
}

.cart-notification.show {
    transform: translateX(0);
}

.cart-notification i {
    font-size: 1.25rem;
}

/* ============================================
   Navbar Dropdown
   ============================================ */

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

/* Show dropdown when active class is added (for click behavior) */
.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0d9ce;
}

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

.dropdown-item:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    padding-left: 2rem;
}

/* ============================================
   Mobile Dropdown
   ============================================ */

/* Mobile dropdown styles moved to styles.css */

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 767px) {
    .page-header h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-details h2 {
        font-size: 1.25rem;
    }

    .quantity-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .qty-btn {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .qty-btn .size {
        font-size: 0.75rem;
    }

    .qty-btn .price {
        font-size: 0.75rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }

    .cart-notification.show {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 640px) {

    .best-sellers-grid,
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-info {
        padding: 0.75rem;
    }

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

    .product-price {
        font-size: 0.8rem;
    }

    .combos-grid {
        grid-template-columns: 1fr;
    }

    .combo-info {
        padding: 1rem;
    }

    .combo-info h3 {
        font-size: 1rem;
    }

    .combo-price {
        font-size: 1rem;
    }
}

/* ============================================
   Footer Background for Shop Page
   ============================================ */

.footer {
    background-color: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(5px);
}

/* ============================================
   Floating Particles
   ============================================ */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.8) 0%, rgba(212, 175, 55, 0) 70%);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 8s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    50% {
        transform: translateY(50vh) scale(1) translateX(20px);
        opacity: 0.8;
    }

    90% {
        opacity: 0;
    }

    100% {
        transform: translateY(-10vh) scale(0) translateX(-20px);
        opacity: 0;
    }
}