/* ================================
   NYARAH JEWELS – MAIN STYLESHEET
   ================================ */

/* Variables */
:root {
    --primary-color: #8B3A4A;
    --primary-dark: #6B2A3A;
    --secondary-color: #D4A574;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --bg-light: #F9F9F9;
    --white: #FFFFFF;
    --border-color: #E5E5E5;
    --success: #28a745;
    --error: #dc3545;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    color: #b12828; /* brand color */
}


a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   TOP BAR
   ================================ */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 12px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-right {
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

/* ================================
   HEADER
   ================================ */
.main-header {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Search */
.header-search {
    flex: 1;
    max-width: 500px;
}

.header-search form {
    position: relative;
    display: flex;
}

.header-search input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background: #FFF0F5;
    font-size: 14px;
}

.header-search button {
    position: absolute;
    right: 1px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/* Icons */
.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-link {
    position: relative;
    font-size: 20px;
    color: var(--text-dark);
}

.icon-link:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* ================================
   NAVIGATION
   ================================ */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 40px;
    padding: 15px 0;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    text-transform: capitalize;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 10px 0;
    display: none;
    z-index: 100;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Mobile submenu */
.mobile-dropdown > a {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    padding: 12px 0;
}

.mobile-submenu {
    display: none;
    padding-left: 15px;
}

.mobile-submenu li a {
    padding: 8px 0;
    display: block;
}

/* ================================
/* ================================
   HERO SECTION (Final Fixed Version)
================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 650px;          /* EXACT hero height */
    overflow: hidden;
    background: #f5f5f5;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

/* HERO IMAGE FIX */
.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;      /* Fill without distortion */
    object-position: center;/* Keep text + logo centered */
    display: block;
}


/* Hide mobile image on desktop */
.hero-image.mobile {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Improve text readability */
.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.hero-content p {
    font-size: 18px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.default-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* REMOVE UNWANTED GAP AFTER HERO */
.hero-section {
    margin-bottom: 0 !important;
}

.trending-section {
    margin-top: 0 !important;
    padding-top: 32px; /* controlled spacing */
}


/* ================================
   MOBILE HERO – FINAL FIX
================================ */
@media (max-width: 768px) {

    .hero-section,
    .hero-slide {
        height: 55vh;          /* Responsive to phone height */
        min-height: 320px;
        max-height: 420px;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;     /* ✅ FULL BLEED – NO BLACK BARS */
        object-position: center 40%; /* Adjust focus safely */
        background: none;
    }

    .hero-content {
        position: absolute;
        bottom: 24px;
        width: 100%;
        padding: 0 16px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 15px;
        line-height: 1.4;
    }
}


/* ================================
   BUTTONS
   ================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: none;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ================================
   SECTIONS
   ================================ */
.section {
    padding: 60px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 36px 0;
    }
}


.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--text-dark);
}
.section-header h2 {
    margin-top: 0;
    margin-bottom: 24px;
}


.section-header p {
    color: var(--text-light);
}

/* ================================
   PRODUCT GRID
   ================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    padding-top: 100%;
    background: var(--bg-light);
}

.product-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Quick buttons */
.quick-view-btn,
.wishlist-btn {
    position: absolute;
    background: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card:hover .quick-view-btn,
.product-card:hover .wishlist-btn {
    opacity: 1;
}

.quick-view-btn {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.wishlist-btn {
    top: 10px;
    right: 10px;
}

/* Product info */
.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price,
.price-sale {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.price-regular {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* ================================
   CATEGORY GRID
   ================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    border-radius: 8px;
    padding-top: 100%;
    overflow: hidden;
}

.category-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card h3 {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    color: var(--white);
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

/* ================================
   OCCASION GRID
   ================================ */
.occasion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.occasion-card {
    text-align: center;
}

.occasion-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.occasion-card h3 {
    font-size: 16px;
}

/* ================================
   TRUST SECTION
   ================================ */
.trust-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #8B3A4A 0%, #6B2A3A 100%);
    color: var(--white);
}

.trust-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.trust-image {
    flex: 0 0 300px;
}

.trust-text h2 {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.trust-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.trust-text p {
    font-size: 16px;
    line-height: 1.8;
}

/* ================================
   FOOTER
   ================================ */
.main-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 14px;
    color: #CCC;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #CCC;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Contact */
.contact-info li {
    display: flex;
    gap: 10px;
    color: #CCC;
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 3px;
}

/* Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #CCC;
}

/* ================================
   TOAST NOTIFICATION
   ================================ */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--text-dark);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success { background: var(--success); }
.toast.error { background: var(--error); }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {

    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .header-search {
        width: 100%;
        max-width: 100%;
        order: 3;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-image.desktop {
        display: none;
    }

    .hero-image.mobile {
        display: block;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .section {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .trust-content {
        flex-direction: column;
        text-align: center;
    }

    .trust-image {
        flex: 0 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}


/* ============================
   MOBILE SIDEBAR NAVIGATION
   ============================ */

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #ffffff;
    z-index: 999999;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
    box-shadow: 2px 0 15px rgba(0,0,0,0.15);
    padding-top: 80px;
}

.mobile-nav.open {
    transform: translateX(0);
}

/* BACKDROP / OVERLAY */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999998;
    display: none;
}
.mobile-nav-overlay.active {
    display: block;
}

/* MENU LIST */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-list a {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 16px;
    color: #222;
}

.mobile-nav-list a:hover {
    background: #f8f8f8;
    color: var(--primary-color);
}

/* DROPDOWN ICON ROTATION */
.mobile-dropdown .arrow {
    transition: transform 0.3s ease;
}

.mobile-dropdown.open .arrow {
    transform: rotate(45deg);
}

/* SUBMENU */
.mobile-submenu {
    display: none;
    padding-left: 20px;
    background: #fff9fb;
}

.mobile-dropdown.open .mobile-submenu {
    display: block;
}

@media (min-width: 769px) {
    .mobile-nav,
    .mobile-nav-overlay {
        display: none !important;
    }
}


/* FOOTER UPGRADE */
.upgraded-footer {
    background: #2c2c2c;
    color: #c0abab;
    padding-top: 50px;
}

.footer-top {
    text-align: center;
    margin-bottom: 40px;
}

.footer-top h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}

.footer-newsletter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.footer-newsletter input {
    padding: 12px;
    width: 260px;
    border-radius: 6px;
    border: none;
}

.footer-newsletter button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 6px;
}

/* Mobile collapsible sections */
.footer-section h4 {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-section .footer-toggle {
    display: none;
    font-size: 20px;
}

@media(max-width:768px){
    .footer-section .footer-toggle {
        display: inline-block;
    }

    .footer-links {
        display: none;
    }

    .footer-section.open .footer-links {
        display: block;
    }

    .footer-section.open .footer-toggle {
        transform: rotate(45deg);
    }
}

/* Payment icons */
.footer-payment {
    text-align: center;
    margin: 30px 0;
}

.footer-payment img {
    height: 30px;
    margin: 0 8px;
}

/* WhatsApp Floating */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: #fff;
    font-size: 28px;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Back to top */
#backToTop {
    position: fixed;
    bottom: 80px;
    right: 25px;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 15px;
    border-radius: 50%;
    display: none;
}


@media (max-width: 768px) {

    /* Ensure product cards have height */
    .product-card,
    .product-image,
    .product-thumb {
        height: auto !important;
        min-height: 180px;
    }

    /* Force image visibility */
    .product-card img,
    .product-image img,
    .product-thumb img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;

        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Prevent clipping */
    .product-image,
    .product-thumb {
        overflow: hidden;
    }
}

