@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mr+De+Haviland&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Tapestry&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Galada&display=swap');
/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/
:root {
  --primary: #FF4B2B;
  --primary-hover: #FF4B2B;
  --smokey-black: hsl(0, 0%, 7%);
  --spanish-gray: hsl(0, 0%, 60%);
  --granite-gray: hsl(0, 0%, 40%);
  --light-gray: hsl(0, 0%, 80%);
  --black_10: hsla(0, 0%, 0%, 0.1);
  --black_25: hsla(0, 0%, 0%, 0.25);
  --black_50: hsla(0, 0%, 0%, 0.4);
  --black_70: hsla(0, 0%, 0%, 0.7);
  --cultured: hsl(220, 16%, 96%);
  --manatee: hsl(218, 11%, 65%);
  --black: hsl(0, 0%, 0%);
  --white: hsl(0, 0%, 100%);
  --ff-heading: 'Montserrat', sans-serif;
  --ff-body: 'Roboto', sans-serif;
  --fs-1: 5rem;
  --fs-2: 2.8rem;
  --fs-3: 2rem;
  --fs-4: 1.8rem;
  --fs-5: 1.4rem;
  --fs-6: 1.2rem;
  --fw-700: 700;
  --fw-600: 600;
  --fw-500: 500;
  --section-padding: 50px;
  --shadow: 0 0 2px hsla(0, 0%, 0%, 0.2);
  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
li { list-style: none; }
a, img, span, input, button, ion-icon { display: block; }
a { color: inherit; text-decoration: none; }
img { height: auto; }
input, button { background: none; border: none; font: inherit; }
input { width: 100%; }
button { cursor: pointer; }
ion-icon { pointer-events: none; }
address { font-style: normal; }
html { font-family: var(--ff-body); font-size: 10px; scroll-behavior: smooth; }
body { background-color: var(--white); color: var(--black); font-size: 1.6rem; line-height: 1.7; }
body.active { overflow: hidden; }
:focus-visible { outline-offset: 4px; }
::placeholder { color: var(--manatee); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background-color: #f1f1f1; }
::-webkit-scrollbar-thumb { background-color: var(--primary); }
::-webkit-scrollbar-thumb:hover { background-color: var(--primary-hover); }

* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #f1f1f1;
}

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/
.container { padding-inline: 15px; }
.social-wrapper { display: flex; align-items: center; }
.social-list { display: flex; gap: 30px; }
.social-link { transition: var(--transition-1); }
.social-link:is(:hover, :focus) { color: var(--primary); }
.section { padding-block: var(--section-padding); }
.img-holder { aspect-ratio: var(--width) / var(--height); background-color: var(--light-gray); overflow: hidden; }
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.h2, .h3 { color: var(--smokey-black); font-family: var(--ff-heading); font-weight: var(--fw-600); line-height: 1.4; }
.h2 { font-size: var(--fs-2); }
.h3 { font-size: var(--fs-3); }
.grid-list { display: grid; gap: 35px; }
.has-before { position: relative; z-index: 1; }
.has-before::before { content: ""; position: absolute; }

/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/
.header {
  position: absolute; top: 0; left: 0; width: 100%;
  background-color: var(--primary); padding-block: 15px; z-index: 4;
}
.header.active {
  position: fixed; transform: translateY(-100%);
  box-shadow: var(--shadow); animation: slideIn 0.5s ease forwards;
}
@keyframes slideIn {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}
.header .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo-img { max-width: 120px; height: auto; display: block; }
.header-action { display: flex; gap: 15px; }
.header-action-btn { position: relative; font-size: 24px; transition: var(--transition-1); }
.header-action-btn:is(:hover, :focus) { color: var(--white); }
.header-action-btn .btn-badge {
  background-color: var(--black); color: var(--white); font-size: var(--fs-6);
  font-weight: var(--fw-500); position: absolute; bottom: -10px; right: -10px;
  padding-inline: 6px; border-radius: 50%;
}

/*-----------------------------------*\
  #SIDEBAR
\*-----------------------------------*/
.sidebar {
  position: fixed; top: 0; right: -420px; max-width: 420px; width: 100%; height: 100%;
  background-color: var(--white); padding: 40px; padding-block-end: 100px;
  overflow-y: auto; z-index: 5; visibility: hidden; transition: 0.25s var(--cubic-in);
}
.sidebar.active { transform: translateX(-420px); visibility: visible; transition: 0.5s var(--cubic-out); }
.nav-close-btn { font-size: 30px; }
.sidebar .wrapper { display: grid; grid-template-columns: 1fr 1fr; margin-block: 40px 75px; }
.sidebar-list-title, .contact-list-title, .social-list-title { color: var(--smokey-black); font-weight: var(--fw-500); }
.sidebar-list-title { margin-block-end: 15px; }
.sidebar-link { color: var(--spanish-gray); margin-block-start: 6px; transition: var(--transition-1); }
.sidebar-link:is(:hover, :focus) { color: var(--primary); }
.navbar { margin-block-end: 60px; }
.navbar-item:not(:last-child) { margin-block-end: 15px; }
.navbar-link { font-weight: var(--fw-500); transition: var(--transition-1); }
.navbar-link:is(:hover, :focus), .sidebar :is(.address, .contact-item) { color: var(--granite-gray); }
.sidebar .address { margin-block-start: 20px; }
.sidebar .social-wrapper { justify-content: space-between; margin-block-start: 50px; }
.overlay {
  position: fixed; inset: 0; background-color: var(--black_70);
  z-index: 4; opacity: 0; pointer-events: none; transition: var(--transition-1);
}
.overlay.active { opacity: 1; pointer-events: all; }

/*-----------------------------------*\
  #HERO (headline + search only)
\*-----------------------------------*/
.hero {
  padding-block-start: calc(var(--section-padding) + 40px); padding-block-end: 0;
  background-color: #D93B1A;
}
.hero-content { text-align: center; padding: 20px; }
.hero-heading { font-family: var(--ff-heading); font-size: 6rem; font-weight: 900; color: var(--smokey-black); line-height: 0.5; text-transform: uppercase; letter-spacing: -0.5px; margin-top: 0;}
.hero-text { font-family: 'Tapestry', cursive; font-size: 3.2rem; font-weight: 500; color: rgba(255, 255, 255, 0.9); letter-spacing: 1px; margin-bottom: 0;}
.hero-search-wrapper { margin-top: 30px; display: flex; justify-content: center; }
.hero-search {
  display: flex; align-items: center; width: 100%; max-width: 700px;
  background-color: var(--white); border-radius: 10px; overflow: visible; padding: 4px;
  transition: border-color 0.3s;
}
.hero-search-icon {
  display: flex; align-items: center; justify-content: center;
  padding-inline: 15px; font-size: 24px; color: var(--spanish-gray);
  background-color: transparent; border: none;
}
.hero-search-input {
  flex: 1; padding: 8px 0; font-size: 1.6rem; background: none;
  border: none; outline: none; color: var(--black); font-family: var(--ff-body);
}
.hero-search-input::placeholder { color: var(--manatee); }
.hero-search-btn {
  display: flex; align-items: center; gap: 8px; padding: 6px 20px;
  background-color: var(--primary); color: var(--white); font-size: 1.6rem;
  font-weight: var(--fw-600); font-family: var(--ff-body); border: none;
  border-radius: 10px; cursor: pointer; transition: background-color 0.3s;
  white-space: nowrap;
}
.hero-search-btn:hover { background-color: var(--primary-hover); }
.hero-search-btn span { display: inline; }

/*-----------------------------------*\
  #CATEGORIES SECTION (separate)
\*-----------------------------------*/
.categories {padding-block-start: 10px; padding-block-end: 0}
.hero-categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.hero-cat-card {
  text-decoration: none; display: block; transition: transform 0.3s ease;
}
.hero-cat-card:hover { transform: translateY(-5px); }
.hero-cat-img-wrapper {
  border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9;
  background-color: var(--light-gray);
}
.hero-cat-img-wrapper img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-cat-card:hover .hero-cat-img-wrapper img { transform: scale(1.05); }
.hero-cat-name {
  display: block; text-align: center; margin-top: 12px;
  font-family: var(--ff-heading); font-size: 1.6rem;
  font-weight: var(--fw-600); color: var(--smokey-black);
  transition: color 0.3s ease;
}
.hero-cat-card:hover .hero-cat-name { color: var(--primary); }

/*-----------------------------------*\
  #HEADER SEARCH (appears on scroll)
\*-----------------------------------*/
.header-search-wrapper {
  flex: 1; max-width: 0; opacity: 0; overflow: hidden;
  transition: max-width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.3s ease-in-out, margin 0.3s ease;
  margin-inline: 0;
}
.header.active .header-search-wrapper {
  max-width: 500px; opacity: 1; margin-inline: 20px;
}
.header-search {
  display: flex; align-items: center; background-color: var(--white);
  border-radius: 10px; overflow: visible; padding: 4px; transition: border-color 0.3s;
}
.header-search:focus-within { border-color: var(--primary); }
.header-search-icon {
  display: flex; align-items: center; justify-content: center;
  padding-inline: 12px; font-size: 20px; color: var(--spanish-gray);
  background-color: transparent; border: none;
}
.header-search-input {
  flex: 1; padding: 10px 0; font-size: 1.5rem; background: none;
  border: none; outline: none; color: var(--black); font-family: var(--ff-body);
}
.header-search-input::placeholder { color: var(--manatee); }
.header-search-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 20px;
  background-color: var(--primary); color: var(--white); font-size: 1.5rem;
  font-weight: var(--fw-600); font-family: var(--ff-body); border: none;
  border-radius: 10px; cursor: pointer; transition: background-color 0.3s;
  white-space: nowrap;
}
.header-search-btn:hover { background-color: var(--primary-hover); }

