/* Variables */
:root {
    --primarysecondary-color: #2033545e;
    --primarysecondaryhover-color: #2033544a;
    --secondary-color: #6c757d;
    --primary-color: #5c687e;
    --primaryhover-color: #46546b;
    --primary-color-temp: #9fb5da;
    --primaryhover-color-temp: #90a9d5;
    --redbut-color: #eb8e97; 
    --redbuthover-color: #e87d87; /* dc3545 c82333; 28a745 218838 */
    --greenbut-color: #94e5a7; 
    --greenbuthover-color: #84e199;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --surface-1: #fff;
    --surface-2: #f6f7f9;
    --font-family: 'Segoe UI', sans-serif;
    --border-radius: 8px;
    --button-radius: 16px;
    --variation-bg-color: var(--surface-2);
    --campaign-bg-color: #fff3cd;
    --campaign-item-bg-color: #fff9e6;
}
  
  /* Reset some default styles */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
  }
  
  /* Container for page content */
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background-color: var(--surface-1);
    background-image: none;
    position: relative;
    z-index: 1;
  }

  .blob-container {
    position: relative;
    overflow: hidden;
  }
  
  /* Navigation Bar */
  .navbar {
    background-color: var(--primary-color);
    color: black;
    padding: 10px 0;
  }
  
  .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .navbar .logo {
    color: black;
    font-size: 1.6em;
    text-decoration: none;
    font-weight: bold;
  }
  
  .navbar .nav-links {
    list-style: none;
  }
  
  .navbar .nav-links li {
    display: inline;
    margin-left: 20px;
  }
  
  .navbar .nav-links a {
    color: black;
    text-decoration: none;
    font-size: 1em;
  }
  
  /* Flash messages */
  .flash-messages {
    padding: 10px;
    margin: 10px 0;
    background-color: var(--surface-1);
    color: var(--text-color);
    border-radius: var(--border-radius);
  }
  
  .flash-messages ul {
    list-style: none;
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: var(--button-radius);
    margin-top: 10px;
  }
  
  .btn:hover {
    background-color: var(--secondary-color);
  }
  
  .btn-small {
    padding: 4px 8px;
    font-size: 0.9em;
    margin-left: 10px;
  }
  
  /* Lists */
  .list-items {
    list-style: disc inside;
    margin: 10px 0;
  }
  
  h1, h2, h3, h4, h5 {
    margin-bottom: 10px;
  }
  
  /* Forms */
  form label {
    display: block;
    margin: 10px 0 5px;
    text-align: left;
  }
  
  form input, form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #bbb;
    border-radius: var(--border-radius);
    background: #f9f9f9;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  }
  
  /* Footer */
footer {
  text-align: center;
  padding: 20px;
  margin-top: 20px;
  background-color: var(--primary-color);
  color: white;
}

/* Tables */
.table-container {
  overflow-x: auto;
  padding: 10px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.9em;
}

.table-container table {
  background: transparent;
}

th,
td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  text-align: left;
  white-space: nowrap;
}

th {
  background: rgba(255, 255, 255, 0.3);
}

.cart-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.1);
}

.cart-table tr:hover {
  background: rgba(255, 255, 255, 0.2);
}
  
