:root {
  --cream: #fbf8f3;
  --dark: #3e2723;
  --amber: #d4a574;
  --gold: #c9a961;
  --green: #2d5016;
  --terracotta: #b85c38;
  --white: #fff;
  --muted: rgba(62, 39, 35, 0.65);
  --border: rgba(62, 39, 35, 0.12);
  --shadow: 0 12px 40px rgba(62, 39, 35, 0.08);
  --radius: 14px;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Android / older WebViews: clip is often ignored; hidden prevents horizontal rubber-banding */
html {
  overflow-x: hidden;
  max-width: 100%;
}

.store-body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--dark);
  color: var(--cream);
  padding: 0.5rem 1rem;
  z-index: 10000;
}
.skip-link:focus {
  left: 0.5rem;
}

.store-announcement {
  background: var(--dark);
  color: var(--cream);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
.store-announcement__link {
  color: var(--amber);
  font-weight: 600;
  text-decoration: none;
}
.store-announcement__link:hover {
  text-decoration: underline;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
.store-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.store-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.store-nav-toggle {
  margin-left: auto;
  display: none;
  font: inherit;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}
.store-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.store-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.store-nav__list a,
.store-nav__parent {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}
.store-nav__list a:hover,
.store-nav__parent:hover {
  color: var(--terracotta);
}
.store-nav__dropdown {
  position: relative;
}
.store-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.store-nav__dropdown:hover .store-nav__sub,
.store-nav__dropdown:focus-within .store-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.store-nav__sub a {
  display: block;
  padding: 0.55rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.store-nav__sub li:last-child a {
  border-bottom: 0;
}
.store-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.store-header__hello {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-header__link {
  color: var(--dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.store-header__link--accent {
  color: var(--terracotta);
}
.store-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.85rem;
}
.store-cart-link__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.7rem;
  line-height: 1.25rem;
  text-align: center;
}

.store-main {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 900px) {
  .store-nav-toggle {
    display: inline-block;
  }
  .store-nav {
    width: 100%;
    order: 10;
    display: none;
  }
  .store-nav.is-open {
    display: block;
  }
  .store-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
  }
  .store-nav__list li {
    width: 100%;
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
  }
  .store-nav__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding-left: 0.75rem;
  }
}

/* Home: hero â€” width bound to viewport; flex + min-width:0 fixes Android Chrome intrinsic-width overflow */
.store-home-banner {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: var(--cream);
  line-height: 0;
  overflow: hidden;
}
.store-home-banner__link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-decoration: none;
}
.store-home-banner__link:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}
.store-home-banner__img {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  flex: 0 0 auto;
  align-self: stretch;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.store-btn:hover {
  transform: translateY(-1px);
}
.store-btn--primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(184, 92, 56, 0.35);
}
.store-btn--secondary {
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--border);
}
.store-hero__visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: #f3ebe4;
}
.store-hero__visual-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.store-hero__visual-link:hover .store-hero__visual-img,
.store-hero__visual-link:focus-visible .store-hero__visual-img {
  transform: scale(1.03);
}
.store-hero__visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.store-hero__visual-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(145deg, var(--amber), var(--gold));
  opacity: 0.85;
}

/* Sections */
.store-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}
.store-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.store-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0;
  font-weight: 700;
}
.store-section__link {
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.store-section__link:hover {
  text-decoration: underline;
}

/* Mobile: two columns (Flipkart / Amazon style); wider screens: more columns */
.store-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (min-width: 480px) {
  .store-product-grid {
    gap: 0.85rem;
  }
}
@media (min-width: 640px) {
  .store-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
  }
}
@media (min-width: 900px) {
  .store-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
  }
}
.store-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(62, 39, 35, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.store-card__media {
  aspect-ratio: 1;
  background: #f3ebe4;
  overflow: hidden;
}
.store-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.store-card__body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}
@media (max-width: 639px) {
  .store-product-grid .store-card__body {
    padding: 0.55rem 0.5rem 0.7rem;
    gap: 0.25rem;
  }
  .store-product-grid .store-card__title {
    font-size: 0.95rem;
    line-height: 1.2;
  }
  .store-product-grid .store-card__meta {
    font-size: 0.72rem;
    padding-top: 0.35rem;
  }
  .store-product-grid .store-card__badge {
    font-size: 0.6rem;
  }
  .store-product-grid .store-price--compare {
    display: block;
    margin-left: 0;
    margin-top: 0.15rem;
  }
}
.store-card__badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  font-weight: 700;
}
.store-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}
.store-card__title a {
  color: inherit;
  text-decoration: none;
}
.store-card__title a:hover {
  color: var(--terracotta);
}
.store-card__meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 0.5rem;
}
.store-price {
  font-weight: 700;
  color: var(--dark);
}
.store-price--compare {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 500;
  margin-left: 0.35rem;
  font-size: 0.9em;
}

