/* =====================================================================
   SHALOM STOREFRONT THEME  -  professional typography + brand system
   Loaded sitewide (after shalom-home.css). Change the tokens below to
   restyle the whole store; nothing else needs editing.
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@400;500;600;700&display=swap");

:root {
    /* ---- Brand colours (unchanged) ---- */
    --sh-red: #E50000;
    --sh-red-dark: #c40000;
    --sh-green: #18A65B;
    --sh-green-dark: #14914e;
    --sh-ink: #1f2937;          /* headings / strong text */
    --sh-text: #374151;         /* body text */
    --sh-muted: #6b7280;
    --sh-border: #e4e4e4;
    --sh-alt: #f7f7f7;

    /* ---- Typography ---- */
    --sh-font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
    --sh-font-body: "Inter", "Segoe UI", Arial, sans-serif;

    --sh-fs-xs: 12px;
    --sh-fs-sm: 13.5px;
    --sh-fs-base: 15px;         /* body */
    --sh-fs-md: 17px;
    --sh-fs-h4: 18px;
    --sh-fs-h3: 22px;
    --sh-fs-h2: 28px;
    --sh-fs-h1: 36px;
    --sh-lh-body: 1.65;
    --sh-lh-head: 1.25;

    /* ---- Shape / motion ---- */
    --sh-radius: 10px;
    --sh-radius-sm: 6px;
    --sh-shadow: 0 2px 10px rgba(17, 24, 39, .06);
    --sh-shadow-lg: 0 10px 28px rgba(17, 24, 39, .12);
    --sh-ease: .2s ease;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }

body, .font-poppins, .font-inter {
    font-family: var(--sh-font-body) !important;
    font-size: var(--sh-fs-base);
    line-height: var(--sh-lh-body);
    color: var(--sh-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.font-dmserif {
    font-family: var(--sh-font-heading) !important;
    color: var(--sh-ink);
    line-height: var(--sh-lh-head);
    letter-spacing: -.01em;
}
h1 { font-size: var(--sh-fs-h1); font-weight: 600; }
h2 { font-size: var(--sh-fs-h2); font-weight: 600; }
h3 { font-size: var(--sh-fs-h3); font-weight: 600; }
h4 { font-size: var(--sh-fs-h4); font-weight: 500; }
h5, h6 { font-size: var(--sh-fs-base); font-weight: 500; }

/* Bagisto text utility sizes are used as-is; only tone them down a little */
.text-sm { font-size: var(--sh-fs-sm); }
.text-xs { font-size: var(--sh-fs-xs); }

a { transition: color var(--sh-ease); }
.text-navyBlue { color: var(--sh-ink) !important; }
.bg-navyBlue { background-color: var(--sh-red) !important; }
.border-navyBlue { border-color: var(--sh-red) !important; }
.text-darkGreen, .bg-darkGreen { --tw-text-opacity: 1; }
.bg-lightOrange { background-color: var(--sh-alt) !important; }
.text-zinc-500, .text-zinc-600 { color: var(--sh-muted) !important; }

:focus-visible { outline: 2px solid var(--sh-green); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.primary-button,
.shimmer-btn {
    font-family: var(--sh-font-body);
    font-size: var(--sh-fs-base);
    font-weight: 500;
    letter-spacing: .01em;
    background: var(--sh-red) !important;
    border: 1px solid var(--sh-red) !important;
    color: #fff !important;
    border-radius: var(--sh-radius) !important;
    padding: 12px 28px !important;
    transition: background var(--sh-ease), border-color var(--sh-ease), transform var(--sh-ease), box-shadow var(--sh-ease);
}
.primary-button:hover {
    background: var(--sh-green) !important;
    border-color: var(--sh-green) !important;
    opacity: 1 !important;
    transform: translateY(-1px);
    box-shadow: var(--sh-shadow);
}
.primary-button:disabled, .primary-button[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.secondary-button {
    font-family: var(--sh-font-body);
    font-size: var(--sh-fs-base);
    font-weight: 500;
    background: #fff !important;
    color: var(--sh-red) !important;
    border: 1px solid var(--sh-red) !important;
    border-radius: var(--sh-radius) !important;
    padding: 12px 28px !important;
    transition: background var(--sh-ease), color var(--sh-ease);
}
.secondary-button:hover { background: var(--sh-red) !important; color: #fff !important; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="tel"], input[type="search"], textarea, select {
    font-family: var(--sh-font-body);
    font-size: var(--sh-fs-base);
    color: var(--sh-ink);
    border-radius: var(--sh-radius-sm);
    transition: border-color var(--sh-ease), box-shadow var(--sh-ease);
}
input:focus, textarea:focus, select:focus {
    border-color: var(--sh-green) !important;
    box-shadow: 0 0 0 3px rgba(24, 166, 91, .15);
    outline: none;
}
label, .label { font-size: var(--sh-fs-sm); font-weight: 500; color: var(--sh-ink); }
.control-group .control-error, .text-red-500 { font-size: var(--sh-fs-xs); }

/* ---------- Header / navigation ---------- */
header { font-family: var(--sh-font-body); }
header nav a, header .group > a { font-size: var(--sh-fs-base); font-weight: 500; }

/* ---------- Product cards (listing + related) ---------- */
.product-card, .v-product-card, [class*="product-card"] {
    font-family: var(--sh-font-body);
}
.product-card, .group\/product-card { transition: box-shadow var(--sh-ease), transform var(--sh-ease); }
.product-card:hover { box-shadow: var(--sh-shadow-lg); transform: translateY(-2px); }
.product-card p.text-base, .product-card .text-base { font-size: var(--sh-fs-base); font-weight: 500; color: var(--sh-ink); }
.product-card .font-semibold, .product-card .final-price { color: var(--sh-ink); font-weight: 600; }
.product-card .regular-price, .product-card s { color: var(--sh-muted); font-size: var(--sh-fs-sm); }

/* ---------- Product detail page ---------- */
.sh-pdp-title, .product-view h1, #product-view h1 { font-size: 30px; font-weight: 600; }
.final-price { color: var(--sh-red) !important; font-weight: 600; }
.regular-price { color: var(--sh-muted); }

/* ---------- Breadcrumbs / pagination / tabs ---------- */
.breadcrumbs, nav[aria-label="breadcrumb"] { font-size: var(--sh-fs-sm); color: var(--sh-muted); }
.breadcrumbs a:hover { color: var(--sh-red); }
nav[aria-label*="agination"] a:hover, .pagination a:hover { color: var(--sh-red); }

/* ---------- Tables / cart / checkout ---------- */
table { font-size: var(--sh-fs-base); }
th { font-weight: 600; color: var(--sh-ink); }
.rounded-xl { border-radius: var(--sh-radius); }

/* ---------- Badges / labels ---------- */
.bg-navyBlue.text-white, .badge { letter-spacing: .02em; }

/* ---------- Footer ---------- */
footer { font-family: var(--sh-font-body); font-size: var(--sh-fs-sm); }
footer h3, footer h4 { color: #fff; font-family: var(--sh-font-heading) !important; }

/* ---------- Small screens: step type sizes down ---------- */
@media (max-width: 768px) {
    :root {
        --sh-fs-base: 14.5px;
        --sh-fs-h1: 28px;
        --sh-fs-h2: 23px;
        --sh-fs-h3: 19px;
    }
    .primary-button, .secondary-button { padding: 11px 22px !important; }
}

/* ---------- Print ---------- */
@media print {
    header, footer, .sh-topbar { display: none !important; }
    body { font-size: 12pt; color: #000; }
}

/* =====================================================================
   Cart / checkout / account - recolour Bagisto's default navy + blue
   ===================================================================== */
/* links that Bagisto renders in blue (Remove, Apply Coupon, etc.) */
.text-blue-500, .text-blue-600, .text-blue-700, .text-blue-800,
a.text-blue-500, a.text-blue-600, a.text-blue-700 { color: var(--sh-red) !important; }
.text-blue-500:hover, .text-blue-600:hover, .text-blue-700:hover { color: var(--sh-green) !important; }

/* radio / checkbox font-icons */
.icon-radio-selected, .icon-checkbox-select, .icon-checked, .icon-tick { color: var(--sh-red) !important; }
.icon-radio-unselect, .icon-checkbox, .icon-uncheck, .icon-checkbox-outline { color: var(--sh-ink) !important; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--sh-red); }

/* chevrons / arrows that use navy */
.icon-arrow-up, .icon-arrow-down, .icon-arrow-right, .icon-arrow-left { color: var(--sh-ink); }

/* quantity stepper, cards, selected shipping/payment option */
.border-navyBlue, .peer-checked\:border-navyBlue:is(:where(.peer):checked ~ *) { border-color: var(--sh-red) !important; }
.peer:checked ~ label, .peer:checked ~ div { border-color: var(--sh-red); }

/* Cart summary / grand total */
.font-semibold, .font-bold { color: var(--sh-ink); }

/* Checkout step headings */
.accordion-header, [class*="checkout"] h2, [class*="checkout"] h3 { font-family: var(--sh-font-heading) !important; font-weight: 600; }

/* Proceed / Place Order buttons are .primary-button -> red; keep them consistently sized */
.primary-button { white-space: nowrap; }

/* ---------- Price range slider thumbs (category sidebar) ---------- */
input[type="range"]::-webkit-slider-thumb {
    width: 12px !important;
    height: 12px !important;
    background: var(--sh-green) !important;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sh-green) !important;
    border: 0 !important;
}
input[type="range"]::-moz-range-thumb {
    width: 12px !important;
    height: 12px !important;
    background: var(--sh-green) !important;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sh-green) !important;
    border: 0 !important;
}
input[type="range"]::-ms-thumb {
    width: 12px !important;
    height: 12px !important;
    background: var(--sh-green) !important;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sh-green) !important;
    border: 0 !important;
}
