
/* ===================================
   AVALLORA — COMPLETE WEBSITE STYLING
   =================================== */

/* Main Colours */
:root {
  --black: #202020;
  --white: #ffffff;
  --cream: #e8e6e2;
  --grey: #777777;
  --light-grey: #e5e5e5;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* ===================================
   ANNOUNCEMENT BAR
   =================================== */

.announcement-bar {
  background: #252525;
  color: white;
  text-align: center;
  padding: 10px 15px;
  font-size: 10px;
  letter-spacing: 1.5px;
}

/* ===================================
   HEADER & LOGO
   =================================== */

.site-header {
  background: white;
}

.header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 5%;
  border-bottom: 1px solid var(--light-grey);
}

.logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 3px;
  text-align: center;
}

.icon-button {
  background: transparent;
  border: none;
  color: var(--black);
  font-size: 23px;
  cursor: pointer;
  padding: 5px;
}

.header-icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.header-icons a.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ===================================
   NAVIGATION
   =================================== */

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 45px;
  padding: 17px 15px;
}

.main-nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: opacity 0.2s;
}

.main-nav a:hover {
  opacity: 0.5;
}

/* ===================================
   HOMEPAGE HERO
   =================================== */

.hero {
  background: var(--cream);
  min-height: 420px;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-subtitle {
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.hero-description {
  color: #555555;
  font-size: 14px;
  margin-bottom: 30px;
}

.shop-button {
  display: inline-block;
  background: var(--black);
  color: white;
  padding: 16px 28px;
  font-size: 11px;
  letter-spacing: 1px;
  transition: background 0.2s ease;
}

.shop-button:hover {
  background: #444444;
}

/* ===================================
   THE FIRST DROP
   =================================== */

.collection {
  padding: 65px 6%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-heading h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 1px;
}

.section-heading a {
  font-size: 11px;
  color: #555555;
  text-decoration: underline;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: clamp(10px, 1.5vw, 20px);
  letter-spacing: 2px;
}

/* Hoodie Colours */
.cherry {
  background: #723d4b;
  color: white;
}

.charcoal {
  background: #565658;
  color: white;
}

.offwhite {
  background: #e6e0d6;
  color: #555555;
}

.product-card h3 {
  font-size: 13px;
  font-weight: 500;
  margin-top: 13px;
}

.product-card p {
  font-size: 11px;
  color: var(--grey);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* Clickable Product Cards */
a.product-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.product-card:hover .product-image {
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

/* ===================================
   HOMEPAGE OUR STORY
   =================================== */

.our-story {
  text-align: center;
  padding: 65px 20px 90px;
  border-top: 1px solid var(--light-grey);
}

.our-story h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.our-story p {
  font-size: 13px;
  color: var(--grey);
}

.our-story .shop-button {
  margin-top: 25px;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
  background: #252525;
  color: white;
  text-align: center;
  padding: 35px 20px;
}

.footer p {
  font-size: 10px;
  letter-spacing: 1.5px;
  margin: 6px 0;
}

/* ===================================
   MOBILE HOMEPAGE
   =================================== */

@media (max-width: 768px) {
  .announcement-bar {
    font-size: 9px;
  }

  .header-main {
    padding: 17px 4%;
  }

  .logo {
    font-size: 21px;
    letter-spacing: 2px;
  }

  .header-icons {
    gap: 7px;
  }

  .icon-button {
    font-size: 19px;
  }

  .main-nav {
    gap: 20px;
    padding: 14px 10px;
  }

  .main-nav a {
    font-size: 9px;
  }

  .hero {
    min-height: 350px;
    padding: 65px 20px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 9px;
  }

  .collection {
    padding: 45px 4%;
  }

  .section-heading h2 {
    font-size: 18px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-image {
    letter-spacing: 0.5px;
  }

  .product-card h3 {
    font-size: 11px;
  }

  .product-card p {
    font-size: 9px;
  }

  .our-story h2 {
    font-size: 24px;
  }
}

@media (max-width: 380px) {
  .header-icons {
    gap: 2px;
  }

  .logo {
    font-size: 18px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================
   SLIDE-OUT HAMBURGER MENU
   =================================== */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease,
              visibility 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(380px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: white;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease,
              visibility 0.3s ease;
}

.side-menu.active {
  transform: translateX(0);
  visibility: visible;
}

.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 25px;
  border-bottom: 1px solid #e5e5e5;
}

.side-menu-header h2 {
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 2px;
}

.close-menu {
  background: none;
  border: none;
  font-size: 32px;
  color: #202020;
  cursor: pointer;
}

.side-menu-links {
  display: flex;
  flex-direction: column;
  padding: 25px;
}

.side-menu-links a {
  padding: 19px 0;
  border-bottom: 1px solid #eeeeee;
  font-size: 13px;
  letter-spacing: 1px;
  color: #202020;
  text-decoration: none;
}

.side-menu-links a:hover {
  padding-left: 8px;
}

.side-menu-bottom {
  margin-top: auto;
  padding: 25px;
  border-top: 1px solid #e5e5e5;
}

.side-menu-bottom p {
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.side-menu-bottom span {
  font-size: 10px;
  color: #777777;
  letter-spacing: 1px;
}

body.menu-open {
  overflow: hidden;
}

/* ===================================
   SHOPPING CART
   =================================== */

.cart-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 65px 6%;
  min-height: 65vh;
}

.cart-heading {
  margin-bottom: 40px;
}

.cart-heading h1 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 1px;
}

.cart-heading p {
  font-size: 13px;
  color: #777777;
  margin-top: 10px;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  padding: 25px 0;
  border-bottom: 1px solid #e5e5e5;
}

.cart-item-image {
  width: 130px;
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 1px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h3 {
  font-size: 16px;
  font-weight: 500;
}

.cart-item-details p {
  color: #777777;
  font-size: 12px;
  margin-top: 8px;
}

.cart-item-price {
  font-size: 14px;
  margin-top: 12px;
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid #dddddd;
}

.quantity-controls button {
  background: transparent;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
}

.quantity-controls span {
  font-size: 13px;
}

.remove-item {
  border: none;
  background: transparent;
  text-decoration: underline;
  color: #777777;
  font-size: 12px;
  cursor: pointer;
}

.cart-summary {
  max-width: 420px;
  margin: 45px 0 0 auto;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-subtotal h2 {
  font-size: 15px;
  font-weight: 500;
}

.cart-summary > p {
  font-size: 12px;
  color: #777777;
  margin: 15px 0 25px;
}

.checkout-button {
  width: 100%;
  background: #202020;
  color: white;
  border: none;
  padding: 18px;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
}

.checkout-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.continue-shopping {
  display: block;
  text-align: center;
  margin-top: 22px;
  font-size: 12px;
  text-decoration: underline;
}

.empty-cart {
  text-align: center;
  padding: 80px 20px;
}

.empty-cart h2 {
  font-size: 23px;
  font-weight: 500;
}

.empty-cart p {
  color: #777777;
  margin: 15px 0 30px;
}

.empty-cart a {
  display: inline-block;
  background: #202020;
  color: white;
  padding: 15px 28px;
  font-size: 12px;
}

@media (max-width: 600px) {
  .cart-page {
    padding: 40px 5%;
  }

  .cart-heading h1 {
    font-size: 26px;
  }

  .cart-item {
    gap: 15px;
  }

  .cart-item-image {
    width: 100px;
  }

  .cart-actions {
    gap: 12px;
    flex-wrap: wrap;
  }

  .cart-summary {
    max-width: 100%;
  }
}

/* ===================================
   PRODUCT PAGE
   =================================== */

.product-page {
  max-width: 1450px;
  margin: 0 auto;
  padding: 35px 6% 90px;
}

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #777777;
}

.product-breadcrumb a:hover {
  text-decoration: underline;
}

.product-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 65px;
  align-items: start;
}

/* Product Gallery */
.product-main-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: clamp(20px, 3vw, 38px);
  letter-spacing: 3px;
  transition: background 0.25s ease;
}

.product-image-note {
  margin-top: 12px;
  color: #888888;
  font-size: 11px;
}

/* Product Information */
.product-information {
  padding-top: 10px;
}

.product-category {
  font-size: 10px;
  letter-spacing: 2px;
  color: #777777;
  margin-bottom: 12px;
}

.product-information h1 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  margin-bottom: 12px;
}

.product-price {
  font-size: 17px;
  margin-bottom: 25px;
}

.product-description {
  font-size: 14px;
  color: #666666;
  line-height: 1.8;
  margin-bottom: 35px;
}

.product-option {
  margin-bottom: 30px;
}

.product-option h2 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.7px;
  margin-bottom: 15px;
}

.product-option h2 span {
  font-weight: 400;
  color: #777777;
}

/* Colour Swatches */
.colour-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.colour-swatch,
.colour-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.colour-swatch {
  background: var(--swatch);
  border: 1px solid #cccccc;
  cursor: pointer;
  position: relative;
}

.colour-swatch.selected::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid #202020;
  border-radius: 50%;
}

.colour-placeholder {
  background: #f2f2f2;
  border: 1px dashed #cccccc;
}

.product-small-note {
  font-size: 11px;
  color: #888888;
  margin-top: 15px;
  line-height: 1.6;
}

/* Sizes */
.size-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.size-guide-link {
  background: transparent;
  border: none;
  text-decoration: underline;
  font-size: 11px;
  cursor: pointer;
  margin-bottom: 15px;
}

.size-options {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.size-options button {
  background: white;
  border: 1px solid #dddddd;
  padding: 13px 5px;
  font-size: 12px;
  cursor: pointer;
}

.size-options button.selected {
  border: 1px solid #202020;
  background: #202020;
  color: white;
}

.size-options button:hover {
  border-color: #202020;
}

/* Quantity */
.product-quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dddddd;
}

.product-quantity button {
  border: none;
  background: transparent;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 18px;
}

.product-quantity span {
  min-width: 25px;
  text-align: center;
  font-size: 13px;
}

/* Add to Bag */
.product-add-button {
  width: 100%;
  background: #202020;
  color: white;
  border: none;
  padding: 19px;
  font-size: 12px;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.product-add-button:hover {
  background: #444444;
}

.product-feedback {
  font-size: 12px;
  margin-top: 12px;
  color: #555555;
}

.view-bag-link {
  display: block;
  text-align: center;
  text-decoration: underline;
  font-size: 12px;
  margin-top: 20px;
}

/* Product Details */
.product-details {
  margin-top: 45px;
  border-top: 1px solid #e5e5e5;
}

.product-details details {
  border-bottom: 1px solid #e5e5e5;
  padding: 20px 0;
}

.product-details summary {
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
}

.product-details details p {
  color: #777777;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 15px;
}

/* Mobile Product Page */
@media (max-width: 768px) {
  .product-page {
    padding: 25px 4% 60px;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-main-image {
    aspect-ratio: 4 / 4;
  }

  .size-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================================
   SEARCH PANEL
   =================================== */

.search-panel {
  background: #ffffff;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  position: absolute;
  left: 0;
  right: 0;
  z-index: 900;
  display: none;
}

.search-panel.active {
  display: block;
}

.search-panel-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 6% 40px;
}

.search-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.search-top h2 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
}

.search-close {
  background: transparent;
  border: none;
  color: #202020;
  font-size: 30px;
  cursor: pointer;
}

.search-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.search-input-wrap {
  display: flex;
  border: 1px solid #dddddd;
}

.search-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 17px;
  font-size: 14px;
  background: white;
}

.search-input-wrap button {
  background: #202020;
  color: white;
  border: none;
  padding: 0 25px;
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
}

.search-results {
  margin-top: 25px;
}

.search-hint {
  font-size: 12px;
  color: #888888;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #eeeeee;
}

.search-result-image {
  width: 75px;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 8px;
  letter-spacing: 1px;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-info h3 {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.search-result-info p {
  font-size: 12px;
  color: #777777;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.search-result-arrow {
  font-size: 20px;
}

@media (max-width: 600px) {
  .search-panel-inner {
    padding: 25px 5%;
  }

  .search-input-wrap button {
    padding: 0 12px;
  }

  .search-result-image {
    width: 60px;
  }
}

/* ===================================
   FINAL WEBSITE IMPROVEMENTS
   =================================== */

/* Keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #202020;
  outline-offset: 3px;
}

/* ===================================
   END OF AVALLORA STYLESHEET
   =================================== */