/*-----------------------------------*\
  #ABOUT CAROUSEL & FEATURE CARDS
\*-----------------------------------*/
.about{padding-block-start: 10px; padding-block-end: 0}
.about-carousel {
  position: relative; max-width: 100%; margin-bottom: 0;
  border-radius: 20px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.carousel-container {
  position: relative; width: 100%; aspect-ratio: 65 / 24;
}
.carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.8s ease-in-out; visibility: hidden;
}
.carousel-slide.active { opacity: 1; visibility: visible; }
.carousel-img { width: 100%; height: 100%; object-fit: cover; }
.carousel-dots {
  position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 12px; z-index: 2;
}
.dot {
  width: 12px; height: 12px; background-color: rgba(255,255,255,0.5);
  border-radius: 50%; cursor: pointer; transition: all 0.3s ease;
}
.dot.active { background-color: var(--primary); width: 24px; border-radius: 6px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 20px; }
.feature-card {
  background: var(--white); border-radius: 10px; padding: 12px 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1); }
.feature-content { display: flex; align-items: center; justify-content: center; gap: 12px; }
.feature-img { width: 40px; height: 40px; object-fit: contain; display: block;}
.feature-title {
  font-family: var(--ff-heading); font-size: 1.5rem; font-weight: var(--fw-500);
  color: var(--smokey-black); margin: 0; line-height: 1.2;
}

