/*
Theme Name: CJIO

Author: Al Barr Attar
Description: Premium mobile-first WooCommerce theme for CJIO.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cjio
*/

/* ==========================================================
   1. DESIGN TOKENS
   ========================================================== */
:root {
  --ab-ink: #0b1f19;
  --ab-green: #0f2a22;
  --ab-green-2: #17382d;
  --ab-gold: #c9a24b;
  --ab-gold-light: #e3c87f;
  --ab-gold-dark: #8a6d25;
  --ab-ivory: #fbf7ee;
  --ab-cream: #f1e9d6;
  --ab-line: #e6dcc3;
  --ab-white: #ffffff;
  --ab-text: #1c1c1a;
  --ab-muted: #6a6f68;
  --ab-red: #a3322a;
  --ab-success: #1f7a4d;

  --ab-font-head: "Cormorant Garamond", Georgia, serif;
  --ab-font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ab-container: 1200px;
  --ab-gutter: 16px;
  --ab-radius: 2px;
  --ab-header-h: 108px;
  --ab-bottom-bar-h: 58px;
  --ab-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 992px) {
  :root {
    --ab-gutter: 40px;
    --ab-header-h: 150px;
  }
}

/* ==========================================================
   2. RESET AND BASE
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ab-ivory);
  color: var(--ab-text);
  font-family: var(--ab-font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: var(--ab-bottom-bar-h);
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--ab-font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ab-green);
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 2px solid var(--ab-gold);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ==========================================================
   3. LAYOUT HELPERS
   ========================================================== */
.ab-container {
  width: 100%;
  max-width: var(--ab-container);
  margin: 0 auto;
  padding-left: var(--ab-gutter);
  padding-right: var(--ab-gutter);
}

.ab-section {
  padding: 36px 0 8px;
}

@media (min-width: 992px) {
  .ab-section {
    padding: 64px 0 12px;
  }
}

/* ==========================================================
   4. TYPOGRAPHY HELPERS
   ========================================================== */
.ab-eyebrow {
  display: block;
  color: var(--ab-gold-dark);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
}

.ab-eyebrow--gold {
  color: var(--ab-gold);
}

.ab-title {
  font-size: 28px;
  margin-top: 4px;
}

@media (min-width: 992px) {
  .ab-title {
    font-size: 38px;
  }
}

.ab-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ab-link-more {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ab-gold);
  white-space: nowrap;
}

/* ==========================================================
   5. BUTTONS
   ========================================================== */
.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: var(--ab-radius);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
  transition: transform 0.25s var(--ab-ease), background 0.25s var(--ab-ease),
    color 0.25s var(--ab-ease), border-color 0.25s var(--ab-ease);
}

.ab-btn:active {
  transform: scale(0.98);
}

.ab-btn--gold {
  background: linear-gradient(135deg, var(--ab-gold-light), var(--ab-gold));
  color: var(--ab-ink);
}

.ab-btn--gold:hover {
  background: var(--ab-gold-light);
}

.ab-btn--dark {
  background: var(--ab-green);
  color: var(--ab-gold-light);
}

.ab-btn--dark:hover {
  background: var(--ab-ink);
}

.ab-btn--outline {
  border-color: var(--ab-gold);
  color: var(--ab-gold-light);
  background: transparent;
}

.ab-btn--outline:hover {
  background: var(--ab-gold);
  color: var(--ab-ink);
}

.ab-btn--block {
  display: flex;
  width: 100%;
}

/* ==========================================================
   6. BADGES
   ========================================================== */
.ab-badge {
  display: inline-block;
  padding: 4px 9px;
  background: var(--ab-green);
  color: var(--ab-gold-light);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
}

.ab-badge--sale {
  background: var(--ab-red);
  color: #fff;
}

/* ==========================================================
   7. HORIZONTAL SCROLL ROW (mobile carousels)
   ========================================================== */
.ab-hscroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px var(--ab-gutter) 16px;
  margin: 0 calc(var(--ab-gutter) * -1);
}

.ab-hscroll::-webkit-scrollbar {
  display: none;
}

.ab-hscroll > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* ==========================================================
   8. WORDPRESS CORE
   ========================================================== */
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption-text { font-size: 13px; color: var(--ab-muted); }
/* ==========================================================
   DRAWER & OVERLAY Z-INDEX FIX (CART & MOBILE MENU)
   ========================================================== */

/* 1. Black Backdrop Overlay */
.ab-overlay,
div[data-ab-close] {
  z-index: 99990 !important;
}

/* 2. Side Cart Drawer & Mobile Menu Drawer (Sabse Top Layer) */
aside#ab-cart,
aside#ab-drawer,
aside.ab-cart,
aside.ab-drawer {
  z-index: 999999 !important;
}
/* ==========================================================
   SHOP BY CATEGORY: SINGLE-ROW HORIZONTAL SLIDER
   ========================================================== */
.ab-cat-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ab-cat-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d4c5a3;
  background: #fff;
  color: var(--ab-green);
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ab-cat-nav:hover {
  background: var(--ab-green);
  border-color: var(--ab-green);
  color: var(--ab-gold-light);
}

.ab-cats-slider {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 14px !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}

.ab-cats-slider::-webkit-scrollbar {
  display: none;
}

.ab-cat-card {
  flex: 0 0 155px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px;
  background: #ffffff;
  border: 1px solid #e7dec8;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ab-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--ab-gold);
  box-shadow: 0 10px 24px rgba(15, 42, 34, 0.08);
}

.ab-cat-card__thumb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8f4ea, #efe7d4);
  border: 1px solid #dfd3b6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.ab-cat-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ab-cat-card__thumb em {
  font-family: var(--ab-font-head);
  font-style: normal;
  font-size: 26px;
  font-weight: 600;
  color: var(--ab-gold-dark);
}

.ab-cat-card__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ab-green);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ab-cat-card__count {
  font-size: 11px;
  color: #8b8575;
}
.ab-story { margin-bottom: 0 !important; }