/*
Theme Name: Mumtaz Deals
Theme URI: https://mumtazdeals.shop
Author: Mumtaz Deals
Author URI: https://mumtazdeals.shop
Description: Professional colorful WooCommerce eCommerce theme for Mumtaz Deals.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mumtaz-deals
License: GPL v2 or later
*/

:root {
    --md-primary: #111111;
    --md-secondary: #d4af37;
    --md-gold: #f5c542;
    --md-white: #ffffff;
    --md-bg: #f7f7f7;
    --md-card: #ffffff;
    --md-text: #171717;
    --md-muted: #707070;
    --md-border: #e8e8e8;
    --md-success: #16a34a;
    --md-danger: #dc2626;
    --md-radius: 16px;
    --md-shadow: 0 10px 35px rgba(0,0,0,.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--md-bg);
    color: var(--md-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

body.md-dark {
    --md-bg: #0d0f12;
    --md-card: #171a1f;
    --md-text: #f5f5f5;
    --md-muted: #a7a7a7;
    --md-border: #2c3036;
    --md-primary: #ffffff;
    background: #0d0f12;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1200px, 94%);
    margin: auto;
}

.md-topbar {
    background: #111;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.md-topbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.md-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--md-border);
    backdrop-filter: blur(12px);
}

.md-dark .md-header {
    background: rgba(15,17,20,.96);
}

.md-header-main {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.md-logo {
    font-size: 25px;
    font-weight: 900;
    white-space: nowrap;
}

.md-logo span {
    color: var(--md-gold);
}

.md-search {
    flex: 1;
    position: relative;
}

.md-search input {
    width: 100%;
    border: 1px solid var(--md-border);
    border-radius: 50px;
    padding: 14px 20px;
    outline: none;
    background: var(--md-card);
    color: var(--md-text);
}

.md-search input:focus {
    border-color: var(--md-gold);
    box-shadow: 0 0 0 3px rgba(245,197,66,.15);
}

.md-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.md-icon-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--md-border);
    border-radius: 50%;
    background: var(--md-card);
    color: var(--md-text);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.md-icon-btn:hover {
    border-color: var(--md-gold);
    transform: translateY(-1px);
}

.md-nav {
    border-top: 1px solid var(--md-border);
}

.md-nav-inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 25px;
    overflow-x: auto;
}

.md-nav a {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
}

.md-nav a:hover {
    color: #c89b1c;
}

.md-hero {
    margin: 25px 0;
    border-radius: 25px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(245,197,66,.4), transparent 35%),
        linear-gradient(135deg,#111,#292929);
    color: #fff;
}

.md-hero-content {
    padding: 70px 7%;
    max-width: 700px;
}

.md-hero h1 {
    font-size: clamp(32px,5vw,62px);
    line-height: 1.05;
    margin: 0 0 18px;
}

.md-hero p {
    color: #ddd;
    font-size: 17px;
}

.md-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 13px 22px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
}

.md-btn-primary {
    background: var(--md-gold);
    color: #111;
}

.md-btn-dark {
    background: #111;
    color: #fff;
}

.md-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--md-shadow);
}

.md-section {
    padding: 28px 0;
}

.md-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.md-section-heading h2 {
    margin: 0;
    font-size: 25px;
}

.md-product-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
}

.md-product-card {
    position: relative;
    background: var(--md-card);
    border: 1px solid var(--md-border);
    border-radius: var(--md-radius);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
    transition: .25s;
}

.md-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--md-shadow);
}

.md-product-image {
    position: relative;
    aspect-ratio: 1/1;
    background: #f5f5f5;
    overflow: hidden;
}

.md-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: .3s;
}

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

.md-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 20px;
    background: var(--md-gold);
    color: #111;
    font-size: 11px;
    font-weight: 900;
}

.md-product-info {
    padding: 14px;
}

.md-product-title {
    font-weight: 700;
    min-height: 45px;
}

.md-price {
    margin-top: 8px;
    font-size: 19px;
    font-weight: 900;
}

.md-price del {
    color: var(--md-muted);
    font-size: 13px;
    margin-right: 5px;
}

.md-product-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.md-product-actions .button {
    flex: 1;
}