/* Storefront Styles */
.store-header {
  text-align: center;
  margin-bottom: 20px;
}
.store-header h1 a {
  color: inherit;
  text-decoration: none;
}
.store-cover {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

@media (min-width: 1024px) {
  .store-cover {
    /* width: auto;
    margin-left: 10%;
    margin-right: 10%; */
    padding: 0 20%;
  }
  /* .store-cover.vertical {
    clip-path: inset(20% 0 20% 0);
  } */
}
.store-logo {
  width: 80px;
  height: 80px;
  border-radius: 40px;
  margin-top: -40px;
  border: 2px solid #fff;
  background: #fff;
}
.store-logo.no-cover {
  margin-top: 20px;
}
.product-detail {
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.product-detail img.product-img {
  max-width: 400px;
  height: auto;
  margin-bottom: 10px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.social-links {
  text-align: center;
  margin: 10px 0;
}
.social-links a {
  margin: 0 8px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.8em;
}
.location {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding: 10px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.address-block {
  flex: 0 0 40%;
}
.map-block {
  flex: 0 0 58%;
}
.map-embed {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: var(--border-radius);
  margin-top: 8px;
}
.product-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-item {
  display: flex;
  flex-direction: row;
  padding: 10px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.product-img-wrap {
  flex: 0 0 40%;
  position: relative;
}
.product-info {
  flex: 1;
  padding-left: 10px;
}
.product-title {
  margin: 0 0 4px 0;
  font-size: 1.3em;
  color: var(--primary-color);
}
.product-info a {
  color: inherit;
  text-decoration: none;
}
.product-description {
  margin-bottom: 6px;
}
.product-img-wrap .product-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.thumb-row,
.thumb-gallery {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  justify-content: center;
  overflow-x: auto;
}
.product-thumb,
.gallery-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius);
  cursor: pointer;
  border: 1px solid #ddd;
}
.product-gallery {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.product-gallery .product-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.variation-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.variation-item {
  padding: 8px;
  border-radius: var(--border-radius);
  background: var(--variation-bg-color);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.variation-images {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}
.variation-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
}
.variation-item input[type="radio"] {
  margin-top: 4px;
}
.variation-price {
  font-size: 0.88rem;
  font-weight: 600;
  color: #136245;
  display: block;
}
.variation-price .original-price {
  text-decoration: line-through;
  margin-right: 4px;
  color: var(--secondary-color);
  font-weight: 400;
}
.variation-price .discounted {
  color: #136245;
}
.variation-price-delta {
  font-size: 0.82rem;
  font-weight: 500;
}
.variation-price-delta.positive {
  color: #b05e00;
}
.variation-price-delta.negative {
  color: #136245;
}
.variation-stock {
  font-size: 0.8rem;
  color: var(--secondary-color);
}
.nav-btn {
  background: none;
  border: none;
  font-size: 2em;
  cursor: pointer;
}

.back-link {
  margin-top: 10px;
  text-align: center;
  margin-bottom: 10px;
}
.back-link a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
}


/* Landing page */
.landing {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
}

.landing-wrap {
  max-width: 480px;
}

.landing-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
}

.landing-mascot {
  width: 120px;
  height: 120px;
  margin: 16px auto;
}

.landing-actions {
  margin-top: 16px;
}

/* GPT-5 style background */
.gpt5-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      45deg,
      rgba(var(--logo-color-1, 159, 181, 218), 0.03) 0%,
      rgba(var(--logo-color-2, 181, 159, 218), 0.03) var(--logo-stop-2, 33%)
    ),
    linear-gradient(
      135deg,
      rgba(var(--logo-color-2, 181, 159, 218), 0.03) 0%,
      rgba(var(--logo-color-3, 218, 181, 159), 0.03) var(--logo-stop-3, 33%)
    ),
    linear-gradient(
      225deg,
      rgba(var(--logo-color-3, 218, 181, 159), 0.03) 0%,
      rgba(var(--logo-color-1, 159, 181, 218), 0.03) var(--logo-stop-1, 34%)
    );
}

.gpt5-bg--container {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      45deg,
      rgba(var(--logo-color-1, 159, 181, 218), 0.03) 0%,
      rgba(var(--logo-color-2, 181, 159, 218), 0.03) var(--logo-stop-2, 33%)
    ),
    linear-gradient(
      135deg,
      rgba(var(--logo-color-2, 181, 159, 218), 0.03) 0%,
      rgba(var(--logo-color-3, 218, 181, 159), 0.03) var(--logo-stop-3, 33%)
    ),
    linear-gradient(
      225deg,
      rgba(var(--logo-color-3, 218, 181, 159), 0.03) 0%,
      rgba(var(--logo-color-1, 159, 181, 218), 0.03) var(--logo-stop-1, 34%)
    );
}

.glow-wrapper {
  position: absolute;
  inset: 0;
  filter: blur(12px);
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(var(--logo-color-1, 159, 181, 218), 0.06);
}

.blob1 {
  width: 40vw;
  height: 40vw;
}

.blob2 {
  width: 35vw;
  height: 35vw;
}

