/* FETYCI SHOP — balanced light theme v5.7 */
:root {
  --f-bg: #f2f4f2;
  --f-bg-alt: #e9eeeb;
  --f-surface: rgba(255,255,255,.78);
  --f-surface-strong: #fbfcfb;
  --f-surface-soft: rgba(246,248,247,.72);
  --f-text: #1f2724;
  --f-muted: #69736f;
  --f-accent: #ad8958;
  --f-accent-strong: #8e6d43;
  --f-accent-soft: rgba(173,137,88,.13);
  --f-sage: #73877f;
  --f-sage-soft: rgba(115,135,127,.13);
  --f-danger: #a65353;
  --f-success: #4f7b66;
  --f-border: rgba(59,72,67,.12);
  --f-border-strong: rgba(59,72,67,.20);
  --f-shadow-sm: 0 8px 24px rgba(45,58,53,.07);
  --f-shadow: 0 18px 50px rgba(45,58,53,.10);
  --f-shadow-lg: 0 28px 80px rgba(45,58,53,.14);
  --f-radius-xs: 10px;
  --f-radius-sm: 14px;
  --f-radius: 18px;
  --f-radius-lg: 24px;
  --f-radius-xl: 32px;
  --f-blur: blur(20px) saturate(130%);
}

html {
  color-scheme: light;
  background: var(--f-bg);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
body.admin-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--f-text) !important;
  background:
    radial-gradient(circle at 7% 0%, rgba(177,196,187,.23), transparent 30rem),
    radial-gradient(circle at 96% 8%, rgba(222,205,177,.25), transparent 32rem),
    linear-gradient(180deg, #f6f7f5 0%, #edf1ee 48%, #f4f5f3 100%) !important;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(rgba(70,84,78,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,84,78,.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

::selection { background: rgba(173,137,88,.24); color: var(--f-text); }

/* Unified typography */
body, button, input, textarea, select { color: var(--f-text); }
p, small, .muted, .product-description, .order-meta { color: var(--f-muted) !important; }
h1, h2, h3, h4 { color: var(--f-text); }

/* Header and navigation */
.header,
.l-header {
  background: rgba(246,248,247,.78) !important;
  border-bottom: 1px solid rgba(59,72,67,.10) !important;
  box-shadow: 0 8px 26px rgba(45,58,53,.05);
  backdrop-filter: var(--f-blur);
  -webkit-backdrop-filter: var(--f-blur);
}

.nav { min-height: 76px; }
.brand img,
.admin-login-card img {
  border-radius: 14px;
  border: 1px solid rgba(173,137,88,.24) !important;
  box-shadow: var(--f-shadow-sm);
}

.nav-links a,
.footer a { transition: color .18s ease, opacity .18s ease; }
.nav-links a:hover { color: var(--f-accent-strong); }

/* Universal glass surfaces */
.hero-card,
.product-card,
.collection-card,
.about-logo,
.about-contacts,
.newsletter-inner,
.modal-card,
.drawer,
.admin-card,
.admin-table-wrap,
.order-card,
.admin-login-card,
.filters,
.empty,
.settings-card,
.dashboard-card,
.profile-card,
.account-card,
.promo-card,
.bundle-card,
.review-card,
.stock-card,
.site-editor-card,
.banner-editor,
.glass-panel {
  border: 1px solid rgba(255,255,255,.76) !important;
  border-radius: var(--f-radius-lg) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(244,247,245,.70)) !important;
  box-shadow: var(--f-shadow) !important;
  backdrop-filter: var(--f-blur);
  -webkit-backdrop-filter: var(--f-blur);
}

.hero-card,
.product-card,
.collection-card,
.admin-card,
.order-card,
.account-card {
  outline: 1px solid rgba(59,72,67,.055);
  outline-offset: -1px;
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 17%, rgba(173,137,88,.15), transparent 31%),
    radial-gradient(circle at 15% 42%, rgba(115,135,127,.13), transparent 29%) !important;
}
.hero-card { overflow: hidden; }
.gold-frame {
  border-color: rgba(173,137,88,.55) !important;
  border-radius: 22px;
}
.gold-frame::before {
  border-color: rgba(173,137,88,.24) !important;
  border-radius: 16px;
}
.hero h1 em, .eyebrow, .section-heading > span, .section-heading div > span {
  color: var(--f-accent-strong) !important;
}

