:root {
  --primary: #B42332;
  --dark: #821B27;
  --cream: #FFFAF7;
  --pink: #FFF0EB;
  --text: #292524;
  --muted: #6B6563;
  --border: #F0E4E0;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(130, 27, 39, .08);
  --shadow-lg: 0 14px 40px rgba(130, 27, 39, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Georgia, "Playfair Display", serif;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.15rem;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--dark);
}

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: var(--pink);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 36px;
}

.section-head p {
  color: var(--muted);
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 10px;
  top: 10px;
  background: #fff;
  padding: 8px;
  z-index: 99;
}

.announce {
  background: var(--dark);
  color: #fff;
  text-align: center;
  font-size: .88rem;
  padding: 8px 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 247, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.logo img {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: 20px;
  flex: 1;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-color: var(--primary);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-form {
  display: flex;
}

.search-form input {
  border: 1px solid var(--border);
  border-radius: 99px 0 0 99px;
  padding: 8px 14px;
  width: 170px;
  background: #fff;
}

.search-form button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: 0 99px 99px 0;
  padding: 8px 14px;
  cursor: pointer;
}

.cart-link {
  position: relative;
  font-weight: 600;
}

.badge {
  background: var(--primary);
  color: #fff;
  border-radius: 99px;
  font-size: .72rem;
  padding: 1px 7px;
  margin-left: 3px;
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1.3rem;
  padding: 4px 10px;
  cursor: pointer;
}

.btn {
  display: inline-block;
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #fff;
  padding: 12px 26px;
  border-radius: 99px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
  font-size: 1rem;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn.outline {
  background: transparent;
  color: var(--primary);
}

.btn.outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn.sm {
  padding: 8px 16px;
  font-size: .9rem;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* Homepage hero */

.hero {
  background: linear-gradient(135deg, var(--pink), var(--cream));
  padding: 70px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 480px;
}

.hero h1 span {
  color: var(--primary);
}

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

.hero-img {
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Grids and cards */

.grid {
  display: grid;
  gap: 24px;
}

.grid.cols-4 {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: .25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Product card layout fix */

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  height: 100%;
}

.product-card .img-wrap {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--pink);
  overflow: hidden;
  flex-shrink: 0;
}

.product-card .img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.product-card:hover .img-wrap img {
  transform: scale(1.05);
}

.product-card .body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 16px;
}

.product-card .body h3 {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
}

.product-card .body h3 a {
  color: var(--text);
}

.product-card .price {
  width: 100%;
}

.product-card .stock {
  width: 100%;
}

.product-card .body .btn {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  margin-top: 8px;
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
  overflow-wrap: normal;
  flex-shrink: 0;
}

.price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.price s {
  color: var(--muted);
  font-weight: 400;
  font-size: .9rem;
  margin-left: 6px;
}

.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  padding: 3px 10px;
  border-radius: 99px;
}

.tag.out {
  background: #666;
}

.stock {
  font-size: .82rem;
  color: var(--muted);
  margin: 4px 0 10px;
}

.cat-card {
  display: block;
  text-align: center;
  color: var(--text);
}

.cat-card .img-wrap {
  aspect-ratio: 4 / 3;
  background: var(--pink);
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-card h3 {
  padding: 14px;
}

.benefit {
  padding: 28px;
  text-align: center;
}

.benefit .ico {
  font-size: 2rem;
  width: 62px;
  height: 62px;
  line-height: 62px;
  border-radius: 50%;
  background: var(--pink);
  margin: 0 auto 12px;
}

.promo {
  background: linear-gradient(120deg, var(--primary), var(--dark));
  color: #fff;
  border-radius: 28px;
  padding: 50px;
  text-align: center;
}

.promo h2 {
  color: #fff;
}

.promo .btn {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 10px 22px;
  color: var(--text);
  font-weight: 500;
}

.chip:hover {
  background: var(--primary);
  color: #fff;
}

/* Page titles and filters */

.empty,
.notice {
  text-align: center;
  padding: 40px;
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  grid-column: 1 / -1;
}

.notice.err {
  border-color: var(--primary);
  color: var(--dark);
}

.page-title {
  background: var(--pink);
  padding: 44px 0;
  text-align: center;
}

.page-title h1 {
  font-size: 2.4rem;
  margin: 0;
}

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

input,
select,
textarea {
  font: inherit;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  width: 100%;
}

.toolbar input,
.toolbar select {
  width: auto;
  flex: 1;
  min-width: 160px;
}

label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin: 12px 0 4px;
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  max-width: 480px;
  margin: 0 auto;
}

.form-card.wide {
  max-width: none;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.msg {
  padding: 10px 14px;
  border-radius: 10px;
  margin: 12px 0;
  font-size: .92rem;
}

.msg.ok {
  background: #EAF7EE;
  color: #1d6b3a;
}

.msg.bad {
  background: #FDECEC;
  color: #8a1b1b;
}

.hidden {
  display: none !important;
}

/* Product details */

.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.detail img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* Quantity and cart */

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: #fff;
}

.qty button {
  background: none;
  border: 0;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
}

.qty span {
  min-width: 30px;
  text-align: center;
}

.cart-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
}