.blob3 {
  width: 30vw;
  height: 30vw;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: var(--button-radius);
  margin-right: 8px;
}

.btn-outline {
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 8px 16px;
  text-decoration: none;
  border-radius: var(--button-radius);
}

.auth-links {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
}

.glass-btn {
  padding: 6px 12px;
  border-radius: 50px;
  /* color: #fff; */
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(220, 220, 220, 0.2);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, box-shadow 0.3s;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}
a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
}
.auth-wrapper{max-width:400px;margin:0 auto;text-align:center;}
.auth-wrapper form{margin-top:10px;}
.error{color:red;margin-top:10px;}

.cart-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 101;
}
.cart-toggle span {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--redbut-color);
  color: #fff;
  border-radius: 50%;
  padding: 2px 5px;
  font-size: 0.8em;
}
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 100;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow: -2px 0 16px rgba(0, 0, 0, 0.2);
}
.cart-sidebar:not(.hidden) {
  transform: translateX(0);
}
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cart-close {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
}
.cart-sidebar ul {
  list-style: none;
  padding: 0;
}
.hidden {display:none;}

/* product detail additions */
.total-line {
  margin: 5px 0;
}

/* Review form */
.review-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  margin-top: 10px;
}
.review-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.review-form-field label {
  font-weight: 600;
  font-size: 0.95rem;
}
.star-picker {
  display: flex;
  gap: 4px;
  cursor: pointer;
}
.star-picker .star {
  font-size: 2rem;
  color: #ccc;
  transition: color 0.1s;
  line-height: 1;
  user-select: none;
  outline: none;
}
.star-picker .star.selected,
.star-picker .star.hover {
  color: #f5a623;
}
.star-picker .star:focus-visible {
  outline: 2px solid var(--primary-color);
  border-radius: 2px;
}
.review-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
}
.review-stars .star-display {
  font-size: 1.1rem;
  color: #ccc;
}
.review-stars .star-display.filled {
  color: #f5a623;
}
.review-comment {
  font-size: 0.92rem;
  color: var(--text-color);
}
.review-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #bbb;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-family: var(--font-family);
  resize: vertical;
  min-height: 80px;
}

.similar-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 180px));
  gap: 1rem;
  margin-top: 1rem;
}
.similar-item {
  display: block;
  padding: 10px;
  border-radius: var(--border-radius);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.similar-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.similar-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  margin: 0 auto 8px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.similar-name {
  font-size: 0.9rem;
  margin: 4px 0;
}
.similar-price {
  font-weight: bold;
  color: var(--primary-color);
}

.campaign-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--surface-1);
  padding: 6px;
  border-radius: var(--border-radius);
  margin-bottom: 6px;
}
.campaign-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--border-radius);
}
.campaign-info p {
  margin: 2px 0;
  font-size: 0.9em;
}
.cart-table input[type="number"],
.coupon-input {
  width: 60px;
  padding: 4px;
  border: 1px solid #bbb;
  border-radius: var(--border-radius);
  background: #f9f9f9;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.coupon-input {
  width: 100px;
  margin-left: 4px;
}
.cart-table button.remove-item,
.cart-sidebar button.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--redbut-color);
  margin-left: 4px;
  font-size: 1.3em;
}

.cart-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-right: 6px;
}

.cart-table td:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-sidebar li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.cart-sidebar-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cart-sidebar-info label {
  font-size: 0.8em;
}
.cart-sidebar input[type="number"],
.cart-sidebar-coupon {
  padding: 4px;
  border: 1px solid #bbb;
  border-radius: var(--border-radius);
  background: #f9f9f9;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.cart-sidebar input[type="number"] {
  width: 50px;
  margin-left: 4px;
}
.cart-sidebar-coupon {
  width: 100%;
  max-width: 120px;
  margin-left: 4px;
}
.cart-sidebar-price {
  margin-top: 4px;
}
.order-item-price {
  margin-left: 4px;
  color: var(--secondary-color);
  /* font-size: 0.9em; */
}
#final-total {
  font-weight: bold;
  margin-bottom: 10px;
}
.cart-sidebar-total,
#cart-sidebar .btn {
  text-align: center;
  display: block;
  margin: 10px auto;
  font-weight: bold;
}
.orders-section {
  margin-bottom: 20px;
}
.order-block {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.order-block ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.order-block li {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.discount-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}
.discount-list li {
  background: #f8f8f8;
  padding: 4px 8px;
  border-radius: var(--border-radius);
  margin-bottom: 4px;
}

.order-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-right: 6px;
}

