/* ============================================
   Montres Maroc — Main Stylesheet
   ============================================ */

:root {
    --gold: #c9a96e;
    --gold-dark: #a8823f;
    --gold-light: #e8d5a3;
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --dark-3: #0f3460;
    --text-muted: #888;
    --border: #e8e8e8;
    --bg-light: #fafafa;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --transition: all 0.3s ease;
}

/* ---- Base ---- */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
}

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

/* ---- Colors ---- */
.text-gold { color: var(--gold) !important; }
.bg-gold { background: var(--gold) !important; }
.btn-gold {
    background: var(--gold);
    color: #fff;
    border: none;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
    font-weight: 500;
}
.btn-outline-gold:hover { background: var(--gold); color: #fff; }

/* ---- Top Bar ---- */
.topbar {
    background: var(--dark);
    color: #aaa;
    padding: 6px 0;
    font-size: 12px;
}
.topbar a { color: #aaa; }
.topbar a:hover { color: var(--gold); }

/* ---- Navbar ---- */
#mainNav {
    background: var(--dark) !important;
    padding: 14px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    transition: var(--transition);
}
#mainNav.scrolled {
    padding: 8px 0;
    background: rgba(26,26,46,0.97) !important;
}
.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}
.navbar-brand { color: var(--gold) !important; }
.navbar-nav .nav-link {
    color: #ccc !important;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: 4px;
    transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--gold) !important; }

.dropdown-menu {
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 8px;
    min-width: 200px;
}
.dropdown-item {
    border-radius: 6px;
    font-size: 14px;
    padding: 8px 14px;
    transition: var(--transition);
}
.dropdown-item:hover { background: var(--gold-light); color: var(--gold-dark); }

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Hero Section ---- */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, var(--dark-3) 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="40" fill="none" stroke="%23c9a96e" stroke-width="0.3" opacity="0.2"/><circle cx="80" cy="80" r="60" fill="none" stroke="%23c9a96e" stroke-width="0.2" opacity="0.15"/></svg>');
    background-size: cover;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-block;
    background: rgba(201,169,110,0.15);
    border: 1px solid rgba(201,169,110,0.4);
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: #fff;
    line-height: 1.15;
    font-weight: 700;
}
.hero h1 span { color: var(--gold); }
.hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 480px;
    line-height: 1.7;
}
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 2rem;
}
.hero-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.hero-watch-img {
    max-width: 100%;
    filter: drop-shadow(0 20px 60px rgba(201,169,110,0.3));
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ---- Section Headers ---- */
.section-header { margin-bottom: 3rem; }
.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 8px;
}
.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--dark);
    margin-bottom: 12px;
}
.divider-gold {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    margin: 10px 0 0;
}
.divider-gold.mx-auto { margin: 10px auto 0; }

/* ---- Product Card ---- */
.product-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: var(--transition);
    height: 100%;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: var(--gold-light);
}
.product-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 1;
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.07); }
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.badge-new { background: var(--dark); color: #fff; font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 50px; }
.badge-sale { background: var(--danger); color: #fff; font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 50px; }
.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(26,26,46,0.9);
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    transition: var(--transition);
}
.product-card:hover .product-actions { bottom: 0; }
.product-actions .btn { font-size: 13px; border-radius: 8px; }
.product-body { padding: 16px 18px 18px; }
.product-brand { font-size: 11px; color: var(--gold); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price .current { font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.product-price .old { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }
.product-price .discount { font-size: 11px; background: #fff0f0; color: var(--danger); padding: 2px 7px; border-radius: 50px; margin-left: 6px; font-weight: 600; }
.stock-indicator { font-size: 11px; margin-top: 8px; }
.in-stock { color: var(--success); }
.low-stock { color: #e67e22; }
.out-stock { color: var(--danger); }

/* ---- Category Cards ---- */
.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
}
.category-card .cat-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.category-card:hover .cat-bg { transform: scale(1.05); }
.category-card .cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}
.cat-homme .cat-bg { background-color: #2c3e50; background-image: linear-gradient(135deg, #1a1a2e, #16213e); }
.cat-femme .cat-bg { background-color: #8e44ad; background-image: linear-gradient(135deg, #4a0932, #8e44ad); }
.cat-content {
    position: relative;
    z-index: 2;
    padding: 28px;
    width: 100%;
}
.cat-label {
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}
.cat-title { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.cat-count { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 16px; }

/* ---- Feature Badges ---- */
.feature-box {
    text-align: center;
    padding: 28px 16px;
    border-radius: 14px;
    transition: var(--transition);
    border: 1px solid transparent;
}
.feature-box:hover {
    background: #fff;
    border-color: var(--gold-light);
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    transform: translateY(-4px);
}
.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(201,169,110,0.3);
}

/* ---- Shop Page ---- */
.shop-sidebar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    position: sticky;
    top: 90px;
}
.sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold-light);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-category-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 6px;
    transition: var(--transition);
    text-decoration: none;
}
.filter-category-btn:hover,
.filter-category-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}
.price-range-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}
.product-count-badge {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
}

