
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --dark: #171717;
  --red: #e53935;
  --light: #f7f7f7;
  --muted: #777;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select {
  font: inherit;
}

button, .primary-button {
  cursor: pointer;
}

.header {
  min-height: 76px;
  padding: 16px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #eee;
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -1px;
  white-space: nowrap;
}

.logo span {
  color: var(--red);
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  font-size: 14px;
  font-weight: 700;
}

nav a:hover {
  color: var(--red);
}

.cart-button {
  border: 0;
  background: var(--dark);
  color: white;
  padding: 10px 16px;
  border-radius: 7px;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 65px 8%;
  background: #f6f3f0;
}

.hero-content {
  max-width: 520px;
}

.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(42px, 5.5vw, 68px);
  line-height: 1.08;
  letter-spacing: -3px;
  margin-bottom: 20px;
}

.hero-content > p:not(.eyebrow) {
  color: #666;
  max-width: 420px;
  margin-bottom: 28px;
}

.primary-button {
  display: inline-block;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: white;
  padding: 13px 22px;
  font-weight: 700;
  transition: background .2s;
}

.primary-button:hover {
  background: #bd2421;
}

.hero-image {
  height: 390px;
  overflow: hidden;
  border-radius: 16px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features {
  display: flex;
  justify-content: center;
  gap: 45px;
  flex-wrap: wrap;
  padding: 23px 5%;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  font-weight: 600;
}

.shop-section {
  padding: 75px 7%;
  scroll-margin-top: 90px;
}

.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-heading h2,
.about-section h2,
.contact-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-heading > p:last-child {
  color: var(--muted);
}

.shop-controls {
  display: flex;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto 30px;
}

.shop-controls input,
.shop-controls select {
  min-width: 0;
  border: 1px solid #ddd;
  background: white;
  padding: 12px 14px;
  border-radius: 7px;
  outline-color: var(--red);
}

.shop-controls input {
  flex: 1;
}

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


.product-card img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  display: block;
  background: #fff;
  padding: 10px;
  box-sizing: border-box;
}


.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px #0000000d;
}

.product-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  background: var(--light);
}

.product-info {
  padding: 18px;
}

.condition {
  display: inline-block;
  background: #fce9e8;
  color: #b62925;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
}

.product-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.product-description {
  color: var(--muted);
  font-size: 13px;
  min-height: 42px;
}

.product-meta {
  font-size: 13px;
  margin: 10px 0;
}

.product-price {
  font-size: 21px;
  font-weight: 800;
  margin: 10px 0 14px;
}

.add-button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: var(--dark);
  color: white;
  padding: 11px;
  font-weight: 700;
}

.add-button:hover {
  background: var(--red);
}

.empty-message {
  text-align: center;
  padding: 35px;
  color: var(--muted);
}

.about-section {
  padding: 70px 10%;
  text-align: center;
  background: var(--light);
  scroll-margin-top: 90px;
}

.about-section > p:last-child {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
}

.contact-section {
  padding: 65px 20px;
  text-align: center;
  scroll-margin-top: 90px;
}

.contact-section p {
  color: var(--muted);
  margin-bottom: 22px;
}

footer {
  background: var(--dark);
  color: white;
  padding: 30px 7%;
  text-align: center;
}

footer p {
  color: #ccc;
  font-size: 13px;
  margin-top: 7px;
}

.cart-panel {
  position: fixed;
  right: 20px;
  top: 90px;
  width: min(390px, calc(100vw - 40px));
  max-height: 75vh;
  overflow-y: auto;
  padding: 22px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 10px 50px #0002;
  z-index: 20;
}

.cart-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-heading button,
.remove-button {
  border: 0;
  background: transparent;
  padding: 5px;
  cursor: pointer;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}

.cart-total {
  font-weight: 800;
  margin: 18px 0;
}

.checkout-button {
  width: 100%;
  text-align: center;
}

.cart-note {
  color: var(--muted);
  font-size: 11px;
  margin-top: 12px;
}

@media (max-width: 850px) {
  .header {
    flex-wrap: wrap;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .hero {
    padding: 45px 6%;
    gap: 25px;
  }

  .hero-image {
    height: 300px;
  }

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

  .features {
    gap: 15px 25px;
  }
}

@media (max-width: 560px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .hero-image {
    height: 260px;
  }

  .shop-section {
    padding: 50px 5%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 280px;
  }

  .shop-controls {
    flex-direction: column;
  }

  .logo {
    font-size: 18px;
  }
}




.product-brand {
  color: #777;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-meta {
  color: #444;
}



.hero-slider {
  position: relative;
}

.hero-slider .slider-dots {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0; 
  z-index: 2;
}




.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.7px;
  white-space: nowrap;
}

.logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}

.logo-text {
  color: #171717;
}

@media (max-width: 560px) {
  .logo img {
    width: 60px;
    height: 60px;
  }

  .logo {
    font-size: 17px;
    gap: 7px;
  }
}



.announcement-bar {
  width: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  padding: 11px 0;
  white-space: nowrap;
}

.announcement-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 35px;
  animation: announcement-scroll 25s linear infinite;
}

.announcement-track span {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

@keyframes announcement-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-track {
    animation: none;
  }
}