/*-----------------------------------*\
  #PRODUCT
\*-----------------------------------*/
.product{padding-block-start: 10px; padding-block-end: 0}
.product .section-title { text-align: center; }
.filter-btn-list {
  margin-block: 20px 50px; display: flex; flex-wrap: wrap; justify-content: center;
}
.filter-btn-item { position: relative; display: flex; }
.filter-btn-item:not(:last-child)::after { content: "|"; margin-inline: 15px; }
.filter-btn { transition: var(--transition-1); font-weight: var(--fw-500); }
.filter-btn.active { color: var(--primary); }
.product-card { text-align: center; }
.product-card .card-banner::before {
  inset: 0; background-color: var(--black_10); opacity: 0; transition: var(--transition-1);
}
.product-card .card-banner:is(:hover, :focus-within)::before { opacity: 1; }
.product-card .card-action-list {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, 100%);
  display: flex; gap: 15px; opacity: 0; transition: var(--transition-2);
}
.product-card .card-banner:is(:hover, :focus-within) .card-action-list {
  transform: translate(-50%, -50%); opacity: 1;
}
.product-card .card-action-btn {
  background-color: var(--white); font-size: 22px; padding: 12px;
  border-radius: 50%; transition: var(--transition-1);
}
.product-card .card-action-btn:is(:hover, :focus) { color: var(--primary); }
.product-card .badge-list { position: absolute; top: 15px; left: 15px; }
.product-card .badge {
  color: var(--white); font-size: var(--fs-5); font-weight: var(--fw-500);
  width: 45px; height: 45px; border-radius: 50%; line-height: 45px;
  margin-block-end: 10px;
}
.product-card .badge.orange { background-color: var(--primary); }
.product-card .badge.cyan { background-color: #4ECDC4; }
.product-card .card-badge {
  position: absolute; top: 15px; right: 15px; background-color: var(--black);
  color: var(--white); font-weight: var(--fw-500); padding-inline: 15px;
}
.product-card .h3 { font-size: unset; }
.product-card .card-title {
  color: var(--smokey-black); font-weight: var(--fw-500);
  margin-block: 18px 5px; transition: var(--transition-1);
}
.product-card .card-title:is(:hover, :focus) { color: var(--primary); }
.product-card .card-price {
  display: flex; justify-content: center; gap: 15px;
  color: var(--granite-gray); font-size: var(--fs-4);
}
.product-card .card-price .del { color: var(--spanish-gray); }
.product-list > * { display: none; }
.product-list[data-filter="all"] > *,
.product-list[data-filter="fashion"] > .fashion,
.product-list[data-filter="stationery"] > .stationery {
  display: block; animation: fadeUp 1s ease forwards;
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/*-----------------------------------*\
  #BRANDS
\*-----------------------------------*/
.brand {padding-block-start: 10px; padding-block-end: 10px}
.brand .title-wrapper {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 10px 50px; margin-block-end: 50px;
}
.brand .btn-link {
  display: flex; align-items: center; gap: 10px; font-weight: var(--fw-500);
  transition: var(--transition-1); color: var(--primary);
}
.brand .btn-link:is(:hover, :focus) { opacity: 0.8; }
.brand-card {
  position: relative; border-radius: 8px; overflow: hidden;
  background-color: var(--white); box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brand-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.brand-card .card-banner { position: relative; aspect-ratio: var(--width) / var(--height); }
.brand-card .card-banner img { object-fit: cover; width: 100%; height: 100%; }
.brand-card .brand-card-btn {
  position: absolute; bottom: 20px; right: 20px; background-color: var(--primary);
  color: var(--white); display: flex; align-items: center; gap: 8px;
  padding: 8px 18px; font-size: var(--fs-6); font-weight: var(--fw-500);
  border: none; border-radius: 4px; cursor: pointer; opacity: 0;
  transform: translateY(10px); transition: all 0.3s ease;
}
.brand-card:hover .brand-card-btn,
.brand-card:focus-within .brand-card-btn { opacity: 1; transform: translateY(0); }
.brand-card-btn:hover { background: var(--primary-hover); }
.brand-card .card-content { padding: 20px; text-align: center; }
.brand-card .h3 { margin-bottom: 8px; font-family: var(--ff-heading); }
.brand-card .card-text { color: var(--granite-gray); font-size: var(--fs-5); }

/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/
.footer { background-color: #1a1a1a; color: #ffffff; }
.footer-top { display: grid; gap: 30px; padding-block-end: 40px; }
.footer .logo { font-family: 'Tapestry', cursive; font-size: 2.2rem; font-weight: 700; color: var(--white); }
.footer .logo span { color: var(--primary); }
.footer-list-item { display: flex; align-items: center; gap: 10px; }
.footer-link { padding-block: 4px; transition: var(--transition-1); }
.footer-link:is(:hover, :focus) { color: var(--primary); }
.footer-brand .social-list { margin-block-start: 30px; }
.footer-list-title {
  color: var(--primary); font-size: var(--fs-4);
  font-weight: var(--fw-500); margin-block-end: 15px;
}
.footer-form { position: relative; }
.footer .email-field {
  padding-block: 10px; padding-inline-end: 35px;
  border-block-end: 1px solid var(--white); color: #ffffff; outline: none;
}
.footer .email-field:focus { border-color: var(--primary); }
.footer-form-btn {
  position: absolute; top: 0; right: 0; bottom: 0;
  font-size: 20px; color: var(--granite-gray);
}
.footer-list .wrapper { display: flex; gap: 20px; margin-block-start: 20px; }
.copyright {
  text-align: center; padding-block: 20px; margin-top: 2.2rem;
  border-top: 1px solid #333; font-size: 1.5rem; color: #777;
}
#info-modal-body a[href^="mailto:"] {
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  vertical-align: middle;
}

#info-modal-body a[href^="mailto:"]:hover {
  color: var(--primary-hover);
}

/*-----------------------------------*\
  #MODAL (base + product detail enhancements)
\*-----------------------------------*/
.modal {
  position: fixed; inset: 0; display: flex; align-items: center;
  justify-content: center; background-color: rgba(0,0,0,0.7);
  z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal.active { opacity: 1; pointer-events: all; }
.modal-overlay { position: absolute; inset: 0; }
.modal-content {
  position: relative; background: #fff; padding: 30px; border-radius: 8px;
  max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto;
}
.modal-close-btn { position: absolute; top: 10px; right: 15px; font-size: 28px; background: none; border: none; cursor: pointer; }

/* Product Detail Modal – wide side‑by‑side layout */
#product-detail-modal .modal-content {
  max-width: 850px; width: 90%; padding: 25px;
}
#product-detail-modal .product-detail {
  display: flex; gap: 30px; flex-wrap: nowrap; align-items: flex-start;
}
#product-detail-modal .detail-img {
  flex: 0 0 280px; max-width: 280px;
}
#product-detail-modal .detail-img img {
  width: 100%; height: auto; border-radius: 12px; display: block;
}
#product-detail-modal .detail-info {
  flex: 1; min-width: 0;
}

