/* =========================================================
   MURCU MEN - Luxury Men's Boutique
========================================================== */

:root {
  --navy: #071E41;
  --navy-dark: #03152F;
  --navy-steel: #294766;
  --white: #FFFFFF;
  --white-cold: #F7F8FA;
  --silver: #D9DEE5;
  --text-gray: #4D5662;
  --champagne: #B8A078;
  
  --bg-main: #FFFFFF;
  --bg-surface: #F7F8FA;
  --bg-surface-hover: #EEF0F4;
  --bg-panel: #FFFFFF;
  
  --accent: #071E41; /* navy as primary accent */
  --accent-hover: #294766;
  --accent-glow: rgba(7, 30, 65, 0.12);
  
  --text-primary: #071E41;
  --text-secondary: #4D5662;
  --text-muted: #8A94A0;
  
  --border: #E8ECF0;
  --border-light: #D9DEE5;
  
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-heading: 'Playfair Display', 'Times New Roman', serif;
  
  --transition: 0.25s ease;
  --shadow-sm: 0 1px 3px rgba(7,30,65,0.06);
  --shadow-md: 0 4px 16px rgba(7,30,65,0.08);
  --shadow-lg: 0 12px 40px rgba(7,30,65,0.12);
  
  --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

/* =========================================
   Typography & Reusables
========================================= */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition);
}

.highlight {
    color: var(--champagne);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    border: 2px solid var(--navy);
}

.btn-primary:hover {
    background: var(--navy-steel);
    border-color: var(--navy-steel);
    transform: translateY(-1px);
}

.btn-outline {
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-outline:hover {
    background: var(--bg-surface);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.icon-btn {
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 4px;
}
.icon-btn:hover {
    background: var(--bg-surface-hover);
}

/* =========================================
   Top Info Bar
========================================= */
.top-info-bar {
    background: var(--navy);
    color: var(--white);
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    letter-spacing: 1px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 101;
}

/* =========================================
   Navbar
========================================= */
.navbar {
    position: fixed;
    top: 36px;
    width: 100%;
    height: auto;
    min-height: var(--nav-height);
    background: var(--white);
    border-bottom: 1px solid var(--silver);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.nav-container {
    height: var(--nav-height);
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--navy);
}

/* Search Bar */
.header-search-bar {
    flex: 1;
    max-width: 600px;
    margin: 0 4rem;
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    outline: none;
    transition: all var(--transition);
    background: var(--bg-surface);
}

.header-search-bar input:focus {
    border-color: var(--navy);
    background: var(--white);
}

.header-search-bar .search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: block;
}
@media(min-width: 768px) {
    .mobile-menu-btn { display: none; }
}

.cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    transition: all var(--transition);
}

.cart-btn:hover {
    background: var(--navy-steel);
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--champagne);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-total {
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    display: none;
}
@media(min-width: 640px) {
    .cart-total { display: block; }
}

/* =========================================
   Hero Banner
========================================= */
.hero {
    margin-top: 116px; /* navbar + top-info-bar */
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlide 15s infinite;
}

.slide-1 { animation-delay: 0s; }
.slide-2 { animation-delay: 5s; }
.slide-3 { animation-delay: 10s; }

@keyframes fadeSlide {
    0% { opacity: 0; transform: scale(1.05); }
    10% { opacity: 1; transform: scale(1); }
    33% { opacity: 1; transform: scale(1); }
    43% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.6) 100%);
}

.hero-content {
    position: relative;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    z-index: 10;
}

.badge-new {
    display: inline-block;
    background: transparent;
    color: var(--champagne);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--champagne);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    position: absolute;
    bottom: -40px;
    right: 10%;
    display: flex;
    gap: 2rem;
    background: var(--bg-surface);
    padding: 1.5rem 3rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 20;
}
@media(max-width: 1024px) {
    .hero-stats { display: none; }
}

/* =========================================
   Store Layout
========================================= */
.store-container {
    max-width: 1400px;
    margin: 5rem auto;
    padding: 0 2rem;
}