.md-categories {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 14px;
}

.md-category {
    background: var(--md-card);
    border: 1px solid var(--md-border);
    padding: 20px 10px;
    border-radius: 16px;
    text-align: center;
    font-weight: 800;
    transition: .2s;
}

.md-category:hover {
    border-color: var(--md-gold);
    transform: translateY(-3px);
}

.md-footer {
    margin-top: 50px;
    background: #111;
    color: #fff;
    padding: 50px 0 20px;
}

.md-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

.md-footer a {
    color: #ddd;
}

.md-footer a:hover {
    color: var(--md-gold);
}

.md-footer-bottom {
    border-top: 1px solid #333;
    margin-top: 35px;
    padding-top: 18px;
    color: #aaa;
    font-size: 13px;
}

.md-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 1000;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
}

.md-mobile-menu {
    display: none;
}

@media(max-width: 1000px) {
    .md-product-grid {
        grid-template-columns: repeat(3,1fr);
    }

    .md-categories {
        grid-template-columns: repeat(4,1fr);
    }

    .md-footer-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width: 700px) {
    .md-header-main {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .md-logo {
        order: 1;
    }

    .md-header-actions {
        order: 2;
        margin-left: auto;
    }

    .md-search {
        order: 3;
        flex-basis: 100%;
    }

    .md-nav-inner {
        gap: 18px;
    }

    .md-product-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 10px;
    }

    .md-categories {
        grid-template-columns: repeat(3,1fr);
        gap: 8px;
    }

    .md-footer-grid {
        grid-template-columns: 1fr;
    }

    .md-topbar-inner {
        justify-content: center;
    }

    .md-topbar-inner span:last-child {
        display: none;
    }
}

@media(max-width:400px) {
    .md-product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .md-product-info {
        padding: 10px;
    }

    .md-product-title {
        font-size: 13px;
    }
}

/* ---------------------------------------------------------
   PROFESSIONAL ACCOUNT / LOGIN / REGISTER
--------------------------------------------------------- */

.md-account-page {
    padding: 45px 0;
}

.md-auth-wrapper {
    max-width: 980px;
    margin: auto;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    background: var(--md-card);
    border: 1px solid var(--md-border);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--md-shadow);
}

.md-auth-brand {
    padding: 50px;
    color: #fff;
    background:
        radial-gradient(circle at top right,rgba(245,197,66,.5),transparent 35%),
        linear-gradient(145deg,#111,#252525);
}

.md-auth-brand h2 {
    font-size: 36px;
    margin-top: 0;
}

.md-auth-brand strong {
    color: var(--md-gold);
}

.md-auth-brand ul {
    padding-left: 20px;
    color: #ddd;
}

.md-auth-form {
    padding: 45px;
}

.md-auth-form h1 {
    margin-top: 0;
    font-size: 30px;
}

.md-form-group {
    margin-bottom: 17px;
}

.md-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 7px;
}

.md-form-group input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--md-border);
    border-radius: 11px;
    background: var(--md-card);
    color: var(--md-text);
    outline: none;
}

.md-form-group input:focus {
    border-color: var(--md-gold);
    box-shadow: 0 0 0 3px rgba(245,197,66,.12);
}

.md-password-wrap {
    position: relative;
}

.md-password-wrap input {
    padding-right: 55px;
}

.md-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
}

.md-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.md-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
}

.md-check input {
    margin-top: 5px;
}

.md-auth-submit {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg,#f5c542,#d4af37);
    color: #111;
    font-weight: 900;
    cursor: pointer;
}

.md-auth-submit:hover {
    transform: translateY(-1px);
}

.md-auth-links {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    font-size: 14px;
}

.md-auth-links a {
    color: #b28718;
    font-weight: 700;
}

.md-auth-note {
    color: var(--md-muted);
    font-size: 13px;
}

.md-auth-message {
    margin-bottom: 18px;
}

@media(max-width:750px) {
    .md-auth-wrapper {
        grid-template-columns: 1fr;
        width: 95%;
    }

    .md-auth-brand {
        padding: 30px;
    }

    .md-auth-form {
        padding: 28px 22px;
    }

    .md-form-row {
        grid-template-columns: 1fr;
    }
}
