/*
Theme Name: Mumtaz Deal Retail
Theme URI: https://mumtazdeals.shop/
Author: Mumtaz Deal
Description: Ultimate retail WooCommerce theme with Day/Night mode, Customer Registration, and WhatsApp Order.
Version: 2.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mumtaz-deal
*/

:root {
    --bg: #ffffff;
    --card-bg: #ffffff;
    --black: #111111;
    --gold: #c9a227;
    --gold-light: #e5d18a;
    --soft: #f8f8f6;
    --text: #1d1d1f;
    --muted: #666666;
    --border: #e8e6df;
    --radius: 16px;
    --shadow: 0 12px 35px rgba(0,0,0,.06);
    --wa-green: #25D366;
    --red: #e63946;
}

body.dark-mode {
    --bg: #121212;
    --card-bg: #1c1c1e;
    --black: #000000;
    --soft: #18181a;
    --text: #f2f2f7;
    --muted: #a1a1a6;
    --border: #2c2c2e;
    --shadow: 0 12px 35px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.md-container { width: min(1200px, 92%); margin: auto; }

/* TOP BAR */
.md-topbar { background: var(--black); color: white; font-size: 13px; }
.md-topbar-inner { min-height: 40px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.md-topbar-links { display: flex; gap: 16px; font-weight: 600; }
.md-topbar-links a:hover { color: var(--gold); }

/* HEADER */
.md-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(12px);
    transition: background 0.3s ease;
}
.md-header-inner { min-height: 76px; display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.md-logo { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; white-space: nowrap; }
.md-logo span { color: var(--gold); }

.md-search { flex: 1; max-width: 440px; margin: auto; }
.md-search form { display: flex; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--card-bg); }
.md-search input { width: 100%; border: 0; outline: 0; padding: 11px 18px; font-size: 14px; background: transparent; color: var(--text); }
.md-search button { border: 0; background: var(--black); color: white; padding: 0 20px; cursor: pointer; font-weight: 700; }

.md-nav { display: flex; align-items: center; gap: 20px; }
.md-nav a { font-size: 14px; font-weight: 700; }
.md-nav a:hover { color: var(--gold); }

.md-header-actions { display: flex; align-items: center; gap: 12px; }
.md-action-btn { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--soft); border: 1px solid var(--border); }
.md-theme-toggle { background: var(--soft); border: 1px solid var(--border); padding: 8px 12px; border-radius: 999px; cursor: pointer; font-size: 15px; }

.md-menu-button { display: none; border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--text); }

/* MOBILE MENU */
.md-mobile-menu { display: none; background: var(--card-bg); border-top: 1px solid var(--border); padding: 15px 0; }
.md-mobile-menu.open { display: block; }
.md-mobile-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); font-weight: 600; }

/* HERO */
.md-hero {
    background: radial-gradient(circle at 75% 40%, rgba(201,162,39,.22), transparent 35%), linear-gradient(135deg, #0a0a0a, #1a1a1a);
    color: white;
    padding: 75px 0;
}
.md-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 40px; }
.md-kicker { color: var(--gold-light); text-transform: uppercase; letter-spacing: 2px; font-size: 13px; font-weight: 800; }
.md-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; margin: 15px 0 20px; }
.md-hero p { color: #dddddd; font-size: 17px; max-width: 540px; }
.md-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.md-btn { display: inline-flex; justify-content: center; align-items: center; padding: 13px 24px; border-radius: 999px; font-weight: 800; transition: .2s; }
.md-btn-gold { background: var(--gold); color: #111; }
.md-btn-gold:hover { background: #e2c45b; }
.md-btn-dark { color: white; border: 1px solid #555; }

.md-hero-visual {
    min-height: 320px;
    border-radius: 24px;
    background: radial-gradient(circle at 40% 30%, #fff, #ddd9cc 22%, #777261 52%, #222 85%);
    box-shadow: 0 30px 80px rgba(0,0,0,.4);
    position: relative;
}
.md-hero-visual:after { content: "MUMTAZ DEAL"; position: absolute; bottom: 20px; left: 20px; color: rgba(255,255,255,.8); font-size: 13px; font-weight: 900; letter-spacing: 4px; }

/* SECTIONS */
.md-section { padding: 60px 0; }
.md-section-soft { background: var(--soft); }
.md-section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.md-section-heading h2 { margin: 0; font-size: 30px; }

/* PRODUCTS */
.md-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.md-product {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.md-product:hover { transform: translateY(-4px); }
.md-badge { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 900; padding: 4px 9px; border-radius: 6px; text-transform: uppercase; z-index: 5; }
.md-badge-hot { background: var(--red); color: white; }
.md-badge-new { background: var(--gold); color: #111; }

.md-product-image { aspect-ratio: 1/1; background: var(--soft); display: flex; justify-content: center; align-items: center; overflow: hidden; }
.md-product-image img { width: 100%; height: 100%; object-fit: cover; }
.md-product-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.md-product-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; flex: 1; color: var(--text); }
.md-price { font-size: 18px; font-weight: 900; margin-bottom: 12px; color: var(--text); }

.md-btn-whatsapp {
    background: var(--wa-green);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.md-btn-whatsapp:hover { background: #1eb857; color: #fff; }

/* FLOATING WHATSAPP */
.md-float-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--wa-green);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 30px rgba(37,211,102,.4);
    z-index: 9999;
}

/* WOOCOMMERCE FORM IMPROVEMENTS */
.woocommerce form.login, .woocommerce form.register {
    background: var(--card-bg)!important;
    border: 1px solid var(--border)!important;
    border-radius: var(--radius)!important;
    padding: 25px!important;
    color: var(--text)!important;
}
.woocommerce-input-wrapper input {
    background: var(--bg)!important;
    border: 1px solid var(--border)!important;
    color: var(--text)!important;
    padding: 10px!important;
    border-radius: 8px!important;
}

/* FEATURES */
.md-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.md-feature { padding: 25px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.md-feature strong { display: block; font-size: 17px; margin-bottom: 6px; }

/* FOOTER */
.md-footer { background: #0c0c0c; color: white; padding: 60px 0 25px; margin-top: 40px; }
.md-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 35px; }
.md-footer h3 { margin-top: 0; }
.md-footer p, .md-footer a { color: #a0a0a0; }
.md-footer a:hover { color: var(--gold); }
.md-footer-links { display: grid; gap: 9px; }
.md-copyright { border-top: 1px solid #222; margin-top: 40px; padding-top: 20px; color: #777; font-size: 13px; text-align: center; }

/* RESPONSIVE */
@media(max-width:1000px){
    .md-nav, .md-header-actions { display: none; }
    .md-menu-button { display: block; }
    .md-hero-grid { grid-template-columns: 1fr; }
    .md-products { grid-template-columns: repeat(2, 1fr); }
    .md-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:600px){
    .md-search { order: 10; width: 100%; margin-bottom: 8px; }
    .md-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .md-features, .md-footer-grid { grid-template-columns: 1fr; }
}
