/* ============================================================
   MasculineModa — Main Site Stylesheet (Black & White theme)
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black: #18565f;
    --white: #ffffff;
    --gold: #ffcb5a;
    --gold-deep: #f2b84a;
    --gold-muted: #d9b976;
    --teal-muted: #4a8890;
    --border-soft: rgba(255, 203, 90, 0.25);
    --header-border: rgba(24, 86, 95, 0.3);
    --surface-2: #1f6570;
    --gray-light: #f5f5f5;
    --gray-mid: #999999;
    --gray-border: #e5e5e5;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--gold);
    background: var(--black);
    font-size: 14px;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }

.icon-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; color: var(--black);
    background: none; border: none; cursor: pointer;
    position: relative;
}
.icon-btn:hover { opacity: 0.6; }

/* ============ TOP UTILITY BAR ============ */
.site-header { position: relative; z-index: 100; background: var(--white); }
.top-bar { background: var(--black); color: var(--white); overflow: hidden; border-bottom: 1px solid var(--header-border); }
.top-bar-inner {
    max-width: 1400px; margin: 0 auto; padding: 8px 32px;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    font-size: 11px; letter-spacing: 0.5px;
}
.top-bar-spacer { }
.top-bar-ticker { overflow: hidden; max-width: 480px; justify-self: center; }
.ticker-track {
    display: flex; white-space: nowrap; width: max-content;
    animation: ticker-scroll 18s linear infinite;
}
.ticker-item { text-transform: uppercase; padding-right: 10px; }
.ticker-dot { padding-right: 10px; opacity: 0.5; }
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.top-bar-links { display: flex; align-items: center; gap: 10px; white-space: nowrap; justify-self: end; }
.top-bar-links a { color: var(--white); text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px; }
.top-bar-links a:hover { opacity: 0.6; }
.tb-sep { opacity: 0.35; }

/* ============ MAIN ROW ============ */
.main-row { border-bottom: 1px solid var(--header-border); }
.main-row-inner {
    max-width: 1400px; margin: 0 auto; padding: 18px 32px;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.mobile-menu-toggle { display: none; }

.header-search {
    display: flex; align-items: center; max-width: 300px; border: 1px solid var(--header-border);
}
.header-search input {
    flex: 1; border: none; outline: none; padding: 10px 12px; font-size: 13px; font-family: inherit; min-width: 0;
    background: var(--white); color: var(--black);
}
.header-search input::placeholder { color: var(--teal-muted); }
.header-search button {
    background: var(--black); color: var(--white); padding: 8px 12px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.header-search button svg { width: 14px; height: 14px; }

.site-logo { display: flex; align-items: center; justify-content: center; }
.site-logo img { width: 78px; height: 78px; object-fit: contain; }

.main-row-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }

.desktop-only {}
.mobile-only { display: none; }

.cart-btn { position: relative; }
.cart-count {
    position: absolute; top: 2px; right: 2px;
    background: var(--black); color: var(--black);
    font-size: 9px; font-weight: 600; min-width: 15px; height: 15px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* Currency / language dropdowns */
.dropdown-select { position: relative; margin-left: 4px; }
.dropdown-select-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 8px 10px; font-size: 12px; letter-spacing: 0.5px;
    border: 1px solid var(--header-border); background: var(--white); color: var(--black);
    cursor: pointer;
}
.dropdown-select-btn:hover { border-color: var(--black); }
.dropdown-select-menu {
    display: none; position: absolute; top: calc(100% + 4px); right: 0;
    background: var(--white); border: 1px solid var(--black); color: var(--black);
    min-width: 190px; z-index: 50;
}
.dropdown-select-menu.open { display: block; }
.dropdown-select-option {
    padding: 10px 14px; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.dropdown-select-option:hover { background: var(--white); }

/* Mobile search overlay */
.search-bar { display: none; border-top: 1px solid var(--header-border); padding: 14px 16px; }
.search-bar.open { display: block; }
.search-bar-inner { display: flex; align-items: center; border-bottom: 2px solid var(--black); }
.search-bar-inner input { flex: 1; border: none; outline: none; padding: 10px 4px; font-size: 15px; font-family: inherit; background: var(--white); color: var(--black); }
.search-bar-inner button { padding: 8px; color: var(--black); }

/* ============ MAIN NAV ============ */
.main-nav { background: var(--black); border-top: 1px solid var(--header-border); }
.nav-list {
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
}
.nav-item { position: relative; }
.nav-link {
    display: block; padding: 14px 16px;
    font-size: 12.5px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
    color: var(--white);
}
.nav-item:hover .nav-link { opacity: 0.65; }

/* Mega dropdown — sits directly under the specific nav item, sized to its content */
.mega-dropdown {
    display: none; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%);
    background: var(--white); border: 1px solid var(--header-border); border-top: 2px solid var(--black);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    z-index: 60; width: max-content; max-width: 90vw;
}
.nav-item.has-dropdown:hover .mega-dropdown { display: block; }
.mega-dropdown-inner {
    display: flex; align-items: flex-start;
    padding: 26px 0;
}
.mega-col {
    flex: 0 0 auto;
    padding: 0 36px;
    border-right: 1px solid var(--header-border);
}
.mega-col:last-child { border-right: none; }
.mega-col-title {
    font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 14px; color: var(--black); border-bottom: 1px solid var(--header-border); padding-bottom: 10px;
}
.mega-col-link {
    display: block; font-size: 13px; color: var(--black); padding: 6px 0;
    white-space: nowrap;
}
.mega-col-link:hover { color: var(--black); text-decoration: underline; }

/* Simple dropdown (Tweed / Linen) */
.simple-dropdown {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--white); border: 1px solid var(--header-border); border-top: 2px solid var(--black);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    z-index: 60; min-width: 200px; padding: 14px 0;
}
.nav-item.has-dropdown:hover .simple-dropdown { display: block; }
.simple-dropdown-link {
    display: block; padding: 9px 24px; font-size: 13px; color: var(--black);
}
.simple-dropdown .mega-col-title {
    padding: 0 24px 10px; margin: 0 0 8px; border-bottom: 1px solid var(--header-border);
}
.simple-dropdown-link:hover { background: var(--white); color: var(--black); }

