/* =====================================================
   DiscGame (discgame.ir) — Simple store stylesheet
   ===================================================== */

:root {
    --dg-ink: #111827;
    --dg-muted: #6b7280;
    --dg-bg: #ffffff;
    --dg-soft: #f3f4f6;
    --dg-line: #e5e7eb;
    --dg-accent: #2563eb;
    --dg-accent-dark: #1d4ed8;
    --dg-sale: #dc2626;
    --dg-radius: 8px;
    --dg-container: 1140px;
    --dg-font: 'Vazirmatn', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--dg-font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--dg-ink);
    background: var(--dg-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dg-accent); text-decoration: none; }
a:hover { color: var(--dg-accent-dark); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.4; color: var(--dg-ink); }
p { margin: 0 0 1em; }
.gmb-container { width: 100%; max-width: var(--dg-container); margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.gmb-btn, .button, .wp-element-button, .added_to_cart,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border: 0; border-radius: var(--dg-radius);
    background: var(--dg-accent); color: #fff !important;
    font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.gmb-btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--dg-accent-dark); color: #fff !important; }
.gmb-btn-large { padding: 12px 26px; font-size: 16px; }
.gmb-btn-outline { background: #fff; color: var(--dg-accent) !important; box-shadow: inset 0 0 0 1px var(--dg-accent); }

/* ---------- Top bar ---------- */
.gmb-topbar { background: var(--dg-soft); font-size: 13px; color: var(--dg-muted); border-bottom: 1px solid var(--dg-line); }
.gmb-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.gmb-topbar-icon { display: none; }
.gmb-topbar-links a { color: var(--dg-ink); }
.gmb-topbar-links .sep { margin: 0 6px; }

/* ---------- Header ---------- */
.gmb-header { background: #fff; border-bottom: 1px solid var(--dg-line); position: sticky; top: 0; z-index: 50; }
.gmb-header-inner { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.gmb-logo-text { display: inline-flex; align-items: center; gap: 8px; color: var(--dg-ink); }
.gmb-logo-icon { display: none; }
.gmb-logo-name { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.gmb-logo-accent { color: var(--dg-accent); }
.gmb-logo-wrap img, .custom-logo { max-height: 44px; width: auto; }

.gmb-search-wrap { flex: 1; position: relative; max-width: 480px; margin-inline-start: auto; }
.gmb-search-form { display: flex; position: relative; }
.gmb-search-icon { display: none; }
.gmb-search-input {
    flex: 1; min-width: 0; padding: 9px 14px; font: inherit; font-size: 14px;
    border: 1px solid var(--dg-line); border-radius: var(--dg-radius) 0 0 var(--dg-radius); outline: none;
}
.gmb-search-input:focus { border-color: var(--dg-accent); }
.gmb-search-btn {
    padding: 0 16px; border: 1px solid var(--dg-accent); background: var(--dg-accent); color: #fff;
    border-radius: 0 var(--dg-radius) var(--dg-radius) 0; font: inherit; font-size: 14px; cursor: pointer;
}
.gmb-search-results {
    position: absolute; top: 100%; inset-inline: 0; margin-top: 4px; background: #fff;
    border: 1px solid var(--dg-line); border-radius: var(--dg-radius); box-shadow: 0 6px 18px rgba(0,0,0,.08);
    z-index: 60; display: none;
}
.gmb-search-results:not(:empty) { display: block; }

.gmb-header-actions { display: flex; align-items: center; gap: 4px; }
.gmb-header-action { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 8px; color: var(--dg-ink); font-size: 14px; }
.gmb-header-action-label { display: none; }
.gmb-theme-toggle { display: none; }
.gmb-cart-count {
    position: absolute; top: 0; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--dg-accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}
.gmb-mobile-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.gmb-mobile-toggle span { display: block; width: 20px; height: 2px; margin: 4px 0; background: var(--dg-ink); }

/* ---------- Navigation ---------- */
.gmb-nav { border-top: 1px solid var(--dg-line); }
.gmb-nav .gmb-container { display: flex; }
.gmb-nav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 8px 0; }
.gmb-nav a { color: var(--dg-ink); font-size: 14px; }
.gmb-nav a:hover { color: var(--dg-accent); }

/* ---------- Sections ---------- */
.gmb-section { padding: 32px 0; }
.gmb-section-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.gmb-hero { background: var(--dg-soft); }
.gmb-hero-slide { padding: 48px 0; }
.gmb-hero-title { font-size: 28px; font-weight: 800; }
.gmb-hero-subtitle { color: var(--dg-muted); }
.gmb-hero-dots, .gmb-hero-controls { display: none; }

/* ---------- Product cards ---------- */
.gmb-products-grid, ul.products {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px;
    list-style: none; margin: 0; padding: 0;
}
.gmb-product-card, ul.products li.product {
    position: relative; display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--dg-line); border-radius: var(--dg-radius); padding: 12px; margin: 0 !important; width: auto !important;
}
.gmb-product-image, ul.products li.product a img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; margin-bottom: 8px; }
.gmb-product-title, ul.products li.product .woocommerce-loop-product__title { font-size: 14px; font-weight: 600; color: var(--dg-ink); margin: 0 0 6px; }
.gmb-product-price, ul.products li.product .price { font-size: 14px; font-weight: 700; color: var(--dg-ink); }
.gmb-product-price del { color: var(--dg-muted); font-weight: 400; margin-inline-end: 6px; }
.gmb-product-price ins { text-decoration: none; color: var(--dg-accent); }
.gmb-sale-badge, .gmb-new-badge, span.onsale {
    position: absolute; top: 8px; inset-inline-start: 8px; background: var(--dg-sale); color: #fff;
    font-size: 11px; padding: 2px 8px; border-radius: 4px; min-height: 0; min-width: 0; line-height: 1.5;
}
.gmb-new-badge { background: var(--dg-accent); }
.gmb-product-actions, .gmb-product-bottom, .gmb-wc-quick-actions, .gmb-product-rating, .gmb-stars { font-size: 12px; color: var(--dg-muted); }

/* ---------- Features / CTA ---------- */
.gmb-features-bar { border-bottom: 1px solid var(--dg-line); padding: 14px 0; }
.gmb-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gmb-feature { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.gmb-feature h4 { font-size: 14px; margin: 0; }
.gmb-feature p { font-size: 12px; color: var(--dg-muted); margin: 0; }
.gmb-feature-icon, .gmb-why-icon { display: none; }
.gmb-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.gmb-why-card { padding: 20px; border: 1px solid var(--dg-line); border-radius: var(--dg-radius); }
.gmb-cta { background: var(--dg-accent); color: #fff; padding: 40px 0; text-align: center; }
.gmb-cta h2, .gmb-cta p { color: #fff; }
.gmb-cta .gmb-btn { background: #fff; color: var(--dg-accent) !important; }

/* ---------- Footer ---------- */
.gmb-footer { background: var(--dg-soft); border-top: 1px solid var(--dg-line); padding: 32px 0 0; font-size: 14px; }
.gmb-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.gmb-footer-widget-title { font-size: 15px; margin-bottom: 8px; }
.gmb-footer-links { list-style: none; margin: 0; padding: 0; }
.gmb-footer-links li { margin-bottom: 6px; }
.gmb-footer-links a { color: var(--dg-ink); }
.gmb-social, .gmb-enamad-box { display: none; }
.gmb-footer-copyright { border-top: 1px solid var(--dg-line); margin-top: 24px; padding: 14px 0; text-align: center; color: var(--dg-muted); font-size: 13px; }
.gmb-back-top { display: none; }

/* ---------- WooCommerce pages ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    border: 1px solid var(--dg-line); border-inline-start: 4px solid var(--dg-accent); border-radius: var(--dg-radius);
    padding: 12px 16px; background: var(--dg-soft); list-style: none; margin: 0 0 16px;
}
.woocommerce table.shop_table { border-collapse: collapse; width: 100%; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-bottom: 1px solid var(--dg-line); padding: 10px; }
.woocommerce input[type=text], .woocommerce input[type=email], .woocommerce input[type=tel],
.woocommerce input[type=password], .woocommerce textarea, .woocommerce select {
    width: 100%; padding: 9px 12px; border: 1px solid var(--dg-line); border-radius: var(--dg-radius); font: inherit;
}
.woocommerce-product-gallery img { border-radius: var(--dg-radius); }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .gmb-header-inner { flex-wrap: wrap; }
    .gmb-search-wrap { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
    .gmb-mobile-toggle { display: block; }
    .gmb-nav { display: none; }
    .gmb-nav.is-open { display: block; }
    .gmb-hero-title { font-size: 22px; }
    .gmb-products-grid, ul.products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
