/* =====================================================
   ROZ MART - Header & Footer Styles
   ===================================================== */

/* ---------------- TOP BAR ---------------- */
.top-bar {
    background: var(--color-navy);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar .top-left {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.top-bar .top-left span,
.top-bar .top-left a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.85);
}

.top-bar .top-left i {
    color: var(--color-peach);
}

.top-bar .top-right {
    display: flex;
    gap: 14px;
    align-items: center;
}

.top-bar .top-right a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--color-white);
}

.top-bar .top-right a:hover {
    background: var(--color-green);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .top-bar .top-left span:nth-child(2) { display: none; }
}

/* ---------------- MAIN HEADER ---------------- */
.main-header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 30px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo img {
    height: 52px;
    width: auto;
}

.logo .logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 26px;
    color: var(--color-navy);
    line-height: 1.1;
}

.logo .logo-text span {
    color: var(--color-green);
}

.logo .logo-tagline {
    font-size: 11px;
    color: var(--color-gray-600);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.header-search form {
    display: flex;
    align-items: center;
    background: var(--color-gray-100);
    border-radius: var(--radius-full);
    border: 1.5px solid transparent;
    transition: var(--transition);
    overflow: hidden;
}

.header-search form:focus-within {
    border-color: var(--color-green);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(114,200,34,0.10);
}

.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 13px 20px;
    font-size: 14px;
    color: var(--color-gray-800);
}

.header-search button {
    width: 46px;
    height: 46px;
    background: var(--color-green);
    color: var(--color-white);
    border-radius: 50%;
    margin: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.header-search button:hover {
    background: var(--color-green-dark);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.header-action-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-navy);
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
    text-align: center;
    min-width: 50px;
}

.header-action-item .icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-mint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-green-dark);
    transition: var(--transition);
    position: relative;
}

.header-action-item:hover .icon-circle {
    background: var(--color-green);
    color: var(--color-white);
    transform: translateY(-3px);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-peach-dark);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-white);
}

/* ---------------- NAVIGATION ---------------- */
.main-nav {
    background: var(--color-navy);
}

.main-nav .nav-inner {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 14.5px;
    padding: 16px 20px;
    transition: var(--transition);
}

.nav-list > li > a:hover,
.nav-list > li.active > a {
    color: var(--color-white);
    background: rgba(255,255,255,0.08);
}

.nav-list > li > a i.fa-chevron-down {
    font-size: 10px;
    transition: var(--transition);
}

.nav-list > li:hover > a i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 240px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    padding: 10px;
    border-top: 3px solid var(--color-green);
}

.nav-list > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: var(--color-gray-800);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.dropdown-menu li a i {
    color: var(--color-green);
    width: 18px;
}

.dropdown-menu li a:hover {
    background: var(--color-mint);
    color: var(--color-green-dark);
    padding-left: 18px;
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-mint);
    color: var(--color-navy);
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

/* Nav phone */
.nav-extra {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--color-white);
    font-weight: 600;
    font-size: 14px;
    padding-right: 6px;
}

.nav-extra a {
    color: var(--color-cream);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-extra a:hover {
    color: var(--color-peach);
}

/* ---------------- RESPONSIVE HEADER ---------------- */
@media (max-width: 992px) {
    .header-search { order: 3; flex-basis: 100%; max-width: 100%; }
    .main-header .header-inner { flex-wrap: wrap; }
    .mobile-toggle { display: flex; }

    .main-nav .nav-inner { position: relative; }

    .nav-list {
        position: fixed;
        top: 0;
        left: -300px;
        width: 290px;
        height: 100vh;
        background: var(--color-navy);
        flex-direction: column;
        align-items: flex-start;
        overflow-y: auto;
        transition: left 0.35s ease;
        z-index: 1100;
        padding: 70px 0 30px;
        box-shadow: var(--shadow-lg);
    }

    .nav-list.show {
        left: 0;
    }

    .nav-list > li {
        width: 100%;
    }

    .nav-list > li > a {
        width: 100%;
        padding: 14px 24px;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        border-radius: 0;
        border-top: none;
        width: 100%;
    }

    .nav-list > li.dropdown-open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        color: rgba(255,255,255,0.85);
        padding-left: 40px;
    }

    .dropdown-menu li a:hover {
        background: rgba(255,255,255,0.08);
        color: var(--color-white);
    }

    .nav-extra { display: none; }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1050;
    }

    .nav-overlay.show { display: block; }

    .mobile-close {
        position: absolute;
        top: 18px;
        right: 18px;
        color: var(--color-white);
        font-size: 22px;
        z-index: 1200;
    }
}

@media (max-width: 576px) {
    .logo img { height: 42px; }
    .logo .logo-text { font-size: 21px; }
    .logo .logo-tagline { display: none; }
    .header-actions { gap: 8px; }
    .header-action-item { min-width: 42px; }
    .header-action-item .icon-circle { width: 38px; height: 38px; font-size: 16px; }
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--color-navy);
    color: rgba(255,255,255,0.75);
    position: relative;
    overflow: hidden;
}

.footer-top {
    padding: 60px 0 30px;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
}

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

.footer-col h4 {
    color: var(--color-white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-green);
    border-radius: 3px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.footer-logo img {
    height: 46px;
}

.footer-logo span {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--color-white);
}

.footer-logo span em {
    color: var(--color-green);
    font-style: normal;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-green);
    transform: translateY(-4px);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a i {
    font-size: 10px;
    color: var(--color-green);
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    align-items: flex-start;
}

.footer-contact li i {
    color: var(--color-green);
    margin-top: 3px;
    font-size: 15px;
    width: 18px;
}

.footer-newsletter {
    margin-top: 14px;
}

.footer-newsletter form {
    display: flex;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: rgba(255,255,255,0.08);
}

.footer-newsletter input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 13px 18px;
    color: var(--color-white);
    font-size: 13px;
}

.footer-newsletter input::placeholder {
    color: rgba(255,255,255,0.5);
}

.footer-newsletter button {
    background: var(--color-green);
    color: var(--color-white);
    padding: 0 22px;
    font-weight: 700;
    font-size: 13px;
}

.footer-newsletter button:hover {
    background: var(--color-green-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.10);
    padding: 22px 0;
    position: relative;
    z-index: 2;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13.5px;
}

.footer-bottom-inner a {
    color: rgba(255,255,255,0.6);
}

.footer-bottom-inner a:hover {
    color: var(--color-peach);
}

.footer-payment {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-payment i {
    font-size: 26px;
    color: rgba(255,255,255,0.6);
}

.footer-decor {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.footer-decor.d1 {
    width: 300px; height: 300px;
    background: var(--color-green);
    top: -130px; right: -60px;
}

.footer-decor.d2 {
    width: 220px; height: 220px;
    background: var(--color-peach);
    bottom: -100px; left: 10%;
}

/* =====================================================
   FLOATING WHATSAPP BUTTON (Glowing effect)
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    animation: whatsapp-glow 2.2s infinite ease-in-out;
}

.whatsapp-float::before,
.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    z-index: -1;
    animation: whatsapp-ripple 2.2s infinite ease-out;
}

.whatsapp-float::after {
    animation-delay: 0.6s;
}

@keyframes whatsapp-ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

@keyframes whatsapp-glow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.8), 0 0 0 14px rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    transform: scale(1.08);
    color: var(--color-white);
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 26px;
        bottom: 18px;
        right: 18px;
    }
    .back-to-top {
        bottom: 84px;
        right: 18px;
        width: 40px;
        height: 40px;
    }
}
