/* Smoothline homepage design (scoped to .ag), derived from approved Agy prototype */
.ag{background:var(--bg);color:var(--text);font-family:var(--font);line-height:1.65;direction:rtl;text-align:right}
.ag *,.ag *::before,.ag *::after{box-sizing:border-box}
.ag [hidden]{display:none!important}
.ag .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ag img{max-width:100%;display:block}
.ag{
  --bg: #f6f5f2;
  --bg-soft: #efede8;
  --surface: #ffffff;
  --surface-2: #f1efe9;
  --text: #181a1b;
  --text-muted: #5d6266;
  --border: #dfdbd2;
  --border-strong: #c7c1b5;
  --accent: #9e472a;
  --accent-strong: #80371f;
  --accent-soft: #f3e6e0;
  --wa: #166e46;
  --wa-strong: #115838;
  --wa-soft: #e3f1ea;
  --danger: #b53b3b;
  --shadow-sm: 0 1px 3px rgba(24, 26, 27, 0.06);
  --shadow-md: 0 10px 26px -14px rgba(24, 26, 27, 0.16);
  --shadow-lg: 0 22px 48px -18px rgba(24, 26, 27, 0.24);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --header-h: 68px;
  --container: 1220px;
  --gap: 18px;
  --font: "Cairo", "Segoe UI", "Tahoma", system-ui, -apple-system, sans-serif;
  --transition: 160ms ease;
}
[data-theme="dark"] .ag{
  --bg: #121416;
  --bg-soft: #181b1e;
  --surface: #1b1e22;
  --surface-2: #24282d;
  --text: #f1efe9;
  --text-muted: #a1a6aa;
  --border: #2c3137;
  --border-strong: #3f464e;
  --accent: #d98262;
  --accent-strong: #e59577;
  --accent-soft: #2e211c;
  --wa: #269963;
  --wa-strong: #1f8052;
  --wa-soft: #162a20;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 28px -12px rgba(0, 0, 0, 0.50);
  --shadow-lg: 0 24px 52px -16px rgba(0, 0, 0, 0.65);
}
.ag .ag-container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.ag .ag-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.25;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
}
.ag .ag-btn:hover{
  transform: translateY(-1px);
}
.ag .ag-btn:active{
  transform: translateY(0);
}
.ag .ag-btn svg{
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}
.ag .ag-btn--sm{
  padding: 8px 13px;
  font-size: 13px;
  gap: 6px;
}
.ag .ag-btn--primary{
  background: var(--text);
  color: var(--bg);
}
.ag .ag-btn--primary:hover{
  background: var(--accent-strong);
  color: #fff;
}
[data-theme="dark"] .ag .ag-btn--primary{
  background: var(--accent);
  color: #121416;
}
[data-theme="dark"] .ag .ag-btn--primary:hover{
  background: var(--accent-strong);
  color: #121416;
}
.ag .ag-btn--outline{
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.ag .ag-btn--outline:hover{
  border-color: var(--text);
  color: var(--text);
}
.ag .ag-btn--wa{
  background: var(--wa);
  color: #fff;
}
.ag .ag-btn--wa:hover{
  background: var(--wa-strong);
  color: #fff;
}
.ag .ag-btn--wa-outline{
  background: var(--surface);
  color: var(--wa);
  border-color: color-mix(in srgb, var(--wa) 48%, var(--border));
}
.ag .ag-btn--wa-outline:hover{
  background: var(--wa-soft);
  color: var(--wa-strong);
  border-color: var(--wa);
}
[data-theme="dark"] .ag .ag-btn--wa-outline{
  color: #46c486;
  border-color: #2c6d4e;
}
[data-theme="dark"] .ag .ag-btn--wa-outline:hover{
  background: var(--wa-soft);
  color: #63d79e;
}
.ag .ag-btn--block{
  display: flex;
  width: 100%;
}
.ag .ag-btn[aria-disabled="true"],
.ag .ag-btn:disabled{
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.ag .ag-theme-toggle .ag-icon-moon,
.ag .ag-theme-toggle .ag-icon-sun{
  display: none;
}
.ag [data-theme="light"] .ag-theme-toggle .ag-icon-moon,
[data-theme="dark"] .ag .ag-theme-toggle .ag-icon-sun{
  display: inline-flex;
}
.ag .ag-hero{
  padding-block: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--border);
}
.ag .ag-hero__inner{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(24px, 4.5vw, 52px);
}
.ag .ag-kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.ag .ag-kicker__rule{
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.ag .ag-hero__title{
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  font-weight: 800;
  line-height: 1.24;
  margin-bottom: 14px;
}
.ag .ag-hero__accent{
  color: var(--accent);
  display: block;
}
.ag .ag-hero__text{
  font-size: 16px;
  color: var(--text-muted);
  max-width: 54ch;
  margin-bottom: 22px;
}
.ag .ag-hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.ag .ag-hero__specs{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 16px 24px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.ag .ag-hero__spec{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ag .ag-hero__spec dt{
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.ag .ag-hero__spec dd{
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
}
.ag .ag-spotlight-card{
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.ag .ag-spotlight-card__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.ag .ag-spotlight-card__label{
  font-weight: 800;
  color: var(--text-muted);
}
.ag .ag-spotlight-card__cat{
  font-weight: 700;
  color: var(--accent);
}
.ag .ag-spotlight-card__media{
  aspect-ratio: 4 / 3;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.ag .ag-spotlight-card__media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.ag .ag-spotlight-card__body{
  padding: 16px;
}
.ag .ag-spotlight-card__title{
  font-size: 16px;
  margin-bottom: 10px;
}
.ag .ag-spotlight-card__row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ag .ag-spotlight-card__price{
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.ag .ag-spotlight-card__btns{
  display: flex;
  gap: 8px;
}
.ag .ag-spotlight-tabs{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.ag .ag-spotlight-tab{
  padding: 9px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--surface-2);
  border-inline-end: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}
.ag .ag-spotlight-tab:last-child{
  border-inline-end: 0;
}
.ag .ag-spotlight-tab:hover{
  color: var(--text);
}
.ag .ag-spotlight-tab.is-active{
  background: var(--surface);
  color: var(--accent);
}
.ag .ag-section-kicker{
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}
.ag .ag-section-title{
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 0;
}
.ag .ag-section-sub{
  max-width: 500px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}
.ag .ag-section-head--split{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.ag .ag-features{
  padding-block: clamp(28px, 4vw, 44px);
}
.ag .ag-features__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ag .ag-feature{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
}
.ag .ag-feature__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.ag .ag-feature__num{
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}
.ag .ag-feature__icon{
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ag .ag-feature__icon svg{
  width: 18px;
  height: 18px;
}
.ag .ag-feature h3{
  font-size: 16px;
  margin: 0;
}
.ag .ag-feature p{
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}
.ag .ag-categories-section{
  padding-block: clamp(24px, 3.5vw, 42px);
}
.ag .ag-categories-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.ag .ag-category-tile{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.ag .ag-category-tile:hover,
.ag .ag-category-tile.is-active{
  border-color: var(--accent);
  transform: translateY(-2px);
}
.ag .ag-category-tile.is-active{
  background: var(--accent-soft);
}
.ag .ag-category-tile__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
}
.ag .ag-category-tile.is-active .ag-category-tile__top,
.ag .ag-category-tile:hover .ag-category-tile__arrow{
  color: var(--accent);
}
.ag .ag-category-tile__name{
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}
.ag .ag-category-tile__meta{
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.ag .ag-products-section{
  padding-block: clamp(28px, 4.5vw, 56px);
}
.ag .ag-products-toolbar{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ag .ag-search-box{
  position: relative;
  flex: 1 1 280px;
  max-width: 440px;
  display: flex;
  align-items: center;
}
.ag .ag-search-box svg{
  position: absolute;
  inset-inline-start: 14px;
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  pointer-events: none;
}
.ag .ag-search-box input{
  width: 100%;
  height: 42px;
  padding: 8px 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.ag .ag-search-box input:focus{
  border-color: var(--accent);
}
.ag .ag-search-box input::placeholder{
  color: var(--text-muted);
}
.ag .ag-search-clear{
  position: absolute;
  inset-inline-end: 8px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
}
.ag .ag-search-clear:hover{
  background: var(--surface-2);
  color: var(--text);
}
.ag .ag-toolbar-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ag .ag-sort-box select{
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.ag .ag-filter-count,
.ag .ag-price-range-tag{
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.ag .ag-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.ag .ag-filters button{
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.ag .ag-filters button:hover{
  border-color: var(--border-strong);
  color: var(--text);
}
.ag .ag-filters .is-active{
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
[data-theme="dark"] .ag .ag-filters .is-active{
  background: var(--accent);
  border-color: var(--accent);
  color: #121416;
}
.ag .ag-product-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--gap);
  align-items: stretch;
}
.ag .ag-product-card{
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.ag .ag-product-card:hover{
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.ag .ag-product-card__media{
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.ag .ag-product-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 240ms ease;
}
.ag .ag-product-card:hover .ag-product-card__media img{
  transform: scale(1.02);
}
.ag .ag-product-card__body{
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 14px 16px 16px;
  gap: 8px;
}
.ag .ag-product-card__meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ag .ag-product-card__cat{
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
}
.ag .ag-product-card__quick{
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  padding: 2px 4px;
  border-radius: 4px;
}
.ag .ag-product-card__quick:hover{
  text-decoration: underline;
}
.ag .ag-product-card__title{
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}
.ag .ag-product-card__title a{
  color: var(--text);
}
.ag .ag-product-card__title a:hover{
  color: var(--accent);
}
.ag .ag-product-card__bottom{
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ag .ag-product-card__price{
  margin: 0;
  font-size: 17.5px;
  font-weight: 800;
  color: var(--text);
}
.ag .ag-product-card__price--special{
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13.5px;
}
.ag .ag-product-card__actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
.ag .ag-product-card__actions .ag-btn{
  width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
}
.ag .ag-filter-empty{
  margin-top: 20px;
  padding: 34px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  text-align: center;
}
.ag .ag-filter-empty__title{
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 6px;
}
.ag .ag-filter-empty__text{
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.ag .ag-filter-empty__actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.ag .ag-order-concierge{
  padding-block: clamp(28px, 4vw, 52px);
}
.ag .ag-concierge-panel{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  padding: clamp(22px, 3.5vw, 38px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.ag .ag-concierge-panel__info h2{
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin-top: 6px;
}
.ag .ag-concierge-panel__lead{
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.ag .ag-concierge-steps{
  display: grid;
  gap: 10px;
}
.ag .ag-concierge-steps li{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 700;
}
.ag .ag-concierge-steps__num{
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  min-width: 24px;
}
.ag .ag-inquiry-form{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.ag .ag-inquiry-form__title{
  font-size: 16px;
  margin-bottom: 2px;
}
.ag .ag-inquiry-field{
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ag .ag-inquiry-field label{
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.ag .ag-inquiry-field select,
.ag .ag-inquiry-field textarea{
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 14px;
  outline: none;
}
.ag .ag-inquiry-field select:focus,
.ag .ag-inquiry-field textarea:focus{
  border-color: var(--accent);
}
.ag .ag-footer__grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding-bottom: 32px;
}
.ag .ag-footer__brand{
  max-width: 320px;
}
.ag .ag-footer__brand p{
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.ag .ag-footer__contact-actions{
  margin-top: 14px;
}
.ag .ag-footer__col h3{
  font-size: 14.5px;
  margin-bottom: 12px;
}
.ag .ag-footer__col a,
.ag .ag-footer__col li{
  display: block;
  padding-block: 4px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.ag .ag-footer__col a:hover{
  color: var(--accent);
}
.ag .ag-footer__wa-link{
  margin-top: 10px;
  font-weight: 700;
  color: var(--accent) !important;
}
.ag .ag-payments{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ag .ag-payments span{
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.ag .ag-footer__bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}
.ag .ag-footer__bottom p{
  margin: 0;
}
.ag .ag-qty-control{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.ag .ag-qty-btn{
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ag .ag-qty-btn:hover{
  border-color: var(--accent);
  color: var(--accent);
}
.ag .ag-qty-value{
  min-width: 20px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
}
.ag .ag-remove-item{
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.ag .ag-remove-item:hover{
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}
@media (min-width: 1366px){
.ag{
    --container: 1240px;
  }
.ag .ag-product-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1100px){
.ag .ag-categories-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
.ag .ag-footer__grid{
    grid-template-columns: 1.4fr 1fr 1fr;
  }
.ag .ag-footer__help{
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px){
.ag .ag-hero__inner,
.ag .ag-concierge-panel{
    grid-template-columns: 1fr;
  }
.ag .ag-section-head--split{
    flex-direction: column;
    align-items: flex-start;
  }
.ag .ag-features__grid{
    grid-template-columns: 1fr;
  }
.ag .ag-footer__grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px){
.ag .ag-container{
    padding-inline: 16px;
  }
.ag .ag-header-cta{
    display: none;
  }
.ag .ag-hero{
    padding-block: 24px;
  }
.ag .ag-hero__title{
    font-size: 1.75rem;
  }
.ag .ag-hero__specs{
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
.ag .ag-hero__spec:last-child{
    grid-column: 1 / -1;
  }
.ag .ag-categories-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
.ag .ag-category-tile{
    padding: 12px;
  }
.ag .ag-category-tile__name{
    font-size: 13.5px;
  }
.ag .ag-toolbar-meta{
    width: 100%;
    justify-content: space-between;
  }
.ag .ag-product-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
.ag .ag-product-card__body{
    padding: 11px;
    gap: 6px;
  }
.ag .ag-product-card__meta{
    flex-wrap: wrap;
    gap: 4px;
  }
.ag .ag-product-card__cat{
    font-size: 10.5px;
  }
.ag .ag-product-card__title{
    font-size: 13px;
  }
.ag .ag-product-card__price{
    font-size: 15px;
  }
.ag .ag-product-card__actions .ag-btn{
    padding: 8px 6px;
    font-size: 12px;
    white-space: normal;
    text-align: center;
  }
.ag .ag-footer__grid{
    grid-template-columns: 1fr;
    gap: 22px;
  }
.ag .ag-footer__bottom{
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 360px){
.ag .ag-product-grid{
    gap: 8px;
  }
.ag .ag-product-card__body{
    padding: 9px;
  }
}
.ag .ag-product-card__title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* Category chips on phones: "الكل" + one "الأقسام" dropdown button; the rest open below. */
.ag .ag-cats-toggle{display:none}
@media (max-width: 600px){
.ag .ag-filters{position:relative}
.ag .ag-filters .ag-cats-toggle{display:inline-flex;align-items:center;gap:6px}
.ag .ag-filters .ag-cats-toggle.has-value{background:var(--accent-soft,#f3e6e0);border-color:var(--accent);color:var(--accent)}
.ag .ag-filters button[data-filter="all"]{display:none}
.ag .ag-filters button[data-filter]:not([data-filter="all"]):not(.is-pin){display:none}
.ag .ag-filters{flex-wrap:wrap;gap:6px}
.ag .ag-filters button.is-pin{display:block;order:-1;flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;padding:9px 6px;text-align:center}
.ag .ag-filters button.is-pin .cnt{display:none}
.ag .ag-filters .ag-cats-toggle{flex:0 0 auto;font-size:12px;padding:9px 8px;white-space:nowrap;gap:3px}
@media (max-width: 380px){
.ag .ag-filters{gap:4px}
.ag .ag-filters button.is-pin{font-size:11px;padding:9px 3px}
.ag .ag-filters .ag-cats-toggle{font-size:11px;padding:9px 6px;gap:2px}
}
.ag .ag-filters.is-cats-open button[data-filter]:not([data-filter="all"]):not(.is-pin){display:block;flex:1 0 100%;text-align:start;order:2}
}