.order-total {
  font-weight: bold;
  margin-top: 5px;
}

.out-of-stock {
  color: #c00;
  font-weight: bold;
}
.low-stock {
  color: #d97706;
  font-weight: bold;
}
.price { font-weight: bold; color: #006400; font-size: 1.1em; }
.stock { font-weight: bold; font-size: 1.1em; }

/* Category section styles */
.category-section {
  margin-bottom: 40px;
  padding: 10px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.category-title {
  font-size: 1.5em;
  color: var(--primary-color);
  text-align: center;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 10px;
  padding-bottom: 4px;
}
.subcategory-title {
  font-size: 1.2em;
  color: var(--secondary-color);
  margin: 20px 0 10px;
}
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.product-grid .product-item {
  flex: 0 0 calc(33.333% - 16px);
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.product-grid .product-info {
  padding: 10px 0;
}
@media (max-width: 768px) {
  .product-grid .product-item {
    flex: 0 0 calc(50% - 16px);
  }
}
@media (max-width: 480px) {
  .product-grid .product-item {
    flex: 0 0 100%;
  }
}

.no-products {
  text-align: center;
  font-size: 1.2em;
  margin: 40px 0;
  color: var(--secondary-color);
}

/* Campaign section styles */
.app-download-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface-1);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: var(--border-radius);
  padding: 12px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.app-download-label {
  font-weight: 600;
  font-size: 0.95em;
  white-space: nowrap;
}

.app-download-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.88em;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: opacity 0.15s;
}

.app-store-btn--android {
  background: var(--primary-color);
  color: #fff;
}

.app-store-btn--android:hover {
  background: var(--primaryhover-color);
}

.app-store-btn--ios {
  background: var(--secondary-color, var(--primary-color));
  color: #fff;
}

.app-store-btn--ios:hover {
  opacity: 0.88;
}

.app-store-btn--coming-soon {
  background: var(--surface-2, #f5f5f5);
  color: var(--text-muted, #888);
  border: 1px dashed var(--border-color, #ccc);
  cursor: default;
}

.app-store-btn--coming-soon em {
  font-style: normal;
  font-size: 0.85em;
  opacity: 0.75;
}

.app-store-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.campaigns-section {
  background-color: var(--surface-1);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 40px;
}

.campaigns-title {
  text-align: center;
  font-size: 1.6em;
  margin-bottom: 10px;
}

.campaign-block {
  text-align: center;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: var(--border-radius);
  background-color: var(--surface-1);
}

.campaign-image-frame {
  position: relative;
  width: min(100%, 920px);
  margin: 0 auto 8px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
}

.campaign-image-frame::before,
.campaign-image-frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(28px, 7vw, 96px);
  background-image: var(--campaign-bg);
  background-size: cover;
  background-position: center;
  filter: blur(14px) saturate(1.1);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.campaign-image-frame::before {
  left: 0;
  transform: scale(1.12);
  mask-image: linear-gradient(to right, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 30%, transparent 100%);
}

.campaign-image-frame::after {
  right: 0;
  transform: scale(1.12);
  mask-image: linear-gradient(to left, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 100%);
}

.campaign-image {
  width: min(100%, 920px);
  max-height: 320px;
  height: clamp(180px, 24vw, 320px);
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: transparent;
  border-radius: var(--border-radius);
  position: relative;
  z-index: 2;
}

.campaign-products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.campaign-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 120px;
}
.campaign-price {
  font-size: 0.9em;
}
.campaign-price .original-price {
  text-decoration: line-through;
  margin-right: 4px;
  color: var(--secondary-color);
}
.campaign-price .discounted {
  color: #006400;
}

.price .original-price {
  text-decoration: line-through;
  margin-right: 4px;
  color: var(--secondary-color);
}
.price .discounted {
  color: #006400;
}
.price .coupon-msg {
  margin-left: 4px;
  font-size: 0.9em;
  color: #6c9191;
}

.campaign-product-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 4px;
}


@media (max-width: 600px) {
  /* Reduce spacing on small screens */
  .auth-links { justify-content: center; }
  .container {
    margin: 5px auto;
    padding: 5px;
  }
  .navbar .nav-links li {
    margin-left: 5px;
  }
  .product-item {
    padding: 5px;
  }
  .product-info {
    padding-left: 3px;
  }
  .product-description {
    font-size: 0.9em;
  }
  .landing-logo,
  .landing-mascot {
    margin-bottom: 8px;
  }
  .landing-actions {
    margin-top: 8px;
  }
  .cart-toggle {
    right: 10px;
    bottom: 10px;
  }
  .cart-sidebar {
    padding: 10px;
  }
  .category-section {
    margin-bottom: 20px;
  }
  .subcategory-title {
    margin: 10px 0 5px;
  }
  .campaigns-section {
    padding: 5px;
  }
}

/* Progressive Image Loading Styles */
.img-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  min-height: 200px;
  display: block;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.img-loaded {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Skeleton loaders for product images */
.product-img-wrap {
  position: relative;
}

.product-img-wrap .skeleton,
.campaign-image.skeleton,
.campaign-product-img.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius);
}

.product-img.skeleton {
  min-height: 250px;
  width: 100%;
}

.campaign-image.skeleton {
  min-height: 200px;
  width: min(100%, 920px);
  margin: 0 auto;
}

.campaign-product-img.skeleton {
  min-height: 80px;
  width: 80px;
}

.product-thumb.skeleton {
  min-height: 60px;
  width: 60px;
}

.cart-img.skeleton {
  min-height: 60px;
  width: 60px;
  display: inline-block;
}

/* Hide images until loaded to prevent layout shift */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

img[data-loaded="true"] {
  opacity: 1;
}

/* Storefront premium refresh */
:root {
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --display-font: 'Outfit', sans-serif;
  --page-bg: radial-gradient(circle at 18% 18%, rgba(179, 210, 255, 0.3), transparent 34%),
             radial-gradient(circle at 82% 0%, rgba(165, 226, 204, 0.22), transparent 30%),
             linear-gradient(180deg, #f4f7fb 0%, #eef3fa 100%);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --border-soft: rgba(34, 53, 88, 0.14);
  --text-strong: #1d2a44;
  --text-muted: #5c6882;
  --brand-1: #1f5aa8;
  --brand-2: #1d8573;
  --shadow-soft: 0 14px 38px rgba(29, 42, 68, 0.1);
  --radius-control: 16px;
  --radius-card: 16px;
  --radius-panel: 16px;
  --radius-shell: 16px;
  --radius-pill: 16px;
}

body {
  background: var(--page-bg);
  color: var(--text-strong);
  font-family: var(--font-family);
}

.container {
  max-width: 1320px;
  margin: 16px auto 26px;
  padding: 16px;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.store-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.store-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-nav-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.65);
  transition: all 0.25s ease;
}

.quick-nav-link:hover {
  color: var(--text-strong);
  border-color: rgba(29, 90, 168, 0.35);
  transform: translateY(-1px);
}

.auth-links {
  margin-bottom: 0;
  gap: 8px;
}

.glass-btn {
  padding: 8px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-strong);
  font-weight: 600;
  box-shadow: none;
}