/* Buttons */
.button,
.glass-button,
.cart-button,
.auth-button,
.add-button,
.admin-nav,
.table-actions button,
.filters button,
.collection-card,
button[type="submit"],
button[type="button"],
a.button {
  min-height: 46px;
  border-radius: var(--f-radius-sm) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.button,
.glass-button,
.cart-button,
.auth-button,
.filters button,
.table-actions button,
.button-outline,
.glass-icon-button {
  border: 1px solid rgba(59,72,67,.14) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(241,245,242,.72)) !important;
  color: var(--f-text) !important;
  box-shadow: 0 9px 22px rgba(45,58,53,.07), inset 0 1px 0 rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.button-dark,
.add-button,
button.primary,
button[type="submit"].button-dark {
  border-color: rgba(31,39,36,.10) !important;
  background: linear-gradient(135deg, #34413c, #25302c) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(37,48,44,.18), inset 0 1px 0 rgba(255,255,255,.12);
}

.button-light { background: rgba(255,255,255,.86) !important; color: var(--f-text) !important; }
.button:hover,
.glass-button:hover,
.cart-button:hover,
.auth-button:hover,
.add-button:hover,
.filters button:hover,
.table-actions button:hover,
.glass-icon-button:hover {
  transform: translateY(-2px);
  border-color: rgba(173,137,88,.32) !important;
  box-shadow: 0 14px 32px rgba(45,58,53,.11), inset 0 1px 0 rgba(255,255,255,.9);
}
.button-dark:hover,
.add-button:hover,
button.primary:hover { background: linear-gradient(135deg, #405149, #2c3833) !important; }
button:active, .button:active { transform: translateY(0) scale(.985); }
button:disabled, .button:disabled { opacity: .48; cursor: not-allowed; transform: none !important; }

/* Inputs, selects, quantity and stock fields */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select,
.input,
.select,
.quantity-input,
.qty-input,
.stock-input,
.price-input,
.search-input {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(59,72,67,.14) !important;
  border-radius: var(--f-radius-sm) !important;
  background: rgba(255,255,255,.76) !important;
  color: var(--f-text) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 7px 18px rgba(45,58,53,.045);
  outline: none !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

textarea { min-height: 112px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #929a96 !important; opacity: 1; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(173,137,88,.58) !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 0 0 4px rgba(173,137,88,.10), 0 10px 26px rgba(45,58,53,.07) !important;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #68736f 50%),
    linear-gradient(135deg, #68736f 50%, transparent 50%),
    linear-gradient(to right, rgba(59,72,67,.09), rgba(59,72,67,.09)) !important;
  background-position:
    calc(100% - 20px) 51%,
    calc(100% - 15px) 51%,
    calc(100% - 43px) 50% !important;
  background-size: 5px 5px, 5px 5px, 1px 24px !important;
  background-repeat: no-repeat !important;
}

input[type="number"] { font-variant-numeric: tabular-nums; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { opacity: .55; }

.product-options,
.quantity-control,
.qty-control,
.cart-quantity,
.stock-control,
.counter-control {
  gap: 10px !important;
}

.quantity-control,
.qty-control,
.cart-quantity,
.stock-control,
.counter-control {
  display: inline-flex;
  align-items: center;
  padding: 5px;
  border: 1px solid var(--f-border);
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}

.quantity-control button,
.qty-control button,
.cart-quantity button,
.counter-control button {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border: 0 !important;
  border-radius: 12px !important;
  background: rgba(115,135,127,.10) !important;
  color: var(--f-text) !important;
  box-shadow: none !important;
}

.quantity-control input,
.qty-control input,
.cart-quantity input,
.counter-control input {
  width: 58px !important;
  min-height: 38px !important;
  padding: 0 6px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
  font-weight: 600;
}

/* Checkboxes / radios */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin: 0;
  display: inline-grid;
  place-items: center;
  border: 1.5px solid rgba(115,135,127,.38) !important;
  background: rgba(255,255,255,.78) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 16px rgba(45,58,53,.06);
  cursor: pointer;
  transition: .18s ease;
}
input[type="checkbox"] { border-radius: 8px !important; }
input[type="radio"] { border-radius: 50% !important; }
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  border-color: var(--f-sage) !important;
  background-color: var(--f-sage) !important;
}
input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.3 11.7 2.8 8.2l1.4-1.4 2.1 2.1 5.5-5.5 1.4 1.4z'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 15px !important;
}
input[type="radio"]:checked {
  box-shadow: inset 0 0 0 6px var(--f-sage), inset 0 0 0 9px #fff !important;
}
label:has(input[type="checkbox"]),
label:has(input[type="radio"]),
.check-row label,
.checkbox-row label,
.switch-row label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 11px !important;
}

/* Product cards */
.product-card { overflow: hidden; }
.product-image-wrap {
  background: linear-gradient(145deg, #edf1ee, #e5ebe7) !important;
  border-radius: 22px 22px 0 0;
}
.product-info { padding: 22px !important; }
.product-category { color: var(--f-accent-strong) !important; }
.badge {
  border-radius: 999px !important;
  background: rgba(255,255,255,.82) !important;
  color: var(--f-accent-strong) !important;
  border: 1px solid rgba(173,137,88,.22);
  box-shadow: var(--f-shadow-sm);
  backdrop-filter: blur(12px);
}
.product-price { color: var(--f-text) !important; }
.product-old-price { color: #8d9591 !important; }

/* Collection cards */
.collection-card {
  border: 1px solid rgba(59,72,67,.10) !important;
  color: var(--f-text) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(230,237,233,.76)) !important;
}
.collection-card.light { background: linear-gradient(145deg, #f7f8f6, #e8eeea) !important; }
.collection-card.gold { background: linear-gradient(145deg, #eee4d5, #e2d2ba) !important; color: #2b312f !important; }
.collection-card::before { color: rgba(67,81,75,.055) !important; }

/* Modals, drawers */
.overlay { background: rgba(31,39,36,.28) !important; backdrop-filter: blur(5px); }
.modal-card, .drawer { border-radius: 28px !important; }
.drawer { margin: 10px; height: calc(100% - 20px); }
.modal-close, .drawer-head button {
  border-radius: 12px !important;
  color: var(--f-muted) !important;
}

/* Footer */
.footer {
  background: linear-gradient(145deg, #2c3733, #202925) !important;
  color: #fff !important;
}
.footer p, .footer span, .footer a { color: rgba(255,255,255,.68) !important; }

/* Admin */
.admin-page { background: transparent !important; }
.admin-sidebar {
  background: linear-gradient(180deg, #33413c 0%, #26312d 100%) !important;
  box-shadow: 12px 0 36px rgba(37,48,44,.13);
}
.admin-nav { color: rgba(255,255,255,.72) !important; }
.admin-nav.active, .admin-nav:hover {
  background: rgba(255,255,255,.11) !important;
  color: #fff !important;
}
.admin-main { background: transparent !important; }
.admin-table { border-collapse: separate !important; border-spacing: 0; }
.admin-table th {
  background: rgba(115,135,127,.08);
  color: #59645f;
}
.admin-table th:first-child { border-radius: 16px 0 0 0; }
.admin-table th:last-child { border-radius: 0 16px 0 0; }
.admin-table td, .admin-table th { border-color: rgba(59,72,67,.09) !important; }
.table-actions button { min-height: 36px; }

/* Announcement banner */
.announcement-banner,
.site-announcement,
.top-banner {
  border: 1px solid rgba(255,255,255,.52) !important;
  background: linear-gradient(110deg, rgba(229,236,232,.96), rgba(238,228,213,.94)) !important;
  color: var(--f-text) !important;
  box-shadow: var(--f-shadow-sm) !important;
  backdrop-filter: var(--f-blur);
  -webkit-backdrop-filter: var(--f-blur);
}

/* Better scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(115,135,127,.42) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(115,135,127,.34); border: 3px solid transparent; background-clip: padding-box; border-radius: 999px; }

/* Tablets / small laptops */
@media (max-width: 1100px) {
  .container { width: min(100% - 32px, 1180px) !important; }
  .hero-grid { gap: 42px !important; }
  .product-grid { gap: 18px !important; }
  .admin-main { padding: 28px 22px !important; }
}

@media (max-width: 900px) {
  body { background-attachment: scroll; }
  .header { padding-top: env(safe-area-inset-top); }
  .nav { min-height: 68px; gap: 12px !important; }
  .nav-links {
    top: calc(76px + env(safe-area-inset-top)) !important;
    left: 14px !important;
    right: 14px !important;
    border: 1px solid rgba(255,255,255,.76) !important;
    border-radius: 22px !important;
    background: rgba(249,251,250,.90) !important;
    box-shadow: var(--f-shadow-lg) !important;
    backdrop-filter: var(--f-blur);
    -webkit-backdrop-filter: var(--f-blur);
  }
  .hero-grid, .about-grid { gap: 30px !important; }
  .hero-card { min-height: 400px !important; }
  .collection-grid, .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .admin-sidebar { box-shadow: 0 10px 30px rgba(37,48,44,.18); }
  .drawer {
    width: min(430px, calc(100% - 14px)) !important;
    margin: 7px;
    height: calc(100% - 14px);
    border-radius: 24px !important;
  }
}

/* Phones: Redmi Note, iPhone, Realme, Oppo, Infinix, Tecno, etc. */
@media (max-width: 680px) {
  :root {
    --f-radius-sm: 13px;
    --f-radius: 16px;
    --f-radius-lg: 20px;
    --f-radius-xl: 26px;
  }
  body { padding-bottom: env(safe-area-inset-bottom); }
  .container { width: calc(100% - 24px) !important; }
  .section { padding: 62px 0 !important; }
  .nav { min-height: 64px; }
  .brand img { width: 42px !important; height: 42px !important; }
  .hero-grid { padding: 42px 0 !important; }
  .hero h1 { font-size: clamp(44px, 13vw, 62px) !important; line-height: .96 !important; }
  .hero p { font-size: 15px !important; line-height: 1.65 !important; }
  .hero-card { min-height: 310px !important; }
  .hero-actions { gap: 12px !important; }
  .hero-actions .button, .hero-actions a { width: 100%; }
  .collection-grid, .product-grid, .footer-grid, .form-grid, .upload-row, .social-links {
    grid-template-columns: 1fr !important;
  }
  .collection-card { min-height: 190px !important; padding: 24px !important; }
  .collection-card strong { font-size: 38px !important; }
  .section-heading h2, .about h2, .newsletter h2 { font-size: clamp(38px, 11vw, 50px) !important; }
  .section-heading.inline { gap: 18px !important; }
  .filters { width: 100%; padding: 8px; overflow-x: auto; flex-wrap: nowrap !important; border-radius: 18px !important; }
  .filters button { white-space: nowrap; flex: 0 0 auto; }
  .product-info { padding: 18px !important; }
  .product-title { font-size: 25px !important; }
  .product-options { grid-template-columns: 1fr !important; }
  .product-bottom { align-items: stretch !important; flex-direction: column !important; }
  .product-bottom .add-button { width: 100%; }
  input:not([type="checkbox"]):not([type="radio"]), textarea, select { font-size: 16px !important; }
  .modal { padding: 10px !important; align-items: end !important; }
  .modal-card {
    width: 100% !important;
    max-height: 92dvh !important;
    padding: 24px 16px calc(20px + env(safe-area-inset-bottom)) !important;
    border-radius: 26px 26px 0 0 !important;
  }
  .modal-card h2 { font-size: 38px !important; padding-right: 34px; }
  .drawer { bottom: env(safe-area-inset-bottom); }
  .drawer-head, .drawer-body, .drawer-footer { padding-left: 16px !important; padding-right: 16px !important; }
  .admin-main { padding: 20px 12px calc(24px + env(safe-area-inset-bottom)) !important; }
  .admin-title-row h1 { font-size: 40px !important; }
  .admin-card { padding: 17px !important; }
  .admin-table-wrap { border-radius: 18px !important; }
  .admin-table th, .admin-table td { padding: 12px !important; }
  .form-actions { flex-direction: column; }
  .form-actions .button { width: 100%; }
  button, .button, a.button { min-height: 46px; }
}

/* Very narrow phones: 320–390px */
@media (max-width: 390px) {
  .container { width: calc(100% - 18px) !important; }
  .brand span { display: none !important; }
  .header-actions { gap: 6px !important; margin-left: auto !important; }
  .glass-icon-button, .cart-button, .auth-button { min-width: 43px !important; padding-left: 11px !important; padding-right: 11px !important; }
  .hero h1 { font-size: 43px !important; }
  .hero-card { min-height: 270px !important; }
  .collection-card { min-height: 170px !important; }
  .product-title { font-size: 23px !important; }
  .cart-item { grid-template-columns: 62px 1fr auto !important; gap: 10px !important; }
  .cart-item img { width: 62px !important; height: 62px !important; border-radius: 12px; }
  .admin-sidebar { font-size: 13px; }
}

@media (max-width: 340px) {
  .container { width: calc(100% - 14px) !important; }
  .hero h1 { font-size: 39px !important; }
  .section { padding: 52px 0 !important; }
  .modal-card { padding-left: 13px !important; padding-right: 13px !important; }
}

/* Landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto !important; }
  .hero-grid { grid-template-columns: 1fr 1fr !important; padding: 28px 0 !important; }
  .hero-card { min-height: 260px !important; }
  .modal-card { max-height: 96dvh !important; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