/* AHShoesCollection - Special Offer Countdown */
.offer-countdown-bar {
  width: 100%;
  box-sizing: border-box;
  background: #fc0015;
  color: #ffffff;
  padding: 10px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.offer-message {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-align: center;
}

.offer-timer {
  display: flex;
  align-items: center;
  gap: 7px;
}

.timer-box {
  min-width: 43px;
  padding: 6px 5px;
  box-sizing: border-box;
  background: #ffffff;
  color: #c91f2c;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px #00000020;
}

.timer-box span {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.timer-box small {
  font-size: 9px;
  font-weight: 700;
  margin-top: 3px;
}

.timer-colon {
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
}

/* Mobile screen */
@media (max-width: 560px) {
  .offer-countdown-bar {
    gap: 8px;
    padding: 10px 5px;
  }

  .offer-message {
    font-size: 11px;
    letter-spacing: 0.4px;
  }

  .offer-timer {
    gap: 5px;
  }

  .timer-box {
    min-width: 39px;
    padding: 5px 4px;
  }

  .timer-box span {
    font-size: 16px;
  }

  .timer-box small {
    font-size: 8px;
  }
}





/* Center navigation between logo and cart */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.header .logo {
  justify-self: start;
}

.header nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.header .cart-button {
  justify-self: end;
}

/* Keep header responsive */
@media (max-width: 800px) {
  .header {
    grid-template-columns: 1fr auto;
    row-gap: 15px;
  }

  .header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    flex-wrap: wrap;
    gap: 18px;
  }

  .header .cart-button {
    grid-column: 2;
    grid-row: 1;
  }
}




/* AHShoesCollection - Modern Gradient Header Cart */

.header .cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 9px 10px 9px 17px;
  min-height: 48px;

  background: linear-gradient(135deg, #ff303a 0%, #c90020 100%);
  color: #ffffff;

  border: none;
  border-radius: 30px;

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;

  box-shadow: 0 4px 12px rgba(201, 0, 32, 0.22);
  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.header .cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header .cart-icon svg {
  width: 22px;
  height: 22px;
}

.header .cart-label {
  white-space: nowrap;
}

.header .cart-count {
  min-width: 23px;
  height: 23px;
  padding: 0 5px;
  box-sizing: border-box;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  color: #c90020;
  border-radius: 50px;

  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.header .cart-arrow {
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  color: #c90020;
  border-radius: 50%;
  margin-left: 2px;

  transition: transform 0.25s ease;
}

.header .cart-arrow svg {
  width: 17px;
  height: 17px;
}

.header .cart-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 17px rgba(201, 0, 32, 0.32);
}

.header .cart-button:hover .cart-arrow {
  transform: translateX(2px);
}

.header .cart-button:active {
  transform: scale(0.97);
}

.header .cart-button:focus-visible {
  outline: 3px solid #ff9aa5;
  outline-offset: 3px;
}

/* Smaller screens */
@media (max-width: 560px) {
  .header .cart-button {
    gap: 6px;
    min-height: 42px;
    padding: 7px 8px 7px 11px;
    font-size: 12px;
  }

  .header .cart-icon svg {
    width: 19px;
    height: 19px;
  }

  .header .cart-count {
    min-width: 21px;
    height: 21px;
    font-size: 11px;
  }

  .header .cart-arrow {
    width: 25px;
    height: 25px;
  }

  .header .cart-arrow svg {
    width: 15px;
    height: 15px;
  }
}



/* AHShoesCollection - Red Header Design */

.header {
  background: #202124;
  color: #ffffff;
  padding: 15px 30px;
  border-bottom: none;
}

/* Navigation links */
.header nav a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
}

.header nav a:hover {
  color: #ffe082;
}

/* Brand name */
.logo-text {
  color: #ffffff;
}

/* Cart button */
.cart-button {
  background: #ffffff;
  color: #c90016;
  border: 2px solid #ffffff;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.cart-button:hover {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

.logo-text {
  color: #ffffff !important;
}

/* Round AHC Logo */
.logo img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #ffffff;
  padding: 3px;
  box-sizing: border-box;
}

/* AHC Logo Hover Effect */
.logo img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
 box-shadow: 0 8px 24px rgba(255, 0, 0, 0.45);
}

.logo img:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

/* About Us and Contact Pages */

.info-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 22px 60px;
}

.info-hero {
  background: #fff3f3;
  border-radius: 16px;
  padding: 45px 25px;
  text-align: center;
  margin-bottom: 25px;
}

.info-hero h1 {
  color: #c90016;
  font-size: clamp(28px, 5vw, 42px);
  margin: 12px 0;
}

.info-hero p {
  line-height: 1.8;
}

.info-section {
  padding: 25px 0;
}

.info-section h2 {
  color: #c90016;
  margin-bottom: 15px;
}

.info-section > p {
  line-height: 1.9;
  color: #444;
}

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

.info-card {
  padding: 24px;
  border: 1px solid #eeeeee;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease,
              box-shadow 0.25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
  color: #c90016;
  margin-top: 0;
}