.glass-btn:hover {
  background: #fff;
  box-shadow: 0 8px 18px rgba(29, 42, 68, 0.12);
}

.store-header {
  margin-bottom: 20px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-soft);
  background: linear-gradient(
    130deg,
    rgba(var(--logo-color-1, 31, 90, 168), 0.26) 0%,
    rgba(255, 255, 255, 0.98) 56%,
    rgba(var(--logo-color-2, 29, 133, 115), 0.2) 100%
  );
}

.store-hero-media {
  min-height: 210px;
  position: relative;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  z-index: 1;
}

.store-cover {
  width: 100%;
  min-height: 210px;
  max-height: 300px;
  object-fit: cover;
  border-radius: 22px 22px 0 0;
  position: relative;
  z-index: 1;
}

.store-cover-overlay {
  position: absolute;
  inset: 0;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(
    180deg,
    rgba(var(--logo-color-1, 31, 90, 168), 0.1) 0%,
    rgba(255, 255, 255, 0.06) 48%,
    rgba(var(--logo-color-1, 31, 90, 168), 0.5) 100%
  );
}

.store-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 18px;
  margin-top: -48px;
  /* position: relative; */
  /* background: linear-gradient(
    145deg,
    rgba(var(--logo-color-1, 31, 90, 168), 0.16) 0%,
    rgba(255, 255, 255, 0.95) 52%,
    rgba(var(--logo-color-1, 31, 90, 168), 0.08) 100%
  ); */
}