.cart-row img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

.summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.summary .line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.summary .total {
  font-weight: 700;
  font-size: 1.2rem;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  align-items: start;
}

.order {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}

.status {
  display: inline-block;
  background: var(--pink);
  color: var(--dark);
  border-radius: 99px;
  padding: 2px 12px;
  font-size: .8rem;
  font-weight: 600;
  text-transform: capitalize;
}

/* Footer */

.site-footer {
  background: #2b1b1d;
  color: #e8dcd9;
  padding: 56px 0 20px;
  margin-top: 40px;
}

.site-footer a {
  color: #e8dcd9;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h3 {
  color: #fff;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 30px;
}

.foot-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.foot-grid li {
  margin: 6px 0;
}

.copy {
  border-top: 1px solid #4a3638;
  margin-top: 30px;
  padding-top: 16px;
  text-align: center;
  font-size: .85rem;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 12px 22px;
  border-radius: 99px;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.center {
  text-align: center;
}

.mt {
  margin-top: 24px;
}

.fade {
  animation: fade .6s both;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* Responsive layout */

@media (max-width: 900px) {
  .nav {
    gap: 12px;
  }

  .nav-links {
    gap: 12px;
    margin-left: 8px;
  }

  .search-form input {
    width: 130px;
  }

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

  .cart-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .cart-row img {
    width: 64px;
    height: 64px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 44px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-img {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .nav {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .nav-links {
    width: 100%;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-tools {
    margin-left: auto;
  }

  .search-form input {
    width: 110px;
  }

  .grid.cols-4,
  .grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-card .body {
    padding: 12px;
  }

  .product-card .body .btn {
    padding: 10px 6px;
    font-size: .85rem;
  }

  .detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .promo {
    padding: 30px 20px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 420px) {
  .grid.cols-4,
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .product-card .body .btn {
    font-size: .9rem;
    padding: 10px 12px;
  }

  .cart-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }

  .cart-row img {
    width: 56px;
    height: 56px;
  }

  .cart-row .qty,
  .cart-row > strong,
  .cart-row > .btn {
    grid-column: 2;
    justify-self: start;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }
}
/* RedMugs: Full background on every page */
html,
body {
    min-height: 100%;
    background-image: url("../assets/images/hero-new.jpeg") !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* Remove solid backgrounds covering the image */
main,
main > section,
.page-header,
.page-title,
.section,
.section.alt,
.hero,
.about-section,
.about-hero {
    background-color: transparent !important;
    background-image: none !important;
}

/* Keep content readable without colored section boxes */
main .container {
    background-color: transparent !important;
}