.info-card p {
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.contact-link {
  display: inline-block;
  color: #c90016;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-link:hover {
  text-decoration: underline;
}

.map-placeholder {
  min-height: 180px;
  background: #f4f4f4;
  border: 1px dashed #bbbbbb;
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}

.info-footer {
  background: #171717;
  color: #ffffff;
  padding: 22px;
  text-align: center;
}

@media (max-width: 600px) {
  .info-page {
    padding: 20px 15px 40px;
  }

  .info-hero {
    padding: 30px 16px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}



/* Google Maps on Contact Page */
.map-container {
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #eeeeee;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 600px) {
  .map-container {
    height: 260px;
  }
}

/* =====================================
   AHShoesCollection - Premium Product Cards
===================================== */

/* Products Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  align-items: stretch;
}

/* Main Product Card */
.product-card {
  background: #ffffff;
  border: 2px solid #d62828;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Hover Effect - Card move nahi karega */
.product-card:hover {
  border-color: #a91515;
  box-shadow: 0 10px 26px rgba(214, 40, 40, 0.14);
}

/* Product Image */
.product-card .product-image {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
  padding: 14px;
  box-sizing: border-box;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

/* Product Details */
.product-card .product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
}

/* Used A Grade Label */
.product-card .condition {
  display: inline-block;
  background: #fff0f0;
  color: #b51f26;
  border: 1px solid #f0c3c3;
  border-radius: 5px;
  padding: 6px 9px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Product Name */
.product-card .product-info h3 {
  color: #202124;
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 8px;
}

/* Description */
.product-card .product-description {
  color: #666666;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 8px;
}

/* Shoe Size */
.product-card .product-meta {
  color: #444444;
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0;
}

/* Product Price */
.product-card .product-price {
  color: #c51f2b;
  font-size: 23px;
  font-weight: 800;
  margin: 8px 0 16px;
}

/* Add to Cart Button */
.product-card .add-button {
  width: 100%;
  margin-top: auto;
  border: none;
  border-radius: 7px;
  background: #202124;
  color: #ffffff;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.product-card .add-button:hover {
  background: #c51f2b;
}

/* Tablet */
@media (max-width: 850px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    border-radius: 10px;
  }

  .product-card .product-image {
    height: 165px;
    padding: 8px;
  }

  .product-card .product-info {
    padding: 11px;
  }

  .product-card .product-info h3 {
    font-size: 15px;
  }

  .product-card .condition {
    font-size: 9px;
    padding: 5px 6px;
  }

  .product-card .product-description {
    font-size: 12px;
  }

  .product-card .product-price {
    font-size: 19px;
  }

  .product-card .add-button {
    padding: 10px 5px;
    font-size: 12px;
  }
}




/* Product Review Stars */
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  color: #f5a623;
  font-size: 17px;
  letter-spacing: 1px;
}

.product-rating .rating-count {
  color: #666666;
  font-size: 12px;
  letter-spacing: 0;
}

/* Dark Grey Add to Cart Button */
.product-card .add-button {
  background: #3a3a3a;
  color: #ffffff;
}

.product-card .add-button:hover {
  background: #242424;
}

/* Add to Cart Hover Effect */
.product-card .add-button {
  background: #303030;
  color: #ffffff;
  transition: background 0.3s ease;
}

.product-card .add-button:hover {
  background: #a00000;
  color: #ffffff;
}

/* Home, About, Contact Hover Red */
header nav a:hover,
header .nav-links a:hover {
  color: #a00000 !important;
  transition: color 0.3s ease;
}

/* Thick Border Around Product Cards */
.product-grid .product-card {
  border: 4px solid #d62828 !important;
  border-radius: 14px;
  box-sizing: border-box;
}

/* Make Product Images Bigger */
.product-card .product-image {
  width: 100%;
  height: 300px;
  object-fit: contain;
  padding: 5px;
  box-sizing: border-box;
  background: #ffffff;
}

/* Bigger Images on Mobile Too */
@media (max-width: 560px) {
  .product-card .product-image {
    height: 200px;
    padding: 4px;
  }
}
/* Features Section Background */
section.features {
    background: #59595a !important;
    padding: 22px 15px;
    border-bottom: 1px solid #D5DCE5;
}


/* Features Text - Dark Black */
section.features div {
    color: #000000 !important;
    font-weight: 600;
}



/* Product details and gallery additions */
.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.product-card-link:hover h3 { color: var(--red); }
.details-hint {
  display: inline-block;
  margin-top: 7px;
  color: var(--red);
  font-size: .86rem;
  font-weight: 700;
}
.product-card > .add-button { margin: 0 16px 16px; width: calc(100% - 32px); }
.product-detail-body { background: #f7f7f7; min-height: 100vh; }
.product-detail-page { width: min(1180px, 92%); margin: 28px auto 60px; }
.back-to-shop { display: inline-block; margin: 0 0 22px; color: var(--red); font-weight: 700; }
.product-detail-layout {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 38px; background: #fff; padding: 28px; border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.07);
}
.product-main-image-wrap {
  min-height: 360px; display: flex; align-items: center; justify-content: center;
  background: #fafafa; border-radius: 14px; overflow: hidden;
}
.detail-main-image { display: block; width: 100%; height: 430px; object-fit: contain; }
.product-thumbnails { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.thumbnail-button { padding: 4px; border: 2px solid #e5e5e5; border-radius: 9px; background: #fff; cursor: pointer; min-width: 0; }
.thumbnail-button.active, .thumbnail-button:hover { border-color: var(--red); }
.thumbnail-button img { display: block; width: 100%; height: 68px; object-fit: contain; }
.product-detail-info { padding: 12px 4px; }
.detail-eyebrow { color: var(--red); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-detail-info h1 { margin: 10px 0; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; }
.detail-price { color: var(--red); font-size: 1.8rem; font-weight: 800; margin: 12px 0 4px; }
.detail-condition { display: inline-block; padding: 5px 10px; border-radius: 30px; background: #fff0f0; color: #a51e1e; font-size: .85rem; font-weight: 700; }
.detail-divider { height: 1px; background: #eee; margin: 22px 0; }
.product-detail-info > p { margin-bottom: 13px; }
.detail-description { margin-top: 20px; color: #555; }
.detail-add-button { width: 100%; margin: 18px 0 12px; padding: 13px 18px; }
.detail-whatsapp { display: block; text-align: center; padding: 12px; border: 1px solid #ddd; border-radius: 9px; font-weight: 700; }
.setup-note { padding: 12px; background: #fff7e6; border-radius: 8px; font-size: .9rem; }
.product-not-found { background: white; padding: 35px; border-radius: 14px; text-align: center; }
@media (max-width: 760px) {
  .product-detail-layout { grid-template-columns: 1fr; gap: 22px; padding: 16px; }
  .detail-main-image { height: 310px; }
  .product-main-image-wrap { min-height: 280px; }
  .product-thumbnails { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .thumbnail-button img { height: 76px; }
  .product-detail-page { margin-top: 18px; }
}


/* ===== Premium red-and-black product detail design ===== */
.product-detail-body {
  color: #f8f8f8;
  background: #080808;
  background-image:
    radial-gradient(ellipse at 12% 18%, rgba(226,0,15,.55) 0, rgba(226,0,15,0) 34%),
    radial-gradient(ellipse at 90% 85%, rgba(175,0,10,.45) 0, rgba(175,0,10,0) 34%),
    linear-gradient(135deg, #65000a 0%, #171717 42%, #050505 72%, #390006 100%);
  background-attachment: fixed;
}
.product-detail-body .header {
  background: rgba(5,5,5,.94);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 26px rgba(0,0,0,.3);
}
.product-detail-body .header nav a { color: #f3f3f3; }
.product-detail-body .product-detail-page { width: min(1220px, 94%); margin: 30px auto 64px; }
.product-detail-body .back-to-shop {
  color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  background: rgba(0,0,0,.45); margin-bottom: 18px; transition: .2s ease;
}
.product-detail-body .back-to-shop:hover { background: #b9000b; border-color: #e00012; }
.product-detail-body .product-detail-layout {
  position: relative; isolation: isolate; overflow: hidden;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, .97fr);
  gap: clamp(22px, 4vw, 58px); padding: clamp(20px, 4vw, 48px);
  color: #f8f8f8; background: linear-gradient(125deg, #8b000b 0%, #420007 34%, #111 34.2%, #050505 100%);
  border: 1px solid rgba(255,255,255,.1); border-radius: 3px;
  box-shadow: 0 20px 65px rgba(0,0,0,.5), 0 0 35px rgba(206,0,15,.2);
}
.product-detail-body .product-detail-layout::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 24% 48%, rgba(255,255,255,.12), transparent 23%),
              repeating-linear-gradient(135deg, transparent 0 42px, rgba(255,255,255,.018) 43px 44px);
}
.product-detail-body .product-gallery { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.product-detail-body .product-main-image-wrap {
  position: relative; min-height: 390px; border-radius: 4px; overflow: hidden;
  background: radial-gradient(ellipse at center, #343434 0%, #171717 43%, #090909 76%);
  border: 1px solid rgba(255,255,255,.08);
}
.product-detail-body .product-main-image-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,0,20,.10), transparent 50%);
}
.product-detail-body .detail-main-image {
  position: relative; z-index: 1; width: 100%; height: clamp(320px, 39vw, 460px);
  padding: 16px; object-fit: contain; filter: drop-shadow(0 22px 18px rgba(0,0,0,.48));
}
.product-detail-body .product-thumbnails { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.product-detail-body .thumbnail-button {
  padding: 5px; background: #6a6a6a; border: 2px solid transparent; border-radius: 5px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.product-detail-body .thumbnail-button:hover { transform: translateY(-2px); background: #858585; }
.product-detail-body .thumbnail-button.active { border-color: #f00b1c; background: #dedede; }
.product-detail-body .thumbnail-button img { height: clamp(48px, 6vw, 76px); object-fit: contain; }
.product-detail-body .product-detail-info { align-self: center; padding: 6px 0; }
.product-detail-body .detail-eyebrow { color: #ff3945; letter-spacing: .16em; font-size: .75rem; }
.product-detail-body .product-detail-info h1 {
  color: #fff; text-transform: uppercase; letter-spacing: -.035em;
  font-size: clamp(2rem, 4.3vw, 3.5rem); line-height: 1.04; margin: 14px 0 18px;
}
.product-detail-body .detail-price { color: #fff; font-size: clamp(1.8rem, 3vw, 2.35rem); margin: 26px 0 10px; }
.product-detail-body .detail-condition {
  color: #ffdfe1; background: rgba(211,0,18,.2); border: 1px solid rgba(255,45,58,.4);
  border-radius: 3px; padding: 7px 11px;
}
.product-detail-body .detail-divider { background: rgba(255,255,255,.16); margin: 22px 0; }
.product-detail-body .product-detail-info > p { color: #d6d6d6; line-height: 1.7; }
.product-detail-body .product-detail-info strong { color: #fff; }
.product-detail-body .detail-description { font-size: 1rem; }
.product-detail-body .detail-add-button {
  margin-top: 22px; border: 0; border-radius: 999px; min-height: 52px;
  background: linear-gradient(180deg, #ed000d, #a90008); color: #fff;
  text-transform: uppercase; letter-spacing: .04em; font-weight: 800;
  box-shadow: 0 7px 20px rgba(200,0,12,.24); transition: transform .2s ease, filter .2s ease;
}
.product-detail-body .detail-add-button:hover { background: linear-gradient(180deg, #ff1b27, #c0000c); transform: translateY(-2px); filter: brightness(1.05); }
.product-detail-body .detail-whatsapp {
  margin-top: 12px; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  background: rgba(255,255,255,.035); text-decoration: none; transition: .2s ease;
}
.product-detail-body .detail-whatsapp:hover { border-color: #e60012; background: rgba(230,0,18,.12); }
.product-detail-body .setup-note { color: #ffe8ba; background: rgba(130,82,0,.24); border: 1px solid rgba(255,193,75,.25); }
.product-detail-body .product-not-found { color: #222; }
.product-detail-body .info-footer { color: #aaa; background: #050505; border-top: 1px solid rgba(255,255,255,.1); }
.product-card-link .details-hint { text-transform: none; }
@media (max-width: 760px) {
  .product-detail-body .product-detail-page { width: min(100% - 24px, 620px); margin-top: 18px; }
  .product-detail-body .product-detail-layout { grid-template-columns: 1fr; gap: 22px; padding: 15px; }
  .product-detail-body .product-main-image-wrap { min-height: 260px; }
  .product-detail-body .detail-main-image { height: min(76vw, 360px); }
  .product-detail-body .product-thumbnails { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-detail-body .thumbnail-button img { height: 72px; }
  .product-detail-body .product-detail-info { padding: 8px 4px 4px; }
  .product-detail-body .product-detail-info h1 { font-size: clamp(1.9rem, 9vw, 2.8rem); }
}


/* Dynamic shoe-brand mark on the premium product page */
.product-detail-body .product-brand-header {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-start;
  gap: 22px; min-width: 0; padding: 0 0 18px; margin-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.product-detail-body .product-brand-logo { display: inline-flex; align-items: center; gap: 11px; min-width: 0; color: #fff; }
.product-detail-body .product-brand-logo > span:last-child { font-size: clamp(.9rem, 1.6vw, 1.2rem); font-weight: 900; letter-spacing: .12em; line-height: 1; }
.product-detail-body .brand-symbol { display: inline-flex; width: 40px; height: 34px; align-items: center; justify-content: center; color: #fff; font-size: 1.7rem; font-weight: 950; font-style: italic; line-height: 1; }
.product-detail-body .brand-swoosh { font-size: 2.4rem; transform: rotate(-18deg) scaleX(1.25); }
.product-detail-body .brand-stripes { gap: 3px; align-items: end; padding: 4px 6px; }
.product-detail-body .brand-stripes i { display: block; width: 7px; height: 23px; background: #fff; transform: skew(-22deg); }
.product-detail-body .brand-stripes i:nth-child(2) { height: 17px; }
.product-detail-body .brand-stripes i:nth-child(3) { height: 11px; }
.product-detail-body .brand-jordan { border: 2px solid #fff; border-radius: 50%; font-size: 1.25rem; }
.product-detail-body .brand-asics { font-size: 2.3rem; text-transform: lowercase; }
.product-detail-body .brand-puma, .product-detail-body .brand-fila, .product-detail-body .brand-ua,
.product-detail-body .brand-nb, .product-detail-body .brand-brooks, .product-detail-body .brand-reebok,
.product-detail-body .brand-lining, .product-detail-body .brand-xstep, .product-detail-body .brand-warrior,
.product-detail-body .brand-primark, .product-detail-body .brand-ahc { border: 2px solid rgba(255,255,255,.9); border-radius: 5px; font-size: 1.1rem; }
.product-detail-body .brand-fila { color: #ff3341; background: #fff; border-color: #fff; }
.product-detail-body .brand-ua { font-size: .95rem; letter-spacing: -.08em; }
.product-detail-body .brand-search-look { display: inline-flex; align-items: center; gap: 9px; min-width: 140px; padding: 9px 15px; border-radius: 999px; background: linear-gradient(#252525,#090909); color: #d5d5d5; border: 1px solid rgba(255,255,255,.08); font-size: .65rem; letter-spacing: .12em; }
.product-detail-body .brand-search-icon { font-size: 1.1rem; color: #fff; }
@media (max-width: 760px) {
  .product-detail-body .product-brand-header { gap: 12px; padding-bottom: 13px; }
  .product-detail-body .brand-search-look { min-width: 0; padding: 8px 10px; font-size: .55rem; }
  .product-detail-body .brand-symbol { width: 32px; height: 30px; }
}


/* Shared premium red-and-black footer across all website pages */
.premium-footer {
  position: relative; overflow: hidden; color: #f4f4f4;
  background: linear-gradient(125deg, #090909 0%, #030303 70%, #100000 100%);
  border-top: 2px solid #e50919; padding: 34px clamp(18px, 6vw, 90px) 26px;
}
.premium-footer::before,
.premium-footer::after {
  content: ""; position: absolute; pointer-events: none; width: 150px; height: 230px;
  background: linear-gradient(135deg, transparent 0 35%, rgba(210,0,18,.52) 35% 48%, rgba(255,0,20,.13) 48% 57%, transparent 57%);
}
.premium-footer::before { left: -70px; top: -70px; }
.premium-footer::after { right: -70px; bottom: -95px; transform: rotate(180deg); }
.premium-footer-inner {
  position: relative; z-index: 1; width: min(100%, 1450px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(160px, .9fr) minmax(130px, .7fr) minmax(280px, 1.25fr) minmax(220px, .95fr);
  gap: clamp(22px, 4vw, 58px); align-items: stretch;
}
.premium-footer-inner > section { min-width: 0; }
.premium-footer-inner > section + section { border-left: 1px solid rgba(255,255,255,.17); padding-left: clamp(18px, 3vw, 45px); }
.premium-footer h3 { margin: 0 0 12px; color: #f7f7f7; font-size: 1rem; font-weight: 800; }
.footer-heading-line { display: block; width: 38px; height: 3px; margin: 0 0 17px; background: #f10b20; }
.footer-social { display: flex; flex-direction: column; justify-content: center; }
.footer-social-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 6px; }
.footer-social-links a {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 1px solid transparent; border-radius: 50%; color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1.1rem; background: #222; transition: transform .2s ease, filter .2s ease;
}
.footer-social-links a:hover { transform: translateY(-3px); filter: brightness(1.18); }
.footer-social-links .social-facebook { background: #1877F2; color: #fff; font-family: Arial, sans-serif; font-size: 1.35rem; }
.footer-social-links .social-instagram { background: radial-gradient(circle at 30% 110%, #feda75 0 12%, #fa7e1e 28%, #d62976 55%, #962fbf 75%, #4f5bd5 100%); color: #fff; }
.footer-social-links .social-tiktok { background: #080808; color: #fff; border-color: #555; text-shadow: -1px 0 #25F4EE, 1px 0 #FE2C55; }
.footer-social-links .social-youtube { background: #FF0033; color: #fff; font-size: .95rem; }
.footer-social-links .social-whatsapp { background: #25D366; color: #fff; font-size: 1.15rem; }
.footer-quick-links { display: flex; flex-direction: column; align-items: flex-start; }
.footer-quick-links a { color: #e5e5e5; text-decoration: none; margin: 0 0 9px; font-size: .91rem; }
.footer-quick-links a:hover,
.footer-contact-info a:hover { color: #ff2637; }
.footer-contact-info p,
.footer-contact-info a { display: flex; align-items: flex-start; gap: 12px; color: #d1d1d1; text-decoration: none; font-size: .86rem; line-height: 1.55; margin: 0 0 10px; }
.footer-contact-icon { flex: 0 0 20px; color: #f10b20; font-size: 1.2rem; font-weight: 800; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; text-align: right; }
.footer-brand-link {
  display: flex; width: 76px; height: 76px; padding: 7px; box-sizing: border-box;
  align-items: center; justify-content: center; border-radius: 50%; overflow: hidden;
  border: 2px solid #e50919; background: #101010; box-shadow: 0 0 0 4px rgba(229,9,25,.10);
}
.footer-brand img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.footer-brand p { color: #c8c8c8; font-size: .78rem; margin: 14px 0 0; }
@media (max-width: 900px) {
  .premium-footer-inner { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .premium-footer-inner > section + section { border-left: 0; padding-left: 0; }
  .footer-brand { align-items: flex-start; text-align: left; }
}
@media (max-width: 520px) {
  .premium-footer { padding: 28px 20px 24px; }
  .premium-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .premium-footer-inner > section { padding: 0 !important; }
  .footer-brand { border-top: 1px solid rgba(255,255,255,.16); padding-top: 22px !important; align-items: flex-start; }
  .footer-brand-link { width: 68px; height: 68px; }
}

/* Product detail page: display origin/brand only on the detail view */
.detail-origin {
  color: #444;
  font-size: 0.98rem;
}
.detail-origin strong {
  color: #171717;
}


/* Product details page: keep cart text readable on its white panel. */
.product-detail-body .cart-panel { color: #222 !important; background: #fff; }
.product-detail-body .cart-panel .cart-heading h2,
.product-detail-body .cart-panel .cart-item,
.product-detail-body .cart-panel .cart-item strong,
.product-detail-body .cart-panel .cart-total,
.product-detail-body .cart-panel #cartItems,
.product-detail-body .cart-panel #cartItems p { color: #222 !important; }
.product-detail-body .cart-panel .cart-item div,
.product-detail-body .cart-panel .cart-note { color: #555 !important; }
.product-detail-body .cart-panel .remove-button,
.product-detail-body .cart-panel .cart-heading button { color: #222 !important; }
.product-detail-body .cart-panel .cart-item { border-bottom-color: #e5e5e5; }


/* MOBILE REPAIR: prevent horizontal overflow and compact the header, cards and footer */
html, body { width: 100%; max-width: 100%; overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; }
.header { min-width: 0; width: 100%; }
.header .logo { min-width: 0; white-space: normal; }
.header nav { min-width: 0; }
#productGrid, .product-grid { width: 100%; min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { min-width: 0; }
.product-info { min-width: 0; overflow-wrap: anywhere; }
.product-card h3, .product-card p, .product-card .size, .product-card .condition { overflow-wrap: anywhere; }
.premium-footer, .premium-footer-inner, .premium-footer-inner > section { min-width: 0; max-width: 100%; }
.footer-contact-info p, .footer-contact-info a { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  html, body { overflow-x: clip !important; }
  .header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    min-height: 0 !important;
  }
  .header .logo {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: clamp(13px, 3.7vw, 17px) !important;
    letter-spacing: -.4px !important;
    line-height: 1.15 !important;
  }
  .header .logo img { width: clamp(46px, 14vw, 64px) !important; height: clamp(46px, 14vw, 64px) !important; flex: 0 0 auto !important; }
  .header .logo-text { white-space: normal !important; overflow-wrap: anywhere !important; }
  .header .cart-button {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    gap: 5px !important;
    padding: 8px 9px !important;
    max-width: 42vw !important;
    min-width: 0 !important;
    font-size: 12px !important;
  }
  .header .cart-button .cart-icon svg { width: 18px !important; height: 18px !important; }
  .header .cart-count { min-width: 21px !important; height: 21px !important; font-size: 11px !important; }
  .header .cart-arrow { width: 25px !important; height: 25px !important; }
  .header nav {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px 15px !important;
    width: 100% !important;
    padding: 3px 0 0 !important;
  }
  .header nav a { font-size: 13px !important; line-height: 1.35 !important; white-space: nowrap !important; }
  .offer-countdown-bar { max-width: 100%; overflow: hidden; }
  .offer-timer { gap: 5px !important; }
  .timer-box { min-width: 43px !important; padding: 6px 5px !important; }
  .timer-box span { font-size: 17px !important; }
  .timer-box small { font-size: 9px !important; }
  .hero { grid-template-columns: minmax(0, 1fr) !important; gap: 22px !important; padding: 32px 18px !important; }
  .hero h1 { font-size: clamp(30px, 8vw, 42px) !important; line-height: 1.12 !important; overflow-wrap: anywhere; }
  .hero p { font-size: 16px !important; line-height: 1.55 !important; }
  .hero img, .hero-image { width: 100% !important; max-width: 100% !important; height: auto !important; }
  #productGrid, .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .product-card { border-width: 1.5px !important; border-radius: 10px !important; min-width: 0 !important; }
  .product-card .product-image, .product-card img { height: clamp(125px, 39vw, 175px) !important; padding: 6px !important; object-fit: contain !important; }
  .product-info { padding: 10px !important; }
  .product-info h3, .product-card h3 { font-size: 14px !important; line-height: 1.3 !important; margin: 7px 0 !important; }
  .product-info p, .product-card p { font-size: 12px !important; line-height: 1.45 !important; margin: 6px 0 !important; }
  .product-card .condition { font-size: 10px !important; line-height: 1.35 !important; padding: 6px !important; }
  .product-card .price, .product-info .price { font-size: 17px !important; line-height: 1.25 !important; }
  .product-card button, .product-card .add-to-cart, .product-card .view-product { max-width: 100% !important; padding: 9px 7px !important; font-size: 12px !important; white-space: normal !important; }
  .product-card a { overflow-wrap: anywhere; }
  .premium-footer { padding: 24px 18px 22px !important; }
  .premium-footer-inner { grid-template-columns: minmax(0, 1fr) !important; gap: 22px !important; width: 100% !important; }
  .premium-footer-inner > section + section { border-left: 0 !important; padding-left: 0 !important; }
  .footer-social { align-items: flex-start !important; }
  .footer-social-links { gap: 8px !important; }
  .footer-quick-links { align-items: flex-start !important; }
  .footer-contact-info { text-align: left !important; }
  .footer-contact-info p, .footer-contact-info a { justify-content: flex-start !important; text-align: left !important; font-size: 13px !important; }
  .footer-brand { align-items: flex-start !important; text-align: left !important; }
  .footer-brand-link { width: 58px !important; height: 58px !important; }
  .product-detail-page { width: 100% !important; max-width: 100% !important; padding: 16px !important; }
}
@media (max-width: 360px) {
  #productGrid, .product-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .product-card { display: grid !important; grid-template-columns: 40% minmax(0, 1fr) !important; align-items: start !important; }
  .product-card .product-image, .product-card img { height: 150px !important; }
  .product-info { padding: 9px !important; }
  .header .cart-label { display: none !important; }
}


/* FINAL MOBILE PRODUCT GRID FIX: always show two compact cards per row */
@media screen and (max-width: 600px) {
  #productGrid, .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #productGrid > *, .product-grid > * {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .product-card {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
  }
  .product-card .product-image,
  .product-card > img,
  .product-card img {
    display: block !important;
    width: 100% !important;
    height: clamp(105px, 32vw, 145px) !important;
    max-height: 145px !important;
    object-fit: contain !important;
    padding: 6px !important;
    flex: 0 0 auto !important;
  }
  .product-card .product-info {
    padding: 8px !important;
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    flex: 1 1 auto !important;
  }
  .product-card h3,
  .product-card .product-info h3 {
    font-size: 13px !important;
    line-height: 1.25 !important;
    margin: 2px 0 !important;
    overflow-wrap: anywhere !important;
  }
  .product-card p,
  .product-card .product-info p {
    font-size: 11px !important;
    line-height: 1.35 !important;
    margin: 2px 0 !important;
    overflow-wrap: anywhere !important;
  }
  .product-card .price,
  .product-card .product-info .price {
    font-size: 15px !important;
    line-height: 1.2 !important;
    margin: 3px 0 !important;
  }
  .product-card .condition {
    font-size: 10px !important;
    line-height: 1.25 !important;
    padding: 4px !important;
    margin: 2px 0 !important;
  }
  .product-card button,
  .product-card .add-to-cart,
  .product-card .view-product {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 3px 0 0 !important;
    padding: 8px 4px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}
@media screen and (max-width: 360px) {
  #productGrid, .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
  }
  .product-card .product-image,
  .product-card > img,
  .product-card img { height: 100px !important; }
  .product-card .product-info { padding: 6px !important; }
  .product-card h3, .product-card .product-info h3 { font-size: 12px !important; }
  .product-card button, .product-card .add-to-cart, .product-card .view-product {
    font-size: 10px !important;
    padding: 7px 3px !important;
  }
}


/* HOME PAGE ONLY: compact product cards with larger shoe photos */
@media screen and (max-width: 600px) {
  #productGrid .product-card {
    padding: 0 !important;
    border-radius: 10px !important;
  }
  #productGrid .product-card .product-image {
    height: clamp(135px, 38vw, 165px) !important;
    max-height: 165px !important;
    padding: 3px !important;
    object-fit: contain !important;
    background: #fff !important;
  }
  #productGrid .product-card .product-info {
    padding: 6px 7px 7px !important;
    gap: 3px !important;
  }
  #productGrid .product-card .product-info h3 {
    font-size: 12px !important;
    line-height: 1.25 !important;
    margin: 1px 0 3px !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
  }
  #productGrid .product-card .product-meta {
    font-size: 10px !important;
    line-height: 1.25 !important;
    margin: 1px 0 !important;
  }
  #productGrid .product-card .product-price {
    font-size: 14px !important;
    line-height: 1.2 !important;
    margin: 3px 0 !important;
  }
  #productGrid .product-card > .add-button {
    margin: 0 6px 7px !important;
    width: calc(100% - 12px) !important;
    padding: 7px 3px !important;
    font-size: 11px !important;
  }
}
@media screen and (max-width: 360px) {
  #productGrid .product-card .product-image { height: 125px !important; }
  #productGrid .product-card .product-info { padding: 5px 6px 6px !important; }
}

/* Homepage product listing background: soft grey to complement red product borders */
.shop-section {
  background: #f1f1f1;
}


/* MOBILE ONLY: align product cards and pin Add to Cart buttons to a consistent bottom line.
   Desktop styles and all product data/content remain unchanged. */
@media screen and (max-width: 600px) {
  #productGrid.product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr !important;
    align-items: stretch !important;
    justify-items: stretch !important;
  }

  #productGrid > .product-card {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    height: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  #productGrid > .product-card > .product-card-link {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  #productGrid > .product-card > .product-card-link > .product-image {
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    height: clamp(135px, 38vw, 165px) !important;
    max-height: 165px !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
  }

  #productGrid > .product-card .product-info {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  #productGrid > .product-card .product-info h3 {
    min-height: 2.5em !important;
    max-height: 2.5em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-height: 1.25 !important;
  }

  #productGrid > .product-card .product-info .product-meta {
    min-height: 1.3em !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
  }

  #productGrid > .product-card .product-info .product-price {
    margin-top: auto !important;
    padding-top: 3px !important;
  }

  #productGrid > .product-card > .add-button {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: stretch !important;
    width: calc(100% - 12px) !important;
    min-height: 36px !important;
    margin: 0 6px 7px !important;
    padding: 7px 4px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }
}

@media screen and (max-width: 360px) {
  #productGrid > .product-card > .product-card-link > .product-image {
    height: 125px !important;
  }
  #productGrid > .product-card > .add-button {
    min-height: 34px !important;
    font-size: 10px !important;
  }
}