/* Customization highlighted button (in main nav) — stays inverted so it stands out against the yellow nav */
.customization-btn {
    display: inline-flex !important; align-items: center; gap: 6px;
    background: var(--gold) !important; color: var(--black) !important;
    padding: 10px 18px !important; border-radius: 2px;
}
.customization-btn:hover { opacity: 0.85; }
.customization-btn-mobile {
    background: var(--black); color: var(--gold) !important;
    text-align: center; margin: 12px 20px; padding: 12px !important;
    border-radius: 2px; font-weight: 600;
}
.mobile-menu-utility-links {
    display: flex; flex-direction: column; border-top: 1px solid var(--header-border); padding: 8px 0 20px;
}
.mobile-menu-utility-links a {
    padding: 12px 20px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--black);
}

/* ============ MOBILE MENU ============ */
.mobile-menu-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199;
}
.mobile-menu-overlay.open { display: block; }
.mobile-menu {
    position: fixed; top: 0; left: -320px; width: 300px; height: 100%;
    background: var(--white); z-index: 200; transition: left 0.25s ease;
    overflow-y: auto;
}
.mobile-menu.open { left: 0; }
.mobile-menu-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid var(--header-border);
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; color: var(--black);
}
.mobile-menu-header button { font-size: 26px; line-height: 1; color: var(--black); }
.mobile-nav-item { border-bottom: 1px solid var(--header-border); }
.mobile-nav-link, .mobile-nav-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 15px 20px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
    text-align: left; color: var(--black);
}
.mobile-nav-sub { display: none; background: var(--white); padding: 6px 0 12px; }
.mobile-nav-sub.open { display: block; }
.mobile-nav-group-title { padding: 10px 30px 4px; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--teal-muted); }
.mobile-nav-sub a { display: block; padding: 7px 30px; font-size: 13px; color: var(--black); }

/* ============ PRODUCT CARD (hover image-swap + buttons) ============ */
.product-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    max-width: 1400px; margin: 0 auto; padding: 40px 32px;
}
.product-card { }
.product-card-img-wrap {
    position: relative; width: 100%; aspect-ratio: 3/4; overflow: hidden; background: var(--surface-2);
}
.product-card-img-wrap img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: opacity 0.35s ease;
}
.product-card-img-wrap img.img-secondary { opacity: 0; }
.product-card:hover .img-primary { opacity: 0; }
.product-card:hover .img-secondary { opacity: 1; }

.product-card-actions {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; opacity: 0; transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.product-card:hover .product-card-actions { opacity: 1; transform: translateY(0); }
.product-card-actions button {
    flex: 1; padding: 12px 6px; font-size: 11px; font-weight: 600;
    letter-spacing: 0.5px; text-transform: uppercase;
}
.btn-add-bag { background: var(--gold); color: var(--black); }
.btn-buy-now { background: var(--black); color: var(--gold); border-top: 1px solid var(--gold); }

.product-card-info { padding: 14px 2px; text-align: center; }
.product-card-name { font-size: 13px; margin-bottom: 6px; }
.product-card-price { font-size: 13px; }
.product-card-price .compare { text-decoration: line-through; color: var(--gold-muted); margin-right: 8px; }

/* ============ TRUST BADGES STRIP ============ */
.trust-strip { background: var(--surface-2); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.trust-strip-inner {
    max-width: 1800px; margin: 0 auto; padding: 28px 32px;
    display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0;
}
.trust-badge {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 0 36px; text-align: center; border-right: 1px solid var(--border-soft);
}
.trust-badge:last-child { border-right: none; }
.trust-badge svg { color: var(--gold); }
.trust-badge span { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--gold); }

/* ============ MAIN FOOTER ============ */
.site-footer { background: var(--white); color: var(--black); border-top: 1px solid var(--header-border); }

.footer-top { border-bottom: 1px solid var(--header-border); }
.footer-top-inner {
    max-width: 1800px; margin: 0 auto; padding: 28px 32px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo-box {
    width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer-logo { width: 100%; height: 100%; object-fit: contain; }
.footer-brand-text { display: flex; flex-direction: column; }
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--black); }
.footer-brand-tag { font-size: 9px; letter-spacing: 2px; color: var(--teal-muted); text-transform: uppercase; }

.footer-newsletter-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; text-align: right; color: var(--black); }
.footer-newsletter-form { display: flex; }
.footer-newsletter-form input {
    background: var(--white); border: 1px solid var(--header-border); border-right: none; color: var(--black);
    padding: 10px 14px; font-size: 13px; font-family: inherit; width: 220px; outline: none;
}
.footer-newsletter-form input::placeholder { color: var(--teal-muted); }
.footer-newsletter-form button { background: var(--black); color: var(--white); padding: 10px 14px; }