/* =========================================
   Filters
========================================= */
.haute-couture-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.category-tabs {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.category-tabs label {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color var(--transition);
    padding-bottom: 0.5rem;
    position: relative;
}

.category-tabs label:hover {
    color: var(--champagne);
}

.category-tabs input[type="radio"] {
    display: none;
}

.category-tabs label:has(input:checked) {
    color: var(--navy);
    border-bottom: 2px solid var(--navy);
}

.sort-dropdown {
    display: flex;
    align-items: center;
}

.minimal-select {
    background: transparent;
    color: var(--navy);
    border: none;
    border-bottom: 1px solid var(--silver);
    padding: 0.4rem 1rem 0.4rem 0;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
    cursor: pointer;
}

/* =========================================
   Product Grid & Cards
========================================= */
.products-area {
    width: 100%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 3rem 1.5rem;
}
@media(max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    background: var(--white);
    border: 1px solid var(--silver);
    border-radius: 4px;
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    animation: fadeUp 0.6s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(7, 30, 65, 0.2);
    box-shadow: var(--shadow-md);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--white-cold);
    position: relative;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

.product-brand {
    font-size: 0.7rem;
    color: var(--champagne);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--navy);
    text-transform: none;
    line-height: 1.4;
}

.product-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.product-price-block {
    display: flex;
    flex-direction: column;
}

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

.price-current {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
}

.btn-add {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--navy);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
}

.product-card:hover .btn-add {
    background: var(--navy);
    color: var(--white);
}

/* =========================================
   Cart Drawer
========================================= */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3,21,47,0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--white);
    border-left: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: right var(--transition);
    box-shadow: var(--shadow-lg);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--silver);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.cart-header h3 {
    font-size: 1.5rem;
    color: var(--navy);
}

.cart-items {
    flex-grow: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--silver);
    background: var(--white-cold);
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

/* =========================================
   Popular Section
========================================= */
.popular-section {
    background: var(--white);
    padding: 5rem 2rem;
}

.popular-header {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--navy);
}

.popular-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* =========================================
   Trust Bar & Sections (New)
========================================= */
.trust-bar, .trust-bar-section, .trust-section {
    background: var(--white-cold);
    padding: 4rem 2rem;
}

.trust-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.trust-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.trust-card i {
    font-size: 2rem;
    color: var(--champagne);
}

.trust-card h4 {
    font-size: 1.1rem;
    margin: 0;
}

.trust-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Category Hero Sections */
.category-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.category-hero-block {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    border-radius: 4px;
}

.category-hero-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.category-hero-block:hover img {
    transform: scale(1.05);
}

.category-hero-perfumes {
    background: linear-gradient(to top, rgba(3,21,47,0.8), transparent);
}

.category-hero-watches {
    background: linear-gradient(to top, rgba(217,222,229,0.8), transparent);
}

/* Newsletter */
.newsletter-section {
    background: var(--navy);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.newsletter-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

/* =========================================
   Footer
========================================= */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    margin-top: 0;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--silver);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--champagne);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
}

/* =========================================
   Modals, Auth, Checkout, Toast, Reviews
========================================= */
.modal, .overlay, .auth-modal, .checkout-modal {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.toast {
    background: var(--navy);
    color: var(--white);
    border-radius: 4px;
    padding: 1rem;
}

.review-card {
    background: var(--white);
    border: 1px solid var(--silver);
    border-radius: 4px;
    padding: 1.5rem;
}

.review-card .stars {
    color: var(--navy);
}

/* =========================================
   AI Chat Modal
========================================= */
.ai-chat-modal {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 350px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--navy);
    color: var(--white);
    padding: 1rem;
    font-weight: 600;
}

.chat-flow {
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-bubble {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    max-width: 80%;
}

.chat-bubble.bot {
    background: #F0F2F5;
    color: var(--navy);
    align-self: flex-start;
}

.chat-bubble.user {
    background: var(--navy);
    color: var(--white);
    align-self: flex-end;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--silver);
    display: flex;
    gap: 0.5rem;
}

/* =========================================
   Utilities & Animations
========================================= */
.loading-spinner, .spin {
    color: var(--navy);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.order-history-card {
    background: var(--white);
    border: 1px solid var(--silver);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.wholesale-badge {
    background: var(--champagne);
    color: var(--white);
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    font-size: 0.8rem;
}