/* ---- Product Detail ---- */
.product-detail-img {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 1;
}
.product-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-detail-price {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}
.qty-input {
    width: 70px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    font-size: 16px;
    font-weight: 600;
}
.qty-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.qty-btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    color: #555;
    margin: 4px;
}

/* ---- Cart ---- */
.cart-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
}
.cart-item:hover { border-color: var(--gold-light); }
.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--bg-light);
}
.cart-summary {
    background: var(--dark);
    color: #fff;
    border-radius: 16px;
    padding: 28px;
    position: sticky;
    top: 90px;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}
.cart-summary-row:last-child { border-bottom: none; }
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
.cart-total-price { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 1.5rem; }

/* ---- Checkout ---- */
.checkout-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}
.checkout-step {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}
.step-num {
    width: 36px;
    height: 36px;
    background: var(--gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.form-control, .form-select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}
.form-label { font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.cod-badge {
    background: #f8fff8;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.cod-badge i { font-size: 2rem; color: #28a745; }

/* ---- Order Success ---- */
.success-card {
    background: linear-gradient(135deg, var(--dark), var(--dark-3));
    color: #fff;
    border-radius: 20px;
    padding: 48px;
    text-align: center;
}
.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.5rem;
    color: #fff;
    animation: pop 0.5s ease;
}
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ---- Contact ---- */
.contact-card {
    background: var(--dark);
    border-radius: 16px;
    padding: 32px;
    color: #fff;
    height: 100%;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(201,169,110,0.15);
    border: 1px solid rgba(201,169,110,0.3);
    color: var(--gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ---- Footer ---- */
.footer {
    background: var(--dark);
    color: #aaa;
}
.footer-brand {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.3rem;
}
.footer-link {
    color: #888;
    font-size: 14px;
    display: block;
    transition: var(--transition);
}
.footer-link:hover { color: var(--gold); padding-left: 6px; }
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #aaa;
    font-size: 0.9rem;
    transition: var(--transition);
}
.social-link:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }

/* ---- Scroll to top ---- */
.btn-scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(201,169,110,0.4);
}
.btn-scroll-top.visible { opacity: 1; pointer-events: all; }
.btn-scroll-top:hover { background: var(--gold-dark); transform: translateY(-3px); }

/* ---- Admin ---- */
.admin-sidebar {
    background: var(--dark);
    min-height: 100vh;
    width: 240px;
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 100;
    padding: 0;
    overflow-y: auto;
}
.admin-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--gold);
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav-link:hover,
.admin-nav-link.active {
    color: var(--gold);
    background: rgba(201,169,110,0.1);
    border-left-color: var(--gold);
}
.admin-content {
    margin-left: 240px;
    padding: 28px;
    min-height: 100vh;
    background: var(--bg-light);
}
.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.stat-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.08); transform: translateY(-3px); }
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.admin-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #888; font-weight: 600; }
.status-badge { font-size: 11px; padding: 4px 10px; border-radius: 50px; font-weight: 600; }
.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #cce5ff; color: #004085; }
.status-shipped { background: #d4edda; color: #155724; }
.status-delivered { background: #d1ecf1; color: #0c5460; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* ---- Breadcrumb ---- */
.page-banner {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    padding: 40px 0;
    color: #fff;
}
.page-banner h1 { font-size: 2rem; margin: 0; }
.breadcrumb-item a { color: var(--gold); }
.breadcrumb-item.active { color: rgba(255,255,255,0.6); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ---- Misc ---- */
.section-bg { background: var(--bg-light); }
.newsletter-section {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    padding: 60px 0;
    color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero { min-height: 70vh; padding: 60px 0; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 20px; }
    .hero-stat-num { font-size: 1.4rem; }
    .category-card { min-height: 260px; }
    .cat-title { font-size: 1.5rem; }
    .cart-summary { position: static; margin-top: 20px; }
    .admin-sidebar { width: 100%; position: relative; min-height: auto; }
    .admin-content { margin-left: 0; padding: 16px; }
    .checkout-form { padding: 20px; }
    .success-card { padding: 28px; }
}

@media (max-width: 576px) {
    .product-actions { display: none; }
    .topbar { display: none; }
}
