/*
Theme Name: The Aleway Classic
Theme URI: https://thealeway.com/
Author: INOX Digital
Description: A classic WooCommerce storefront for The Aleway Wine & Liquor.
Version: 1.0.0
Text Domain: aleway-classic
*/

:root {
  --ink: #1b1614;
  --muted: #6f625b;
  --paper: #fbf7f1;
  --cream: #fffdf8;
  --copper: #c66339;
  --wine: #5d1722;
  --gold: #c4a064;
  --line: rgba(27, 22, 20, 0.12);
  --shadow: 0 24px 70px rgba(38, 20, 16, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(27, 22, 20, 0.86);
  color: #fffaf1;
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-logo-frame {
  width: 156px;
  height: 58px;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.brand-logo-frame img {
  width: 170px;
  max-width: none;
  margin-top: -10px;
}

.brand-mark {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 250, 241, 0.72);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  color: rgba(255, 250, 241, 0.82);
}

.nav-links a:hover {
  color: #fff;
}

.button,
.wc-block-components-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--copper);
  color: #fff;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.site-search,
.shop-search {
  display: flex;
  align-items: center;
  min-width: 260px;
  height: 44px;
  border: 1px solid rgba(255, 250, 241, 0.22);
  background: rgba(255, 250, 241, 0.1);
}

.site-search input,
.shop-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0 12px;
  background: transparent;
  color: #fffaf1;
  outline: none;
}

.site-search input::placeholder,
.shop-search input::placeholder {
  color: rgba(255, 250, 241, 0.66);
}

.site-search button,
.shop-search button {
  height: 100%;
  border: 0;
  padding: 0 15px;
  background: var(--gold);
  color: #1b1614;
  font-weight: 800;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: #fffaf1;
  border-color: rgba(255, 250, 241, 0.38);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #1b1614;
  color: #fffaf1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(18, 12, 10, 0.88), rgba(93, 23, 34, 0.54) 46%, rgba(18, 12, 10, 0.2)),
    linear-gradient(0deg, rgba(18, 12, 10, 0.62), rgba(18, 12, 10, 0.08) 42%, rgba(18, 12, 10, 0.46));
  pointer-events: none;
}

.hero-carousel,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-carousel {
  z-index: 0;
}

.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: alewayHeroFade 12s infinite;
}

.slide-one {
  animation-delay: 0s;
}

.slide-two {
  animation-delay: 3s;
}

.slide-three {
  animation-delay: 6s;
}

.slide-four {
  animation-delay: 9s;
}

@keyframes alewayHeroFade {
  0%,
  20% {
    opacity: 1;
    transform: scale(1);
  }

  25%,
  95% {
    opacity: 0;
    transform: scale(1.04);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
}

.banner-inner {
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(0, 720px) minmax(220px, 320px);
}

.banner-copy {
  padding: 34px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 760px;
  font-size: clamp(48px, 8vw, 96px);
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 250, 241, 0.82);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.banner-points {
  align-self: end;
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(255, 250, 241, 0.2);
  background: rgba(18, 12, 10, 0.34);
  backdrop-filter: blur(12px);
}

.banner-points span {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 250, 241, 0.14);
  color: rgba(255, 250, 241, 0.82);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.banner-points span:first-child {
  border-top: 0;
}

.tasting-panel {
  padding: 28px;
  border: 1px solid rgba(255, 250, 241, 0.18);
  background: rgba(255, 250, 241, 0.1);
  backdrop-filter: blur(12px);
}

.tasting-panel h2 {
  font-size: 32px;
}

.tasting-panel ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.tasting-panel li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 250, 241, 0.16);
  color: rgba(255, 250, 241, 0.82);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head h2 {
  max-width: 680px;
  font-size: clamp(36px, 5vw, 58px);
}

.section-head p {
  max-width: 420px;
  color: var(--muted);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.collection-card {
  min-height: 260px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(27, 22, 20, 0.06), rgba(27, 22, 20, 0.78)),
    var(--bg);
  color: #fffaf1;
}

.collection-card h3 {
  font-size: 28px;
}

.collection-card p {
  margin: 10px 0 0;
  color: rgba(255, 250, 241, 0.78);
}

.store-band {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto;
  margin: 0;
  padding: 16px;
  float: none;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 36px rgba(38, 20, 16, 0.08);
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 0 14px;
  background: #f3eee6;
}

.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-result-count {
  margin-bottom: 22px;
  color: var(--muted);
}

.woocommerce .woocommerce-ordering select {
  min-height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

.woocommerce-loop-product__title {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.price {
  color: var(--wine) !important;
  font-weight: 800;
}

.empty-shop {
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.contact-band {
  background: #1b1614;
  color: #fffaf1;
}

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

.contact-item {
  padding: 24px;
  border: 1px solid rgba(255, 250, 241, 0.16);
}

.contact-item span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.site-footer {
  padding: 26px 0;
  background: #120f0e;
  color: rgba(255, 250, 241, 0.66);
  font-size: 14px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.woocommerce main,
.site-main,
.shop-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.shop-main {
  min-height: 60vh;
}

.shop-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  padding: 34px;
  background: linear-gradient(135deg, #fffdf8, #f3e8dc);
  border: 1px solid var(--line);
}

.shop-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.shop-search {
  min-width: min(420px, 100%);
  border-color: var(--line);
  background: #fff;
}

.shop-search input {
  color: var(--ink);
}

.shop-search input::placeholder {
  color: var(--muted);
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .site-search {
    min-width: 220px;
  }

  .hero-inner,
  .contact-grid,
  .shop-hero {
    grid-template-columns: 1fr;
  }

  .banner-inner {
    min-height: 680px;
  }

  .shop-hero {
    display: grid;
    align-items: stretch;
  }

  .tasting-panel {
    max-width: 520px;
  }

  .collection-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .brand-logo-frame {
    width: 126px;
    height: 48px;
  }

  .brand-logo-frame img {
    width: 138px;
    margin-top: -8px;
  }

  .brand-mark {
    display: none;
  }

  .site-search {
    flex: 1 1 100%;
    order: 3;
    min-width: 100%;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 34px 0 58px;
  }

  h1 {
    font-size: 44px;
  }

  .banner-inner {
    min-height: 620px;
  }

  .banner-points {
    display: none;
  }

  .section {
    padding: 54px 0;
  }

  .section-head {
    display: block;
  }

  .collection-grid,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: block;
  }
}