.store-logo {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  margin-top: 0;
  box-shadow: 0 12px 24px rgba(16, 26, 45, 0.18);
  position: relative;
  z-index: 2;
}

.store-logo.no-cover {
  margin-top: 0;
}

.store-title-block h1 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
}

.store-title-block h1 a {
  color: var(--text-strong);
  text-decoration: none;
}

.store-subtitle {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-weight: 600;
}

.store-discover-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.discover-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(31, 90, 168, 0.24);
  background: linear-gradient(145deg, rgba(31, 90, 168, 0.1), rgba(29, 133, 115, 0.08));
  color: var(--text-strong);
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discover-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(29, 42, 68, 0.12);
}

.storefront-hero {
  margin-bottom: 14px;
}

.storefront-hero-content {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(29, 42, 68, 0.08);
  padding: 20px;
}

.storefront-eyebrow {
  color: var(--brand-1);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

.storefront-hero-content h2,
.list-hero h2 {
  font-family: var(--display-font);
  font-size: clamp(1.6rem, 3.1vw, 2.2rem);
  margin-bottom: 8px;
}

.list-hero p {
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn.hero-btn {
  margin-top: 0;
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid transparent;
  font-weight: 700;
  background: linear-gradient(120deg, var(--brand-1), #3477ca);
}

.btn.hero-btn.hero-btn-outline {
  background: #fff;
  color: var(--brand-1);
  border-color: rgba(31, 90, 168, 0.32);
}

.category-rail-wrap {
  margin-bottom: 14px;
}

.category-rail-head h3 {
  margin-bottom: 9px;
  font-size: 1rem;
}

.category-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.category-chip {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-soft);
  color: var(--text-strong);
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 90, 168, 0.34);
}

.campaigns-section,
.category-section,
.product-detail,
.order-block,
.location {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px rgba(29, 42, 68, 0.08);
}

.campaigns-section,
.category-section {
  padding: 12px;
}

.campaign-block {
  padding: 12px;
  border: 1px solid rgba(34, 53, 88, 0.08);
  border-radius: 14px;
  background: #fff;
}

.campaign-products {
  justify-content: center;
}

.campaign-product {
  width: 138px;
}

.campaign-product span {
  font-size: 0.85rem;
}

.category-head,
.subcategory-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.category-title {
  margin: 0;
  border: 0;
  padding: 0;
  text-align: left;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--text-strong);
}