.store-banner {
  margin: 2rem 1.25rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  background: var(--green);
  color: var(--cream);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  display: grid;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 768px) {
  .store-banner {
    grid-template-columns: 1fr auto;
    padding: 2.25rem 2.5rem;
  }
}
.store-banner h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.35rem;
}
.store-banner p {
  margin: 0;
  opacity: 0.9;
}

/* Product detail */
.store-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.store-breadcrumb a {
  color: var(--terracotta);
  text-decoration: none;
}
.store-pdp {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .store-pdp {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.store-pdp__gallery {
  display: grid;
  gap: 0.75rem;
}
.store-pdp__main-img {
  width: 100%;
  border-radius: var(--radius);
  background: #f3ebe4;
  aspect-ratio: 1;
  object-fit: cover;
}
.store-pdp__thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.store-pdp__thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
}
.store-pdp__thumbs img.is-active {
  border-color: var(--terracotta);
}
.store-pdp__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 0.5rem;
}
.store-pdp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.store-pdp__qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.store-pdp__qty input {
  width: 4rem;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font: inherit;
}

.store-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.store-alert--ok {
  background: rgba(45, 80, 22, 0.12);
  color: var(--green);
}
.store-alert--err {
  background: rgba(184, 92, 56, 0.15);
  color: var(--terracotta);
}

/* Catalog toolbar */
.store-toolbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.store-toolbar form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.store-toolbar input[type="search"],
.store-toolbar select {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font: inherit;
  min-width: 200px;
}
.store-toolbar button {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  background: var(--dark);
  color: var(--cream);
  font-weight: 600;
  cursor: pointer;
  font: inherit;
}

/* Cart */
.store-cart {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
.store-cart table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.store-cart th,
.store-cart td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.store-cart tr:last-child td {
  border-bottom: 0;
}
.store-cart__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}
.store-cart__empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.store-footer {
  background: var(--dark);
  color: rgba(251, 248, 243, 0.88);
  padding: 2.5rem 1.25rem 1.5rem;
  margin-top: 2rem;
}
.store-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.store-footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.store-footer__heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
  color: var(--amber);
}
.store-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.store-footer__links a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  padding: 0.2rem 0;
}
.store-footer__links a:hover {
  color: var(--amber);
}
.store-footer__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.store-footer__text a {
  color: var(--amber);
}
.store-footer__copy {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(251, 248, 255, 0.55);
  text-align: center;
}

.store-form {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
.store-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}
.store-form input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font: inherit;
  margin-bottom: 1rem;
}
.store-form .store-btn {
  width: 100%;
  margin-top: 0.5rem;
}

.store-checkout__grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 960px) {
  .store-checkout__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.store-checkout__subhead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1rem;
  font-weight: 700;
}
.store-checkout__form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0.75rem 0 0.35rem;
}
.store-checkout__form input,
.store-checkout__form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font: inherit;
}
.store-checkout__form button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.store-req {
  color: var(--terracotta);
}
.store-orders-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.store-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.store-orders-table th,
.store-orders-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.store-orders-table th {
  background: rgba(62, 39, 35, 0.04);
  font-weight: 600;
}
.store-orders-table tr:last-child td {
  border-bottom: 0;
}
.store-orders-table__items {
  max-width: 220px;
  word-break: break-word;
  color: var(--muted);
  font-size: 0.85rem;
}

.store-orders-table__muted {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.store-orders-page .store-orders-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.store-orders-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.store-orders-tab:hover {
  border-color: var(--amber);
  color: var(--terracotta);
}
.store-orders-tab.is-active {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
}

.store-status-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.store-status-pill--pending {
  background: rgba(184, 92, 56, 0.15);
  color: var(--terracotta);
}
.store-status-pill--progress {
  background: rgba(45, 80, 22, 0.14);
  color: var(--green);
}
.store-status-pill--muted {
  background: rgba(62, 39, 35, 0.08);
  color: var(--muted);
}