/* Size Chart Table styling – ultra compact */
#size-chart-container h4 {
    font-family: var(--ff-heading);
    color: var(--smokey-black);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}
#size-chart-table table {
    width: 100%;
    border-collapse: collapse;
}
#size-chart-table th {
    background: #f1f5f9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.7rem;
    color: #4b5563;
    padding: 2px 4px;
}
#size-chart-table td {
    font-size: 0.75rem;
    padding: 2px 4px;
}
#size-chart-table th,
#size-chart-table td {
    border: 1px solid #e5e7eb;
    text-align: center;
    line-height: 1.2;
}
#size-chart-table tr:nth-child(even) {
    background: #fafafa;
}

/* Size, quantity, buttons – compact */
.size-wrapper {
    margin-top: 8px;
    margin-bottom: 8px;
}
.size-wrapper label {
    font-weight: 500;
    margin-right: 8px;
    font-size: 1.2rem;
}
.product-size-select {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1.2rem;
    background: white;
}

.quantity-wrapper {
    margin-bottom: 10px;
}
.quantity-wrapper label {
    font-weight: 500;
    margin-right: 10px;
    font-size: 1.2rem;
}
.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 2px 10px;
}
.quantity-control .qty-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quantity-control .qty-btn:hover {
    background: #f0f0f0;
}
.modal-quantity {
    font-size: 1.3rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.modal-buttons .btn { padding: 6px 14px; font-size: 1.2rem;  border-radius: 8px; }
.btn-secondary { background: #2c3e2f; color: white; border-radius: 8px; }
.btn-secondary:hover { background: #1e2a20; }

/* Other modal content – tighter spacing */
.detail-brand { font-size: 1.1rem; margin-bottom: 3px; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.detail-info h2 { font-size: 1.8rem; margin-bottom: 6px; }
.detail-category { font-size: 1.2rem; margin-bottom: 6px; }
.detail-price { font-size: 1.6rem; margin-bottom: 10px; font-weight: 700; color: var(--primary); }
.detail-description { font-size: 1.2rem; line-height: 1.5; margin-bottom: 10px; max-height: 60px; overflow-y: auto; }
.btn { display: inline-block; padding: 6px 16px; background: #000; color: #fff; border: none; font-weight: 500; cursor: pointer; transition: background 0.3s; font-size: 1.2rem; border-radius: 8px; }
.btn-primary { background: var(--primary); border-radius: 8px; }
.btn-primary:hover { background: var(--primary-hover); }

/*-----------------------------------*\
  #CHECKOUT MODAL – TWO‑COLUMN LAYOUT (NEW)
\*-----------------------------------*/

.checkout-modal-content { max-width: 900px; width: 90%; padding: 10px; }
.checkout-title { margin-bottom: 25px; text-align: center; font-family: var(--ff-heading); font-size: 2rem; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.checkout-left { background: #f9f9f9; border-radius: 10px; padding: 15px; max-height: 300px; overflow-y: auto; }
.checkout-right { background: #fff; }
.checkout-total { margin-top: 20px; padding-top: 15px; border-top: 1px solid #ddd; text-align: right; font-size: 1.6rem; }
.delivery-note { font-size: 1.2rem; color: #666; margin-top: 5px; margin-bottom: 0; }
.place-order-btn { width: 100%; margin-top: 25px; padding: 14px; font-size: 1.6rem; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;}

/* District dropdown styling */
#customer_district { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; font-size: 1.2rem; background: white; }
.checkout-total div { margin-bottom: 5px; }
.grand-total { margin-top: 10px; padding-top: 10px; border-top: 1px solid #ddd; font-size: 1.8rem; color: var(--primary); }

#checkout-form input, #checkout-form textarea {
  width: 100%; padding: 12px; margin-bottom: 15px;
  border: 1px solid #ccc; border-radius: 4px; font-size: 1rem;
}

.empty-cart-message { text-align: center; color: #888; padding: 20px; }

.info-modal-content { max-width: 600px; max-height: 80vh; overflow-y: auto; }
#info-modal-title {
  font-family: var(--ff-heading); font-size: 2.4rem;
  margin-bottom: 20px; color: var(--primary);
}
#info-modal-body { font-size: 1.6rem; line-height: 1.6; color: var(--granite-gray); }
#info-modal-body p { margin-bottom: 15px; }
#info-modal-body ul { margin-left: 20px; margin-bottom: 15px; }

/*-----------------------------------*\
  #BRAND PAGE (Clean & Responsive)
\*-----------------------------------*/
.brand-page {
  padding-block: 30px 60px;
  background-color: var(--white);
  overflow-x: hidden;          /* prevents horizontal scroll from full‑width banner */
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-size: 1.6rem;
  font-weight: var(--fw-500);
  color: var(--primary);
  cursor: pointer;
  margin-block-end: 20px;
  transition: var(--transition-1);
}
.back-home-btn:hover {
  opacity: 0.8;
}

/* Brand cover – desktop full‑width / mobile contained */
.brand-cover {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-block-end: -50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.brand-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Desktop (≥769px): edge‑to‑edge, 70vh height, no border radius */
@media (min-width: 769px) {
  .brand-cover {
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 50vh;
    border-radius: 0;
    margin-block-end: -40px;
  }
  /* Ensure container doesn't restrict the banner */
  .brand-page .container {
    max-width: 100%;
    padding: 0;
  }
  /* Keep other content inside a padded container */
  .brand-page .container > :not(.brand-cover) {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 15px;
  }
}

/* Mobile (≤768px): normal width, rounded corners, smaller height */
@media (max-width: 768px) {
  .brand-cover {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 150px;
    border-radius: 0;          /* full edge‑to‑edge, no rounded corners */
    margin-block-end: -40px;
  }
  /* Prevent horizontal scrollbar caused by the full‑width banner */

}

@media (max-width: 480px) {
  .brand-cover {
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 150px;
    border-radius: 0;
    margin-block-end: -20px;
    margin-block-start: -20px;
  }
}

/* Info rectangle (overlaps the cover) */
.brand-info-rectangle {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 20px 30px;
  margin-inline: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.brand-name-wrapper {
  flex: 1;
}

.brand-name {
  font-family: var(--ff-heading);
  font-size: 2.8rem;
  font-weight: var(--fw-700);
  color: var(--primary);
  margin: 0;
}

.brand-logo-wrapper {
  flex-shrink: 0;
}

.brand-logo {
  max-width: 100px;
  max-height: 60px;
  object-fit: contain;
  border: 2px solid var(--primary);
  border-radius: 8px;
}

.brand-page-subtitle {
  font-size: 2rem;
  font-weight: var(--fw-600);
  color: var(--primary);
  margin-block: 40px 20px;
  letter-spacing: 1px;
  border-left: 4px solid var(--primary);
  padding-left: 15px;
}

/* Mobile adjustments for info rectangle & text */
@media (max-width: 768px) {
  .brand-info-rectangle {
    padding: 15px 20px;
    margin-inline: 15px;
  }
  .brand-name {
    font-size: 2rem;
  }
  .brand-logo {
    max-width: 70px;
    max-height: 45px;
  }
  .brand-page-subtitle {
    font-size: 1.6rem;
    margin-block: 30px 15px;
  }
}

@media (max-width: 480px) {
  .brand-info-rectangle {
    padding: 12px 15px;
    margin-inline: 10px;
  }
  .brand-name {
    font-size: 1.6rem;
  }
  .brand-logo {
    max-width: 55px;
    max-height: 35px;
  }
  .brand-page-subtitle {
    font-size: 1.4rem;
  }
}

/*-----------------------------------*\
  #BUTTON SPINNER
\*-----------------------------------*/
.spinner {
    display: inline-block;
    font-size: 1.1em;
    margin-left: 4px;
    transition: transform 0.2s ease;
}
.spinner.hidden {
    display: none;
}
.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-text.hidden {
    display: none;
}
button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transition: opacity 0.2s ease;
}

/* Subtle pulse effect on the spinner while loading */
button:disabled .spinner {
    animation: pulse-icon 1.2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/*-----------------------------------*\
  #TOAST NOTIFICATION
\*-----------------------------------*/
#toast-message {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    color: var(--black);
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary);
    transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    pointer-events: none;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
}
#toast-message.show {
    transform: translateX(-50%) translateY(0);
    visibility: visible;
    opacity: 1;
}
#toast-message.success {
    border-left-color: green;
}
#toast-message.error {
    border-left-color: red;
}

/* Mobile: allow multiline, smaller font, full width (with margins) */
@media (max-width: 576px) {
    #toast-message {
        white-space: normal;
        max-width: calc(100% - 32px);
        width: auto;
        text-align: center;
        padding: 8px 16px;
        font-size: 1.2rem;
        border-radius: 5px;
        bottom: 20px;
    }
}

/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/
@media (min-width: 575px) {
  .container { max-width: 575px; width: 100%; margin-inline: auto; }
  .grid-list { grid-template-columns: 1fr 1fr; column-gap: 25px; }
  .grid-list > li:last-child {
    grid-column: span 2; max-width: calc(50% - 12.5px);
    width: 100%; margin-inline: auto;
  }
  .header .container { gap: 35px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .container { max-width: 768px; }
  .header-action { gap: 35px; }
  .product .title-wrapper {
    display: flex; justify-content: space-between; align-items: center;
    margin-block-end: 80px;
  }
  .filter-btn-list { margin: 0; }
}
@media (min-width: 992px) {
  .container { max-width: 992px; }
  .grid-list > li:last-child { all: unset; }
  .grid-list { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 0.75fr 0.6fr 1fr; padding-block-end: 60px; }
}
@media (min-width: 1200px) {
  :root { --fs-2: 3.6rem; }
  .container { max-width: 1200px; }
  .product-list { grid-template-columns: repeat(5, 1fr); }
}

/* Responsive fixes for header search and hero */
@media (max-width: 991px) {
  .header.active .header-search-wrapper { max-width: 320px; margin-inline: 15px; }
  .header-search { padding: 3px; }
  .header-search-btn { padding: 6px 14px; }
  .header-search-btn span { font-size: 1.4rem; }
}
@media (max-width: 768px) {
  .header .container { gap: 10px; flex-wrap: nowrap; }
  .logo-img { max-width: 80px; }
  .header-action { gap: 12px; }
  .header.active .header-search-wrapper { max-width: 260px; margin-inline: 8px; }
  .header-search { padding: 2px; }
  .header-search-icon { padding-inline: 8px; font-size: 18px; }
  .header-search-input { font-size: 1.3rem; padding: 6px 0; }
  .header-search-btn { padding: 5px 12px; }
  .header-search-btn span { font-size: 1.3rem; }
  .hero-heading { font-size: 3rem; }
  .hero-text { font-size: 1.6rem; }
  .hero-search { flex-wrap: wrap; border-radius: 10px; padding: 8px; }
  .hero-search-input { min-width: 120px; padding: 8px 0; }
  .hero-search-btn { padding: 6px 16px; }
  #product-detail-modal .product-detail {
    flex-direction: column;
    align-items: center;        /* centers the image horizontally */
    gap: 15px;
  }
  #product-detail-modal .detail-img {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;        /* ensures image is centered */
  }
  #product-detail-modal .detail-img img {
    max-height: 240px;         /* slightly smaller on mobile */
    width: auto;
    margin: 0 auto;            /* centers the image */
    display: block;
  }
  .detail-description {
    max-height: 50px;
  }
  /* Smaller buttons */
  .modal-buttons {
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }
  .modal-buttons .btn {
    width: 100%;
    max-width: 280px;          /* buttons don't stretch too wide */
    padding: 6px 12px;
    font-size: 1.1rem;
    text-align: center;
    justify-content: center;
  }
}
@media (max-width: 576px) {
  .header .container { gap: 6px; }
  .logo-img { max-width: 80px; }
  .header-action { gap: 8px; }
  .header-action-btn { font-size: 20px; }
  .header.active .header-search-wrapper { max-width: 180px; margin-inline: 4px; }
  .header-search { padding: 2px; }
  .header-search-icon { padding-inline: 5px; font-size: 16px; }
  .header-search-input { font-size: 1.1rem; padding: 5px 0; }
  .header-search-btn { padding: 4px 8px; }
  .header-search-btn span { font-size: 1.1rem; }
  .hero-heading { font-size: 2.5rem; }
  .hero-text { font-size: 1.3rem; }
  .hero-categories { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-search { width: 100%; max-width: 100%; padding: 2px; align-items: stretch; gap: 6px; border-radius: 10px; }
  .hero-search-icon { display: flex; align-items: center; justify-content: center; padding-inline: 10px; font-size: 18px; }
  .hero-search-input { padding: 6px 0; font-size: 1.3rem; border-radius: 30px; }
  .hero-search-btn { justify-content: center; border-radius: 10px; padding: 4px 12px; font-size: 1.2rem; white-space: nowrap; }
  .hero-cat-name { font-size: 1rem; font-weight: var(--fw-600); line-height: 1.2; }
  .product-list { grid-template-columns: repeat(2, 1fr); font-size: 1.2rem; }
  .product-card .card-price { font-size: 1.2rem; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 15px; }
  .feature-img { width: 32px; height: 32px; margin-bottom: 4px; }
  .feature-title { font-size: 1rem; }
  .feature-content { flex-direction: column; text-align: center; gap: 8px; }

  #product-detail-modal .modal-content {
    padding: 15px;
    width: 95%;
  }
  #product-detail-modal .product-detail {
    gap: 15px;
  }
  #product-detail-modal .detail-img {
    flex: 0 0 100%;
    max-width: 100%;
  }
  #product-detail-modal .detail-img img {
    max-height: 200px;
    width: auto;
    margin: 0 auto;
  }
  #product-detail-modal .detail-info h2 {
    font-size: 1.8rem;
  }
  #product-detail-modal .detail-brand,
  #product-detail-modal .detail-category,
  #product-detail-modal .detail-price {
    font-size: 1.4rem;
  }
  #product-detail-modal .detail-description {
    font-size: 1.3rem;
  }
  .quantity-control .qty-btn {
    width: 24px;
    height: 24px;
    font-size: 1.4rem;
  }
  .modal-quantity {
    font-size: 1.4rem;
  }
  .modal-buttons {
    flex-direction: row;
    gap: 12px;
    margin-top: 10px;
  }
  .modal-buttons .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 1.4rem;
    text-align: center;
  }

  .checkout-modal-content {
    padding: 15px;
    width: 95%;
  }
  .checkout-grid {
    grid-template-rows: 2fr;
    gap: 20px;
  }
  .checkout-left {
    max-height: 300px;
    padding: 10px;
  }
  .checkout-item {
    font-size: 1.2rem;
  }
  .checkout-item .qty-btn {
    width: 26px;
    height: 26px;
    font-size: 1.4rem;
  }
  .checkout-total {
    font-size: 1.4rem;
  }
  #checkout-form input,
  #checkout-form textarea {
    padding: 8px;
    font-size: 1.3rem;
  }

  .checkout-total { font-size: 1.2rem; }
  .grand-total { font-size: 1.5rem; }

  .place-order-btn {
    padding: 10px;
    font-size: 1.4rem;
  }
  .empty-cart-message {
    font-size: 1.3rem;
  }

  .brand-card .h3 { font-size: 1.4rem; }
  .brand-card .card-text { font-size: 1rem; }
  .brand-list { grid-template-columns: repeat(2, 1fr); gap: 25px; }
  .brand-product-list { grid-template-columns: repeat(2, 1fr); gap: 25px; font-size: 1.2rem; }

  .carousel-dots { bottom: 8px; gap: 8px; }
  .dot { width: 8px; height: 8px; }
  .dot.active { width: 20px; }
}
@media (max-width: 375px) {
  .header.active .header-search-wrapper { max-width: 140px; }
  .header-search-btn span { display: none; }
  .header-search-btn { padding: 4px 8px; font-size: 1rem; }
  .logo-img { max-width: 70px; }
  .hero-heading { font-size: 1.8rem; }
}