.category-link,
.subcategory-link {
  color: var(--brand-1);
  font-size: 0.9rem;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.product-grid .product-item {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(34, 53, 88, 0.1);
  background: linear-gradient(180deg, #fff, #f9fbff);
  box-shadow: 0 8px 20px rgba(29, 42, 68, 0.09);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-grid .product-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(29, 42, 68, 0.14);
}

.product-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(180deg, #f2f6fc, #eaf0f8);
  position: relative;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.product-img-wrap .product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
}

.product-info {
  padding: 10px;
}

.product-title {
  font-family: var(--display-font);
  font-size: 0.98rem;
  color: var(--text-strong);
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.product-description {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.price {
  color: #136245;
  font-size: 0.96rem;
}

.stock {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.out-of-stock {
  color: #b02222;
  font-size: 0.9rem;
}

.low-stock {
  color: #d97706;
  font-size: 0.9rem;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  padding: 7px 12px;
  border-radius: 10px;
  background: linear-gradient(120deg, #1f5aa8, #2e70bf);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.product-cta:hover {
  filter: brightness(1.05);
}

.list-hero {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  padding: 18px;
  margin-bottom: 16px;
}

.back-link {
  text-align: left;
  margin: 8px 0 0;
}

.back-link a {
  color: var(--brand-1);
}

.social-links {
  margin: 20px 0 10px;
}

.social-links a {
  color: var(--text-muted);
}

.social-links a:hover {
  color: var(--brand-1);
}

.store-app-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 16px;
}

.store-app-links-label {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.store-app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(29, 42, 68, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(29, 42, 68, 0.08);
  color: var(--text-strong);
  text-decoration: none;
}

.store-app-link:hover {
  border-color: rgba(var(--logo-color-1, 31, 90, 168), 0.36);
  box-shadow: 0 10px 22px rgba(29, 42, 68, 0.12);
  color: var(--brand-1);
}

.cart-toggle {
  border-radius: 14px;
  width: 52px;
  height: 52px;
  background: linear-gradient(130deg, var(--brand-1), #2a70bf);
}

.cart-sidebar {
  border-left: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.subcategory-pill {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  background: rgba(16, 26, 45, 0.76);
  color: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  max-width: calc(100% - 16px);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.category-head {
  margin-bottom: 8px;
}

.category-section {
  margin-bottom: 16px;
}

.campaigns-section {
  margin-bottom: 16px;
}

@media (max-width: 980px) {
  .store-identity {
    margin-top: -30px;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 16px);
    padding: 12px;
    margin: 8px auto 18px;
    border-radius: 18px;
  }

  .store-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-links {
    justify-content: flex-start;
  }

  .store-identity {
    flex-direction: column;
    align-items: flex-start;
    margin-top: -12px;
    padding-top: 0;
  }

  .store-logo {
    width: 78px;
    height: 78px;
    border-radius: 22px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .store-discover-nav {
    gap: 8px;
    margin-bottom: 12px;
  }

  .discover-link {
    padding: 9px 8px;
    font-size: 0.82rem;
  }
}

/* Storefront cleanup overrides */
.store-topbar {
  gap: 6px;
  margin-bottom: 10px;
}

.store-quick-nav {
  gap: 6px;
}

.quick-nav-link {
  padding: 6px 10px;
  font-size: 0.82rem;
}

.auth-links {
  gap: 6px;
}

.glass-btn {
  padding: 6px 10px;
  font-size: 0.82rem;
}

.store-discover-nav,
.storefront-hero,
.category-rail-wrap {
  display: none;
}

.category-head {
  justify-content: flex-end;
  margin-bottom: 6px;
}

.cart-toggle {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.18);
  color: #133c6f;
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 10px 24px rgba(16, 33, 61, 0.24);
}

.cart-toggle span {
  background: rgba(255, 255, 255, 0.78);
  color: #103058;
  border: 1px solid rgba(16, 48, 88, 0.16);
}

.cart-sidebar {
  border-left: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  box-shadow: -8px 0 28px rgba(16, 33, 61, 0.2);
}

/* Storefront UX refinement */
.store-topbar {
  justify-content: flex-end;
}

.auth-links {
  gap: 8px;
  align-items: center;
}

.storefront-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(
    135deg,
    rgba(var(--logo-color-1, 31, 90, 168), 0.2) 0%,
    rgba(255, 255, 255, 0.98) 62%,
    rgba(var(--logo-color-1, 31, 90, 168), 0.1) 100%
  );
}

.storefront-quick-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (min-width: 981px) {
  .store-title-block {
    margin-top: 3rem;
  }
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--logo-color-1, 31, 90, 168), 0.34);
  color: var(--text-strong);
  font-size: 0.82rem;
  font-weight: 700;
  background: linear-gradient(
    132deg,
    rgba(var(--logo-color-1, 31, 90, 168), 0.24) 0%,
    rgba(255, 255, 255, 0.96) 70%
  );
}

.quick-pill:hover {
  background: linear-gradient(
    132deg,
    rgba(var(--logo-color-1, 31, 90, 168), 0.3) 0%,
    rgba(255, 255, 255, 1) 70%
  );
  border-color: rgba(var(--logo-color-1, 31, 90, 168), 0.46);
}

.storefront-controls {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) repeat(4, minmax(110px, 1fr));
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.storefront-controls input,
.storefront-controls select {
  width: 100%;
  margin-bottom: 0;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(34, 53, 88, 0.16);
  border-radius: 10px;
  box-shadow: none;
}

.category-head {
  justify-content: space-between;
  align-items: center;
}

.category-title {
  display: block;
}

.subcategory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.subcategory-link-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(29, 42, 68, 0.2);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.88);
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.product-grid .product-item {
  min-height: 0;
  align-self: start;
}

.product-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: auto;
}

.product-img-wrap {
  aspect-ratio: 4 / 5;
}

.product-grid .product-info {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 6px;
  padding: 10px 10px 12px;
}

.product-title {
  min-height: 0;
}

.product-description {
  font-size: 0.82rem;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expandable-copy {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.expandable-copy.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.campaign-description {
  margin: 0;
}

.product-detail-description {
  -webkit-line-clamp: 4;
  line-clamp: 4;
  margin-bottom: 0;
}

.see-more-toggle {
  border: 0;
  background: transparent;
  color: var(--brand-1);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.8rem;
  font-weight: 700;
}

.price {
  margin: 0;
}

.availability {
  margin: 0;
  font-size: 0.84rem;
}

.product-cta {
  display: none;
}

.similar-products {
  grid-template-columns: repeat(auto-fill, minmax(170px, 200px));
}

.similar-item {
  border: 1px solid rgba(34, 53, 88, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(29, 42, 68, 0.1);
  overflow: hidden;
  padding: 0;
}

.similar-item .similar-img {
  height: 150px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
  margin-bottom: 0;
}

.similar-item .similar-name,
.similar-item .similar-desc,
.similar-item .similar-price,
.similar-item .similar-stock {
  padding: 0 8px;
}

.similar-item .similar-name {
  padding-top: 8px;
}

.similar-item .similar-price {
  padding-bottom: 8px;
}

.similar-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 3px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Storefront radius normalization */
.container {
  border-radius: var(--radius-shell);
}

.store-header,
.campaigns-section,
.category-section,
.product-detail,
.order-block,
.location,
.list-hero,
.storefront-hero-content {
  border-radius: var(--radius-panel);
}

.address-block {
  padding-left: 1.5rem;
  padding-right: 6px;
}

.product-grid .product-item,
.campaign-block,
.similar-item,
.storefront-toolbar,
.store-logo,
.cart-toggle {
  border-radius: var(--radius-card);
}

.storefront-controls input,
.storefront-controls select,
.product-cta,
.store-note {
  border-radius: var(--radius-control);
}

.storefront-toolbar,
.quick-pill {
  border-radius: var(--radius-control);
}

.btn,
.btn-primary,
.btn-outline,
.glass-btn,
.subcategory-pill,
.subcategory-link-chip,
.category-chip {
  border-radius: var(--radius-pill);
}

.glass-btn,
.btn,
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.store-note {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid var(--secondary-color);
  background: #fafafa;
  font-size: 0.95rem;
}

.store-note.store-note-dashed {
  border-style: dashed;
  background: #fcfcfc;
  margin: 8px 0;
  padding: 8px;
}

.store-note.store-note-muted {
  border: 0;
  background: #f0f0f0;
  padding: 12px;
}

.messenger-cta {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 960px) {
  .storefront-toolbar {
    align-items: stretch;
  }

  .storefront-quick-links,
  .storefront-controls {
    width: 100%;
  }

  .storefront-controls {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .store-topbar {
    justify-content: flex-start;
  }

  .storefront-toolbar {
    padding: 8px;
    gap: 8px;
  }

  .storefront-quick-links {
    flex-direction: column;
    gap: 6px;
  }

  .quick-pill {
    width: 100%;
    justify-content: center;
  }

  .storefront-controls {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Storefront footer ─────────────────────────────────────── */
.store-footer {
  text-align: center;
  padding: 20px 16px 28px;
  margin-top: 32px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.store-footer p {
  margin: 4px 0;
}

.store-footer a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}

.store-footer a:hover {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
}