.footer-inner {
    max-width: 1800px; margin: 0 auto; padding: 44px 32px 20px;
    display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1.3fr; gap: 28px;
}
.footer-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; color: var(--teal-muted); }
.footer-col a { display: block; font-size: 13px; color: var(--black); padding: 5px 0; }
.footer-col a:hover { color: var(--black); text-decoration: underline; }
.footer-address { font-size: 13px; color: var(--black); line-height: 1.6; margin-top: 6px; }
.footer-keep-in-touch { margin-top: 20px; }
.footer-keep-in-touch > span { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--teal-muted); display: block; margin-bottom: 10px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
    width: 30px; height: 30px; border: 1px solid var(--header-border); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--black);
}
.footer-social a:hover { border-color: var(--black); color: var(--black); }

.footer-shipping-row {
    max-width: 1800px; margin: 0 auto; padding: 18px 32px; border-top: 1px solid var(--header-border);
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-shipping-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--teal-muted); }
.footer-shipping-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.ship-badge {
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 32px; background: var(--white); border: 1px solid var(--header-border); border-radius: 4px; padding: 5px 8px;
}
.ship-badge img { max-width: 100%; max-height: 100%; object-fit: contain; }

.footer-bottom { border-top: 1px solid var(--header-border); }
.footer-bottom-inner {
    max-width: 1800px; margin: 0 auto; padding: 16px 32px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    font-size: 11px; color: var(--teal-muted);
}
.footer-bottom-inner {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.footer-bottom-side { }
.footer-bottom-center { text-align: center; white-space: nowrap; }
.footer-bottom-center a { color: var(--black); text-decoration: underline; }
.footer-bottom-right {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-self: end;
}
.footer-payment-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-badge {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 28px; background: var(--white); border: 1px solid var(--header-border); border-radius: 4px; padding: 4px 6px;
}
.pay-badge img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ============ RESPONSIVE ============ */
.mobile-left-icons { display: none; align-items: center; gap: 4px; }

@media (max-width: 1150px) {
    .top-bar-inner { grid-template-columns: 1fr; padding: 7px 16px; }
    .top-bar-spacer, .top-bar-links { display: none; }
    .top-bar-ticker { max-width: 100%; justify-self: stretch; }

    .main-nav.desktop-only { display: none; }
    .desktop-only { display: none !important; }
    .mobile-only { display: flex; }
    .mobile-left-icons { display: flex; }
    .mobile-menu-toggle { display: flex; }

    .main-row-inner { grid-template-columns: auto 1fr auto; padding: 12px 14px; gap: 8px; }
    .site-logo img { width: 50px; height: 50px; }
    .main-row-right { gap: 0; }
    .dropdown-select-btn { padding: 7px 8px; font-size: 11px; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 20px 16px; }
    .footer-inner { grid-template-columns: repeat(3, 1fr); padding: 32px 24px 16px; gap: 24px; }
    .trust-strip-inner { padding: 20px 16px; gap: 16px 0; }
    .trust-badge { padding: 0 16px; border-right: none; flex: 1 1 40%; }
    .footer-top-inner { padding: 22px 16px; flex-direction: column; align-items: flex-start; }
    .footer-newsletter { width: 100%; }
    .footer-newsletter-label { text-align: left; }
    .footer-newsletter-form input { width: 100%; flex: 1; }
    .footer-shipping-row { padding: 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .footer-bottom-inner { grid-template-columns: 1fr; text-align: center; padding: 16px; gap: 10px; }
    .footer-bottom-side { display: none; }
    .footer-bottom-right { justify-self: center; }
}

@media (max-width: 700px) {
    .footer-inner { grid-template-columns: repeat(2, 1fr); padding: 28px 16px 12px; gap: 20px; }
    .footer-contact-col { grid-column: span 2; }
}

@media (max-width: 420px) {
    .site-logo img { width: 42px; height: 42px; }
    .icon-btn { width: 32px; height: 32px; }
    .footer-inner { grid-template-columns: 1fr; }
    .trust-badge { flex: 1 1 100%; }
}
