/*-----------------------------------*\
  #style.css
\*-----------------------------------*/

/**
 * copyright 2022 codewithsadee
 */





/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors
   */

  --bright-yellow-crayola: #FEBA59;
  --portland-orange: #6db96d;
  --battleship-gray: hsl(0, 0%, 53%);
  --silver-chalice: hsl(0, 0%, 70%);
  --spanish-gray: hsl(0, 0%, 60%);
  --sonic-silver: hsl(208, 7%, 46%);
  --raisin-black: hsl(228, 6%, 17%);
  --eerie-black: hsl(210, 3%, 13%);
  --bittersweet: hsl(9, 96%, 69%);
  --light-gray: hsl(0, 0%, 80%);
  --platinum: hsl(0, 0%, 91%);
  --amber: hsl(45, 100%, 51%);
  --white: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);
  --onyx: hsl(220, 2%, 24%);
  --theme-accent: #6db96d;

  /**
   * typography
   */

  --ff-bangers: 'Bangers', cursive;
  --ff-carter_one: 'Carter One', cursive;
  --ff-nunito_sans: 'Nunito Sans', sans-serif;

  --fs-1: 6.5rem;
  --fs-2: 3.2rem;
  --fs-3: 2.4rem;
  --fs-4: 2rem;
  --fs-5: 1.8rem;
  --fs-6: 1.5rem;
  --fs-7: 1.4rem;
  --fs-8: 1rem;

  --fw-400: 400;
  --fw-700: 700;

  /**
   * spacing
   */

  --section-padding: 40px;

  /**
   * shadow
   */

  --shadow-1: 0 8px 16px hsla(0, 0%, 0%, 0.15);
  --shadow-2: 0 8px 8px hsla(0, 0%, 0%, 0.2);

  /**
   * radius
   */

  --radius-4: 4px;
  --radius-10: 10px;

  /**
   * transition
   */

  --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,
button,
ion-icon { display: block; }

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

img { height: auto; }

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

ion-icon { pointer-events: none; }

address { font-style: normal; }

html {
  font-family: var(--ff-nunito_sans);
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--black);
  font-size: 1.6rem;
  line-height: 1.5;
}

:focus-visible { outline-offset: 4px; }

::-webkit-scrollbar { width: 10px; }

::-webkit-scrollbar-track { background-color: hsl(0, 0%, 98%); }

::-webkit-scrollbar-thumb { background-color: hsl(0, 0%, 80%); }

::-webkit-scrollbar-thumb:hover { background-color: hsl(0, 0%, 70%); }





/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container { padding-inline: 15px; }

.section { padding-block: var(--section-padding); }



.has-bg-image {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.h1,
.h2,
.h3 { line-height: 1.1; }

.h1 {
  color: var(--white);
  font-family: var(--ff-bangers);
  font-size: var(--fs-1);
  font-weight: var(--fw-400);
  letter-spacing: 1px;
}

.h2,
.h3 { color: var(--eerie-black); }

.h2 { font-size: var(--fs-2); }

.h3 { font-size: var(--fs-3); }

.btn {
  background-color: var(--theme-accent);
  color: var(--black);
  max-width: max-content;
  padding: 8px 25px;
  font-weight: var(--fw-700);
  border-radius: 50px;
  transition: var(--transition-1);
}

.btn:is(:hover, :focus) {
  background-color: var(--black);
  color: var(--theme-accent);
}

.section-title {
  text-align: center;
  margin-block-end: 30px;
}

.section-title .span {
  display: inline;
  color: var(--theme-accent);
}

/* Fix hyperlink hovers - only change text color, not background */
.section-title .span {
  display: inline;
  color: var(--theme-accent);
}

.header .btn-badge {
  background-color: var(--theme-accent) !important;
  color: var(--white) !important;
}

.footer-text .link,
.footer-link:is(:hover, :focus) {
  color: var(--theme-accent) !important;
}

.social-link:is(:hover, :focus) {
  background-color: var(--theme-accent) !important;
  color: var(--black) !important;
}

.back-top-btn {
  background-color: var(--theme-accent) !important;
  color: var(--black) !important;
}

.offer-card .btn {
  background-color: var(--theme-accent) !important;
  color: var(--black) !important;
}

.offer-card .btn:is(:hover, :focus) {
  background-color: var(--black);
  color: var(--theme-accent);
}

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--light-gray);
  overflow: hidden;
}

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

.has-scrollbar {
  display: flex;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: inline mandatory;
  padding-block-end: 20px;
  margin-block-end: -20px;
}

.scrollbar-item {
  min-width: 100%;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.has-scrollbar::-webkit-scrollbar { height: 10px; }

.has-scrollbar::-webkit-scrollbar-track {
  outline: 2px solid var(--theme-accent);
  border-radius: var(--radius-10);
}

.has-scrollbar::-webkit-scrollbar-thumb {
  border-radius: var(--radius-10);
  background-color: var(--theme-accent);
  border: 2px solid var(--white);
}

.has-scrollbar::-webkit-scrollbar-button { width: calc(25% - 30px); }

.grid-list {
  display: grid;
  gap: 30px;
}

.w-100 { width: 100%; }


/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.action-btn.user { display: none; }

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding-block: 20px;
  z-index: 1001;
}

.header.active {
  position: fixed;
  box-shadow: var(--shadow-1);
}

/* Index page specific header behavior */
.index-header {
  background-color: transparent !important;
}

.index-header.active {
  background-color: var(--white) !important;
}

/* Contact page specific header behavior: transparent at top, white when scrolled */
.contact-header {
  background-color: transparent !important;
}

.contact-header.active {
  background-color: var(--white) !important;
}

/* Tablet-specific tweaks for index header height/alignment */
@media (min-width: 769px) and (max-width: 991px) {
  .index-header {
    padding-block: 26px; /* add a bit more height to avoid crowding */
  }
  /* Reset any vertical nudges so items center properly */
  .index-header .logo span,
  .index-header .navbar-list,
  .index-header .header-actions,
  .index-header .nav-toggle-btn {
    transform: none !important;
  }
  .index-header .container { align-items: center; }
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.nav-toggle-btn {
  font-size: 30px;
  transition: var(--transition-1);
}

.nav-toggle-btn.active .menu-icon,
.nav-toggle-btn .close-icon { display: none; }

.nav-toggle-btn .menu-icon,
.nav-toggle-btn.active .close-icon { display: block; }

.logo {
  font-family: var(--ff-carter_one);
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

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

/* Responsive logo classes */
.logo-img-desktop {
  display: none;
}

.logo-img-mobile {
  display: block;
}

/* Desktop view - show white logo */
@media (min-width: 992px) {
  .logo-img-desktop {
    display: block;
  }
  
  .logo-img-mobile {
    display: none;
  }
  
  /* When header is active (scrolled), show coloured logo */
  .header.active .logo-img-desktop {
    display: none;
  }
  
  .header.active .logo-img-mobile {
    display: block;
  }
}

/* Mobile and tablet view - show coloured logo */
@media (max-width: 991.99px) {
  .logo-img-desktop {
    display: none;
  }
  
  .logo-img-mobile {
    display: block;
  }
}

.logo span {
  font-family: var(--ff-carter_one);
  font-size: 3rem;
  text-align: center;
  line-height: 1;
  transform: translateY(12px);
}

@media (max-width: 768px) {
  .logo {
    font-size: 1.8rem;
    gap: 8px;
    justify-content: center;
  }
  
  .logo-img {
    width: 60px;
    height: 60px;
  }
  
  .logo span {
    font-size: 1.8rem;
    text-align: center;
    transform: translateY(6px);
  }
  
  .navbar-list {
    transform: translateY(6px);
    flex-direction: column;
    flex: 1;
  }
  
  .header-actions {
    transform: translateY(1px);
  }
  
  .nav-toggle-btn {
    transform: translateY(3px);
  }
  
  .header {
    padding-block: 15px;
  }
}

/* Tablet view - smaller logo */
@media (min-width: 769px) and (max-width: 991px) {
  .logo-img {
    width: 70px;
    height: 70px;
  }
  
  .logo span {
    transform: translateY(8px);
  }
  
  .navbar-list {
    transform: translateY(8px);
    flex-direction: column;
    flex: 1;
  }
  
  .header-actions {
    transform: translateY(5px);
  }
  
  .nav-toggle-btn {
    transform: translateY(5px);
  }
}

@media (min-width: 992px) {
  .logo-img {
    width: 100px;
    height: 100px;
  }
}

.header-actions {
  display: flex;
  gap: 15px;
  transform: translateY(10px);
}

.header .action-btn {
  position: relative;
  font-size: 22px;
  transition: var(--transition-1);
}

.header .btn-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--portland-orange);
  color: var(--white);
  font-size: var(--fs-8);
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: var(--fw-700);
}

.nav-toggle-btn:is(:hover, :focus),
.header .action-btn:is(:hover, :focus) { 
  transform: scale(1.1); 
  color: var(--theme-accent);
}

.navbar {
  position: fixed;
  top: 85px;
  left: -320px;
  bottom: 0;
  background-color: var(--white);
  max-width: 320px;
  width: 100%;
  padding: 20px 10px;
  box-shadow: var(--shadow-2);
  transition: 0.25s var(--cubic-out);
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 999;
}

/* Responsive navbar positioning */
@media (max-width: 992px) {
  .navbar {
    top: 105px;
    display: flex;
    flex-direction: column;
  }
  
  .navbar-list {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .navbar {
    top: 85px;
    display: flex;
    flex-direction: column;
  }
  
  .navbar-list {
    flex: 1;
  }
}

.navbar.active {
  transform: translateX(320px);
  transition-timing-function: var(--cubic-in);
}

.navbar-link {
  color: var(--eerie-black);
  font-size: var(--fs-6);
  padding: 10px 15px;
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus) {
  color: var(--theme-accent);
}

.navbar-action-btn {
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background-color: var(--sonic-silver);
  color: var(--white);
  font-weight: var(--fw-700);
  text-transform: uppercase;
  text-align: center;
  margin-top: auto;
  border-radius: var(--radius-4);
}





/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero {
  margin-block-start: 85px;
  min-height: 360px;
  background-position: left;
  text-align: center;
  padding-top: 120px;
}

.hero-title .span { font-size: 0.5em; }

@media (max-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
  }
  
  .hero-text {
    font-size: 2rem;
  }
  
  .hero {
    padding-top: 80px;
  }
}

.hero-text {
  color: var(--white);
  margin-block: 15px 25px;
  font-size: 1.8rem;
}

.hero .btn { margin-inline: auto; }

/* Hero section Shop Now button: black with white text, hover to leaf green with black text */
.hero .btn {
  background-color: var(--black);
  color: var(--white);
}
.hero .btn:is(:hover, :focus) {
  background-color: var(--theme-accent);
  color: var(--white);
}





/*-----------------------------------*\
  #Collection
\*-----------------------------------*/

.collection-card .card-banner { 
  border-radius: var(--radius-10);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-1);
}



.collection-card .img-cover { 
  transition: var(--transition-2);
  width: 50%;
  height: 50%;
  object-fit: cover;
}

.collection-card:is(:hover, :focus-within) .img-cover { transform: scale(1.08); }

.collection-card .card-title {
  margin-block-start: 15px;
  text-align: center;
  transition: var(--transition-1);
}

.collection-card .card-title:is(:hover, :focus) { color: var(--theme-accent); }





/*-----------------------------------*\
  #OFFERS
\*-----------------------------------*/

.offer-card {
  border-radius: var(--radius-10);
  padding: 20px;
  display: grid;
  align-content: center;
}

.offer-card .card-subtitle {
  font-size: var(--fs-7);
  text-transform: uppercase;
  font-weight: var(--fw-700);
}

.offer-card .card-title {
  color: var(--black);
  margin-block: 5px 24px;
}

.offer-card .btn { background-color: var(--portland-orange); }

.offer-card .btn:is(:hover, :focus) { background-color: var(--black); }





/*-----------------------------------*\
  #PRODUCT
\*-----------------------------------*/

.product .img-cover.hover { display: none; }

.product-card .card-action-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--theme-accent);
  border: 1px solid var(--theme-accent);
  padding: 12px;
  border-radius: 50%;
  font-size: 1.8rem;
  color: var(--white);
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition-2);
  display: block !important;
}

.product-card { 
  text-align: center; 
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card .card-banner {
  border: 1px solid var(--platinum);
  border-radius: var(--radius-10);
  margin-block-end: 20px;
  position: relative;
}

.product-card :is(.wrapper, .rating-wrapper) { display: flex; }

.product-card .wrapper {
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: var(--silver-chalice);
  font-size: var(--fs-7);
}

.product-card .rating-wrapper {
  color: var(--amber);
  gap: 2px;
}

.product-card .rating-wrapper.gray { color: unset; }

.product-card .h3 {
  --fs-3: 1.8rem;
  margin-block: 8px 10px;
}

.product-card .card-title { transition: var(--transition-1); }

.product-card:is(:hover, :focus) .card-title { color: var(--theme-accent); }

.product-card .card-price {
  color: var(--portland-orange);
  font-size: var(--fs-4);
  font-weight: var(--fw-700);
}

/* Desktop hover behavior for add-to-cart button */
@media (min-width: 769px) {
  .product-card .card-action-btn {
    opacity: 0;
    transform: translateY(-10px);
    background-color: var(--white);
    border-color: var(--platinum);
    color: var(--eerie-black);
  }
  
  .product-card:hover .card-action-btn {
    opacity: 1;
    transform: translateY(0);
  }
  
  .product-card .card-action-btn:hover {
    background-color: var(--theme-accent);
    border-color: var(--theme-accent);
    color: var(--white);
  }
}

/* Mobile: Always show add to cart button */
@media (max-width: 768px) {
  .product-card .card-action-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
    background-color: var(--theme-accent) !important;
    color: var(--white) !important;
    border-color: var(--theme-accent) !important;
  }
  
  .product-card .card-action-btn:hover {
    background-color: var(--black) !important;
    color: var(--theme-accent) !important;
  }
}

/* Ensure buttons are visible on all mobile sizes */
@media (max-width: 480px) {
  .product-card .card-action-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
    background-color: var(--theme-accent) !important;
    color: var(--white) !important;
    border-color: var(--theme-accent) !important;
    font-size: 2rem !important;
    padding: 15px !important;
  }
  
  .product-card .card-action-btn:hover {
    background-color: var(--black) !important;
    color: var(--theme-accent) !important;
  }
}

/* Force visibility on any screen smaller than desktop */
@media (max-width: 1200px) {
  .product-card .card-action-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
    background-color: var(--theme-accent) !important;
    color: var(--white) !important;
    border-color: var(--theme-accent) !important;
  }
  
  .product-card .card-action-btn:hover {
    background-color: var(--black) !important;
    color: var(--theme-accent) !important;
  }
}





/*-----------------------------------*\
  #SERVICE
\*-----------------------------------*/

.service .img {
  margin-inline: auto;
  margin-block-end: 30px;
}

.service .section-title { margin-block-end: 60px; }

.service-card { text-align: center; }

.service-card .card-icon {
  max-width: max-content;
  margin-inline: auto;
}

.service-card .card-title { margin-block: 10px; }

.service-card .card-text { color: var(--spanish-gray); }





/*-----------------------------------*\
  #CTA
\*-----------------------------------*/

.cta { background-position: 75%; }

.cta-banner { display: none; }

.cta-content { padding-block: 80px var(--section-padding); }

.cta .section-title {
  text-align: left;
  margin-block: 10px 20px;
}

.cta .section-text { margin-block-end: 30px; }

.cta .btn:is(:hover, :focus) {
  background-color: var(--white);
  color: var(--black);
}





/*-----------------------------------*\
  #BRAND
\*-----------------------------------*/

.brand { --section-padding: 100px; }

.brand .has-scrollbar { 
  gap: 20px; 
  justify-content: flex-start;
  padding-inline: 20px;
  margin-inline: -20px;
  scroll-padding-left: 20px;
  scroll-behavior: smooth;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

/* Mobile responsive adjustments for brand section */
@media (max-width: 768px) {
  .brand .container {
    padding-inline: 15px;
  }
  
  .brand .has-scrollbar {
    padding-inline: 15px;
    margin-inline: 0;
    gap: 15px;
    scroll-padding-left: 15px;
    scroll-behavior: smooth;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  
  .brand .scrollbar-item {
    min-width: 120px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  
  .brand-card {
    max-width: 120px;
  }
}

/* Collection cards sizing - appropriately sized */
.collection .scrollbar-item {
  min-width: 220px !important;
  max-width: 220px !important;
}

/* More specific selectors for collection cards */
.collection .scrollbar-item .collection-card {
  width: 220px !important;
  max-width: 220px !important;
}

@media (min-width: 575px) {
  .collection .scrollbar-item {
    min-width: 200px !important;
    max-width: 200px !important;
  }
  
  .collection .scrollbar-item .collection-card {
    width: 200px !important;
    max-width: 200px !important;
  }
}

@media (min-width: 768px) {
  .collection .scrollbar-item {
    min-width: 180px !important;
    max-width: 180px !important;
  }
  
  .collection .scrollbar-item .collection-card {
    width: 180px !important;
    max-width: 180px !important;
  }
}

@media (min-width: 992px) {
  .collection .scrollbar-item {
    min-width: 240px !important;
    max-width: 240px !important;
  }
  
  .collection .scrollbar-item .collection-card {
    width: 240px !important;
    max-width: 240px !important;
  }
}

@media (max-width: 480px) {
  .brand .container {
    padding-inline: 10px;
  }
  
  .brand .has-scrollbar {
    padding-inline: 10px;
    margin-inline: 0;
    gap: 10px;
    scroll-padding-left: 10px;
    scroll-behavior: smooth;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  
  .brand .scrollbar-item {
    min-width: 100px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  
  .brand-card {
    max-width: 100px;
  }
}

.brand .scrollbar-item { 
  min-width: 150px; 
  scroll-snap-align: start;
  flex-shrink: 0;
}

.brand .scrollbar-item:not(:last-child) { border-inline-end: 1px solid var(--platinum); }

.brand-card {
  max-width: 150px;
  margin-inline: auto;
  width: 100%;
}

/* Ensure first brand card is fully visible on mobile */
@media (max-width: 768px) {
  .brand .scrollbar-item:first-child {
    margin-left: 0;
  }
  
  .brand .has-scrollbar {
    scroll-padding-left: 15px;
  }
}

@media (max-width: 480px) {
  .brand .scrollbar-item:first-child {
    margin-left: 0;
  }
  
  .brand .has-scrollbar {
    scroll-padding-left: 10px;
  }
}





/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer {
  background-color: var(--raisin-black);
  color: var(--battleship-gray);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: top;
}

.footer-top {
  padding-block-start: 100px;
  border-block-end: 1px solid var(--onyx);
}

.footer-top .container {
  display: grid;
  gap: 30px;
}

.footer .logo {
  color: var(--white);
  margin-block-end: 10px;
}

.footer-text {
  font-size: var(--fs-6);
  margin-block-end: 25px;
}

.footer-text .link {
  display: inline-block;
  color: var(--portland-orange);
}

.contact-item {
  margin-block-end: 15px;
  color: var(--white);
  font-weight: var(--fw-700);
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-item ion-icon {
  flex-shrink: 0;
  font-size: 22px;
  color: var(--portland-orange);
}

.social-list {
  display: flex;
  gap: 10px;
}

.social-link {
  background-color: var(--white);
  color: var(--black);
  padding: 12px;
  border-radius: 50%;
  transition: var(--transition-1);
}

.social-link:is(:hover, :focus) {
  background-color: var(--portland-orange);
  color: var(--white);
}

.footer-list-title {
  color: var(--white);
  font-size: var(--fs-5);
  font-weight: var(--fw-700);
  padding-block: 10px;
}

.footer-link {
  padding-block: 4px;
  transition: var(--transition-1);
}

.footer-link:is(:hover, :focus) { color: var(--portland-orange); }

.footer-bottom { padding-block: 20px; }

.copyright { margin-block-end: 10px; }

.copyright-link { display: inline-block; }

.footer-bottom .img {
  width: 100%;
  max-width: max-content;
}




/*-----------------------------------*\
  #BACK TO TOP
\*-----------------------------------*/

.back-top-btn {
  position: fixed;
  bottom: 10px;
  right: 20px;
  background-color: var(--portland-orange);
  color: var(--white);
  font-size: 25px;
  padding: 10px;
  border-radius: 50%;
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-1);
  z-index: 4;
}

.back-top-btn.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-10px);
}





/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for large than 575px screen
 */

@media (min-width: 575px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-2: 4rem;
    --fs-3: 2.6rem;

  }



  /**
   * REUSED STYLE
   */

  .scrollbar-item:not(.collection .scrollbar-item) { min-width: calc(50% - 15px); }

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



  /**
   * HERO
   */

  .hero {
    display: grid;
    padding-inline-start: 20px;
    justify-content: flex-start;
    align-items: center;
    padding-top: 150px;
  }



  /**
   * OFFER
   */

  .offer .grid-list { grid-template-columns: 1fr; }



  /**
   * PRODUCT
   */

  .product-card .card-banner { position: relative; }

  .product-card .card-action-btn,
  .product-card .card-banner .hover {
    display: block;
    position: absolute;
  }

  .product-card .card-banner .hover {
    top: 0;
    left: 0;
  }

  .product-card:is(:hover, :focus-within) .default,
  .product-card .hover { opacity: 0; }

  .product-card .default,
  .product-card:is(:hover, :focus-within) .hover { opacity: 1; }

  .product-card .card-action-btn {
    top: 15px;
    right: 15px;
    color: var(--eerie-black);
    font-size: 20px;
    background-color: var(--white);
    border: 1px solid var(--platinum);
    padding: 12px;
    border-radius: 50%;
    transition: var(--transition-1);
    opacity: 0;
  }

  .product-card .card-action-btn:is(:hover, :focus) {
    background-color: var(--theme-accent);
    border-color: var(--theme-accent);
    color: var(--white);
  }

  .product-card:is(:hover, :focus-within) .card-action-btn { opacity: 1; }



  /**
   * CTA
   */

  .cta .img { width: 250px; }

  .cta .h2 { --fs-2: 3.2rem; }



  /**
   * BRAND
   */

  .brand .scrollbar-item { min-width: 140px; }



  /**
   * FOOTER
   */

  .footer-top .container { grid-template-columns: 1fr 1fr; }

}





/**
 * responsive for large than 768px screen
 */

@media (min-width: 768px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 9rem;

  }



  /**
   * REUSED STYLE
   */

  .scrollbar-item:not(.collection .scrollbar-item) { min-width: calc(33.33% - 20px); }

  .grid-list { grid-template-columns: repeat(3, 1fr); }



  /**
   * HERO
   */

  .hero {
    aspect-ratio: 1512 / 784;
    padding-inline-start: 10%;
    padding-top: 120px;
  }

  .hero-text { font-size: 2.6rem; }



  /**
   * OFFER
   */

  .offer .grid-list { grid-template-columns: repeat(3, 1fr); }



  /**
   * CTA
   */

  .cta-banner { display: block; }

  .cta .container {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    align-items: flex-end;
  }



  /**
   * FOOTER
   */

  .footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

}





/**
 * responsive for large than 992px screen
 */

@media (min-width: 992px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 12rem;
    --fs-3: 3rem;

    /**
     * spacing
     */

    --section-padding: 50px;

  }



  /**
   * REUSED STYLE
   */

  .container { padding-inline: 30px; }

  .scrollbar-item:not(.collection .scrollbar-item) { min-width: calc(20% - 24px); }



  /**
   * HEADER
   */

  .nav-toggle-btn,
  .navbar-action-btn { display: none; }

  .header {
    --color: var(--white);
    background-color: var(--bright-yellow-crayola);
  }

  .header.active {
    --color: var(--black);
    background-color: var(--white);
  }

  .header .logo,
  .header .action-btn { color: var(--color); }

  .header .action-btn.user { display: block; }

  .logo { 
    font-size: 3.8rem; 
    justify-content: center;
  }

  .navbar,
  .navbar.active {
    all: unset;
    margin-inline-end: auto;
    z-index: 999;
  }

  .navbar-list {
  display: flex;
  gap: 10px;
  transform: translateY(12px);
}

  .navbar-link {
    color: var(--color);
    --fs-6: 1.7rem;
    font-weight: var(--fw-700);
    transition: var(--transition-1);
  }

  .navbar-link:is(:hover, :focus) {
    color: var(--theme-accent);
  }

  .header.active .navbar-link:is(:hover, :focus) { color: var(--theme-accent); }



  /**
   * HERO
   */

  .hero { margin-block-start: 0; }



  /**
   * Collection
   */

  .collection-card .h3 { --fs-3: 2rem; }



  /**
   * SERVICE
   */

  .service .grid-list { grid-template-columns: repeat(4, 1fr); }

  .service-card .h3 { --fs-3: 2.4rem; }



  /**
   * BRAND
   */

  .brand .scrollbar-item { min-width: 140px; }



  /**
   * FOOTER
   */

  .footer-top .container { grid-template-columns: 1fr 0.5fr 0.5fr 0.5fr; }

}





/**
 * responsive for large than 1200px screen
 */

@media (min-width: 1200px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 15rem;
    --fs-3: 3.2rem;

  }



  /**
   * REUSED STYLE
   */

  .grid-list { grid-template-columns: repeat(4, 1fr); }



  /**
   * CTA
   */

  .cta-content { padding-block: 100px; }



  /**
   * BRAND, FOOTER
   */

  :is(.brand, .footer) .container {
    max-width: 1200px;
    width: 100%;
    margin-inline: auto;
  }

  .footer { padding-block-start: 40px; }

}

/* Desktop: Center brand section */
@media (min-width: 992px) {
  .brand .has-scrollbar {
    justify-content: center;
  }
}

/* Force collection cards to be appropriately sized */
.collection .has-scrollbar .scrollbar-item {
  min-width: 220px !important;
  max-width: 220px !important;
  width: 220px !important;
}

@media (min-width: 575px) {
  .collection .has-scrollbar .scrollbar-item {
    min-width: 200px !important;
    max-width: 200px !important;
    width: 200px !important;
  }
}

@media (min-width: 768px) {
  .collection .has-scrollbar .scrollbar-item {
    min-width: 180px !important;
    max-width: 180px !important;
    width: 180px !important;
  }
}

@media (min-width: 992px) {
  .collection .has-scrollbar .scrollbar-item {
    min-width: 240px !important;
    max-width: 240px !important;
    width: 240px !important;
  }
}

/*-----------------------------------*\
  #CART PAGE STYLES
\*-----------------------------------*/

.cart-hero {
  text-align: center;
  padding-block: 80px;
  padding-top: 140px;
  background: linear-gradient(135deg, var(--theme-accent) 0%, var(--portland-orange) 100%);
  position: relative;
  overflow: hidden;
}

.cart-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.cart-title {
  color: var(--white);
  margin-block-end: 15px;
  font-size: 6rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.cart-subtitle {
  color: var(--white);
  font-size: 1.8rem;
  opacity: 0.95; 
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.cart-content {
  padding-top: 2px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  min-height: 60vh;
}

/* Cart Loading Section */
.cart-loading-section {
  text-align: center;
  padding: 60px 0;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-loading {
  text-align: center;
  padding: 60px 40px;
  background: var(--white);
  border-radius: var(--radius-10);
  box-shadow: var(--shadow-1);
  min-height: 200px;
  max-width: 500px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cart-loading .loading-spinner {
  display: none !important;
}

/* Remove the pseudo-element bars and only use the .loading-bar element */
.cart-loading::before {
  display: none;
}

.cart-loading::after {
  display: none;
}

/* Loading bar approach */
.cart-loading .loading-bar {
  width: 60px;
  height: 8px;
  background: var(--light-gray);
  border-radius: 4px;
  margin: 0 auto 30px;
  position: relative;
  overflow: hidden;
}

.cart-loading .loading-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60px;
  width: 60px;
  height: 8px;
  background: var(--theme-accent);
  border-radius: 4px;
  animation: loading-bar 1.5s ease-in-out infinite;
}

@keyframes loading-bar {
  0% {
    left: -60px;
  }
  50% {
    left: 100%;
  }
  100% {
    left: -60px;
  }
}

.cart-loading p {
  color: var(--spanish-gray);
  font-size: 2rem;
  margin: 0;
  white-space: nowrap;
  font-weight: 500;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--light-gray);
  border-top: 4px solid var(--theme-accent);
  border-radius: 50%;
  animation: style-spin 1s linear infinite;
  margin-inline: auto;
  margin-block-end: 20px;
}

@keyframes style-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



.empty-cart {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.empty-cart-content {
  max-width: 500px;
  margin-inline: auto;
  background: white;
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f3f4;
}

.empty-cart-icon {
  font-size: 6.5rem;
  color: var(--light-gray);
  margin-block-end: 30px;
  display: block;
  text-align: center;
  margin-inline: auto;
}

.empty-cart h2 {
  margin-block-end: 15px;
  color: var(--eerie-black);
  font-size: 3.2rem;
  font-weight: 700;
  text-align: center;
}

.empty-cart p {
  color: var(--spanish-gray);
  margin-block-end: 40px;
  font-size: 1.5rem;
  line-height: 1.6;
  text-align: center;
}

.empty-cart .btn {
  background: var(--theme-accent);
  color: white;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.6rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.empty-cart .btn:hover {
  background: var(--portland-orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(109, 185, 109, 0.3);
}

/* Responsive styles for empty cart */
@media (max-width: 768px) {
  .empty-cart {
    padding-top: 40px;
    padding-bottom: 80px;
    min-height: 50vh;
  }
  
  .empty-cart-content {
    padding: 40px 30px;
    margin: 0 auto;
    max-width: calc(100% - 40px);
  }
  
  .empty-cart-icon {
    font-size: 5.5rem;
    margin-block-end: 25px;
  }
  
  .empty-cart h2 {
    font-size: 2.7rem;
  }
  
  .empty-cart p {
    font-size: 1.4rem;
  }
  
  .empty-cart .btn { 
    padding: 12px 24px;
    font-size: 1.4rem;
  }
}

/* ===== NEW CART LAYOUT ===== */

.cart-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cart Header */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding: 30px 0;
  border-bottom: 2px solid #e9ecef;
}

.cart-header-left h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--eerie-black);
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, var(--theme-accent), var(--portland-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cart-header-left p {
  font-size: 1.1rem;
  color: var(--spanish-gray);
  margin: 0;
}

.btn-clear-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: 2px solid #dc3545;
  color: #dc3545;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-clear-cart:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

/* Cart Main Content */
.cart-main-content {
  display: grid;
  gap: 40px;
}

@media (min-width: 1200px) {
  .cart-main-content {
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: start;
  }
}

/* Cart Items Section */
.cart-items-section {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f3f4;
}

.cart-items-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f8f9fa;
}

.cart-items-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--eerie-black);
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.cart-items-header h2 span {
  white-space: nowrap;
  display: inline;
}

.cart-items-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: 1fr;
}

/* Cart Item Card */
.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  padding: 20px;
  background: #fafbfc;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: fit-content;
}

.cart-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--theme-accent), var(--portland-orange));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: #dee2e6;
}

.cart-item:hover::before {
  opacity: 1;
}

.cart-item-image {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.cart-item-image:hover {
  transform: scale(1.05);
}

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

.cart-item-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
}

.cart-item-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--eerie-black);
  margin: 0;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 1.3rem;
  color: var(--theme-accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 8px 12px;
  transition: all 0.3s ease;
}

.quantity-controls:focus-within {
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 3px rgba(254, 186, 89, 0.1);
}

.quantity-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f8f9fa;
  color: var(--eerie-black);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.quantity-btn:hover:not(:disabled) {
  background: var(--theme-accent);
  color: white;
  transform: scale(1.1);
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quantity-input {
  width: 60px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--eerie-black);
  font-family: inherit;
}

.quantity-input:focus {
  outline: none;
}

.remove-btn {
  padding: 10px 16px;
  border: 2px solid #dc3545;
  background: transparent;
  color: #dc3545;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.remove-btn ion-icon {
  font-size: 1.8rem;
} 

.remove-btn:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(220, 53, 69, 0.3);
}

.cart-item-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.cart-item-total-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--eerie-black);
  margin-bottom: 10px;
}

.cart-item-status {
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  width: fit-content;
}

.cart-item-status.available {
  background: #e8f5e8;
  color: #2d5a2d;
}

.cart-item-status.unavailable {
  background: #ffe8e8;
  color: #a52a2a;
}

.cart-item-status.made-to-order {
  background: #fff3e0;
  color: #e65100;
}

/* Cart Summary Card */
.cart-summary-section {
  position: sticky;
  top: 20px;
}

.cart-summary-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f3f4;
  transition: all 0.3s ease;
}

.cart-summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f8f9fa;
}

.summary-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--eerie-black);
  margin: 0;
}

.summary-header ion-icon {
  font-size: 2.2rem;
  color: var(--theme-accent);
}

.summary-items {
  margin-bottom: 25px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f1f3f4;
  font-size: 1.3rem;
}

.summary-item:last-of-type {
  border-bottom: none;
}

.summary-label {
  color: var(--spanish-gray);
  font-weight: 500;
}

.summary-value {
  font-weight: 600;
  color: var(--eerie-black);
}

.summary-item.total {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--eerie-black);
  padding: 20px 0;
  border-top: 2px solid #e9ecef;
  margin-top: 10px;
}

.cart-actions {
  margin-bottom: 20px;
}

.btn-checkout {
  width: 100%;
  padding: 18px 25px;
  background: linear-gradient(135deg, var(--theme-accent), var(--portland-orange));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-checkout ion-icon {
  font-size: 1.5rem;
}

.btn-checkout:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(254, 186, 89, 0.4);
}

.continue-shopping {
  text-align: center;
}

.link-continue-shopping {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--theme-accent);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.4rem;
}

.link-continue-shopping ion-icon {
  font-size: 1.6rem;
}

.link-continue-shopping:hover {
  color: var(--portland-orange);
  transform: translateX(-5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .cart-main-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .cart-summary-section {
    position: static;
  }
}

@media (max-width: 768px) {
  .cart-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .cart-header-left h1 {
    font-size: 2rem;
  }
  
  .cart-item {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  
  .cart-item-image {
    width: 120px;
    height: 120px;
    justify-self: center;
  }
  
  .cart-item-price {
    text-align: center;
  }
  
  .cart-item-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .cart-item-total {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .cart-container {
    padding: 0 15px;
  }
  
  .cart-items-section,
  .cart-summary-card {
    padding: 20px;
  }
  
  .cart-item {
    padding: 20px;
  }
  
  .cart-item-image {
    width: 100px;
    height: 100px;
    justify-self: center;
  }
  
  .cart-item-title {
    font-size: 1.2rem;
  }
  
  .quantity-controls {
    padding: 6px 10px;
  }
  
  .quantity-btn {
    width: 32px;
    height: 32px;
  }
}

/* ===== CHECKOUT MODAL STYLES ===== */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000; /* Increased z-index to be above navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px; /* Increased top/bottom padding */
  box-sizing: border-box;
}

.checkout-modal.show {
  display: flex;
}

.checkout-modal-content {
  background: var(--white);
  border-radius: 16px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh; /* Reduced from 95vh to ensure it fits */
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 20px 0; /* Added margin for better spacing */
}

.checkout-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.checkout-modal-header h2 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--eerie-black);
}

.checkout-modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--spanish-gray);
  transition: color 0.3s ease;
  padding: 8px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-modal-close:hover {
  color: var(--eerie-black);
  background: #f8f9fa;
}

.checkout-modal-body {
  padding: 40px;
  flex: 1;
  overflow-y: auto;
  border-radius: 16px 16px 0 0;
}

.checkout-section {
  margin-bottom: 40px;
}

.checkout-section h3 {
  margin-bottom: 25px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--eerie-black);
  border-bottom: 3px solid var(--theme-accent);
  padding-bottom: 12px;
  display: inline-block;
}

.checkout-section h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--eerie-black);
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--eerie-black);
  font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 16px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 4px rgba(254, 186, 89, 0.15);
  background: white;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Saved Addresses Styles */
.saved-addresses {
  margin-bottom: 30px;
}

.addresses-list {
  display: grid;
  gap: 15px;
  margin-bottom: 20px;
}

.address-card {
  padding: 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background: #fafbfc;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.address-card:hover {
  border-color: var(--theme-accent);
  background: #fef9f3;
  transform: translateY(-2px);
}

.address-card.selected {
  border-color: var(--theme-accent);
  background: #fef9f3;
  box-shadow: 0 4px 15px rgba(254, 186, 89, 0.2);
}

.address-card.selected::before {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: var(--theme-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.address-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--eerie-black);
  margin-bottom: 8px;
}

.address-details {
  color: var(--spanish-gray);
  font-size: 1rem;
  line-height: 1.4;
}

.btn-add-new-address {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  background: transparent;
  border: 2px dashed #cbd5e0;
  color: var(--theme-accent);
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.btn-add-new-address:hover {
  border-color: var(--theme-accent);
  background: #fef9f3;
}

.save-address-option {
  margin-top: 25px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--eerie-black);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--theme-accent);
}

.payment-methods {
  display: grid;
  gap: 15px;
}

.payment-method {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--white);
}

.payment-method:hover {
  border-color: var(--theme-accent);
  background: #fef9f3;
}

.payment-method input[type="radio"] {
  margin-right: 15px;
  transform: scale(1.2);
  accent-color: var(--theme-accent);
}

.payment-method-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--eerie-black);
}

.payment-method input[type="radio"]:checked + .payment-method-label {
  color: var(--theme-accent);
}

.payment-method ion-icon {
  font-size: 1.2rem;
}

.checkout-modal-footer {
  padding: 30px;
  border-top: 2px solid #e9ecef;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  bottom: 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12), 0 -4px 16px rgba(0, 0, 0, 0.08);
  margin-top: auto;
  border-radius: 0 0 16px 16px;
  backdrop-filter: blur(10px);
}

.checkout-summary {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  align-items: center;
  justify-content: space-between;
}

.checkout-subtotal {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--eerie-black);
  padding: 8px 0;
}

.checkout-shipping {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--eerie-black);
  padding: 8px 0;
}

.checkout-total {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--eerie-black);
  padding: 8px 0;
}

.checkout-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: flex-end; /* Ensure buttons are right-aligned */
}

.checkout-actions .btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 120px;
  order: unset; /* Reset any order property */
}

.checkout-actions .btn-outline {
  background: transparent;
  border: 2px solid #e9ecef;
  color: var(--eerie-black);
  text-align: center;
  order: 1; /* Cancel button first (left) */
}

.checkout-actions .btn-outline:hover {
  border-color: var(--theme-accent);
  color: var(--white);
  background: var(--theme-accent);
}

.checkout-actions .btn:not(.btn-outline) {
  background: var(--theme-accent);
  border: 2px solid var(--theme-accent);
  color: var(--white);
  order: 2; /* Place Order button second (right) */
}

.checkout-actions .btn:not(.btn-outline):hover {
  background: var(--theme-accent);
  border-color: var(--theme-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: style-spin 0.8s linear infinite;
}

@keyframes style-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .checkout-modal {
    padding: 20px 10px; /* Adjusted mobile padding */
  }
  
  .checkout-modal-content {
    max-height: 85vh; /* Further reduced for mobile */
    margin: 10px 0; /* Reduced margin for mobile */
  }
  
  .checkout-modal-header,
  .checkout-modal-body,
  .checkout-modal-footer {
    padding: 20px; /* Reduced padding for mobile */
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .checkout-modal-footer {
    padding: 20px;
    flex-direction: column;
    gap: 12px;
  }
  
  .checkout-summary {
    padding: 16px;
  }
  
  .checkout-subtotal,
  .checkout-shipping,
  .checkout-total {
    padding: 8px 0;
  }
  
  .checkout-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .checkout-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .btn-outline {
    order: 2;
  }
}

.cart-summary {
  background: var(--white);
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 35px;
  position: sticky;
  top: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.cart-summary:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.cart-summary h3 {
  margin-block-end: 25px;
  color: var(--eerie-black);
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.cart-summary h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--theme-accent), var(--portland-orange));
  border-radius: 2px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 12px;
  border-bottom: 1px solid #f1f3f4;
  transition: all 0.3s ease;
}

.summary-item span:last-child::before {
  content: 'EGP ';
  opacity: 0.8;
}

.summary-item:hover {
  background: #f8f9fa;
  margin: 0 -10px;
  padding: 12px 10px;
  border-radius: 8px;
}

.summary-item:last-of-type {
  border-bottom: none;
}

.summary-item.total {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--eerie-black);
  border-top: 2px solid #e9ecef;
  border-bottom: none;
  padding-block: 20px;
  margin-block-start: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  margin: 15px -10px 0;
  padding: 20px 10px;
  border-radius: 12px;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-block: 35px;
}

.cart-actions .btn {
  padding: 14px 24px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cart-actions .btn:first-child {
  background: var(--theme-accent);
  color: var(--white);
  border: 2px solid var(--theme-accent);
  width: 100%;
}

.cart-actions .btn:first-child:hover {
  background: var(--portland-orange);
  border-color: var(--portland-orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(254, 186, 89, 0.3);
  color: var(--white);
}

.cart-actions .btn:last-child {
  align-self: center;
  max-width: 200px;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--theme-accent);
  color: var(--theme-accent);
  border-radius: 12px;
  padding: 8px 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  font-size: 0.8rem;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--theme-accent);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-outline:hover {
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(254, 186, 89, 0.3);
}

.btn-outline:hover::before {
  left: 0;
}

.continue-shopping {
  text-align: center;
  margin-block-start: 20px;
}

.continue-shopping .link {
  color: var(--theme-accent);
  font-weight: var(--fw-700);
  transition: var(--transition-1);
}

.continue-shopping .link:hover {
  color: var(--portland-orange);
}

/* Snackbar Notifications */
.snackbar {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001; /* Increased z-index to be above checkout modal */
  max-width: 400px;
  min-width: 300px;
  transform: translateX(calc(100% + 20px));
  transition: transform 0.3s ease-in-out;
  pointer-events: none;
  opacity: 0;
}

.snackbar.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

.snackbar-content {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 4px solid var(--bright-yellow-crayola);
  position: relative;
  overflow: hidden;
}

.snackbar-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.snackbar-content.success {
  border-left-color: var(--theme-accent);
}

.snackbar-content.error {
  border-left-color: #dc3545;
}

.snackbar-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.snackbar-icon ion-icon {
  font-size: 20px;
  color: var(--eerie-black);
}

.snackbar-message {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--eerie-black);
  line-height: 1.4;
}

.snackbar-close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--eerie-black);
  transition: all 0.2s ease;
  margin-left: auto;
  align-self: flex-start;
}

.snackbar-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--eerie-black);
}

.snackbar-close ion-icon {
  font-size: 18px;
}

.snackbar-content.success .snackbar-icon ion-icon {
  color: var(--theme-accent);
}

.snackbar-content.error .snackbar-icon ion-icon {
  color: #dc3545;
}

/* Responsive snackbar */
@media (max-width: 768px) {
  .snackbar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
  
  .snackbar-content {
    padding: 12px 16px;
    gap: 10px;
  }
  
  .snackbar-message {
    font-size: 13px;
  }
  
  .snackbar-close {
    margin-left: auto;
    padding: 6px;
  }
  
  .snackbar-close ion-icon {
    font-size: 20px;
  }
}

/* ==================== CART PAGE IMPROVEMENTS ==================== */

/* Loading States for Cart Operations */
.quantity-controls.loading {
  opacity: 0.6;
  pointer-events: none;
}

.quantity-controls.loading .quantity-btn {
  cursor: not-allowed;
}

.quantity-controls.loading .quantity-input {
  cursor: not-allowed;
}

.remove-btn.loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
  position: relative;
}

.remove-btn.loading ion-icon {
  opacity: 0;
}

.remove-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid #dc3545;
  border-radius: 50%;
  animation: remove-btn-spin 1s linear infinite;
}

@keyframes remove-btn-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.btn-clear-cart.loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}


/* Spinner animation for loading states */
.spinner {
  animation: style-spin 1s linear infinite;
}



@keyframes style-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Enhanced Clear Cart Button */
.btn-clear-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
  min-height: 44px;
  white-space: nowrap;
  min-width: 140px;
}

.btn-clear-cart:hover {
  background: #ff3742;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

.btn-clear-cart:active {
  transform: translateY(0);
}

.btn-clear-cart ion-icon {
  font-size: 18px;
}

.btn-clear-cart .spinner {
  animation: clear-cart-spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes clear-cart-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Checkout Modal Improvements */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.checkout-modal.show {
  display: flex;
}

.checkout-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.checkout-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e5e5;
  background: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.checkout-modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--eerie-black);
  margin: 0;
}

.checkout-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--sonic-silver);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.checkout-modal-close:hover {
  background: #f0f0f0;
  color: var(--eerie-black);
}

.checkout-modal-body {
  padding: 24px;
}

.checkout-section {
  margin-bottom: 30px;
}

.checkout-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--eerie-black);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-section h3::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--theme-accent);
  border-radius: 2px;
}

.checkout-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--eerie-black);
  margin-bottom: 15px;
}

/* Form Grid Improvements */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: var(--eerie-black);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #fafafa;
}

/* Additional styling for select elements */
.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 12px;
}

/* Styling for select elements with input-field class */
.input-field[type="select"],
.input-field:is(select) {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 12px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--theme-accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(109, 185, 109, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Egypt Cities Section */
#egyptCitiesSection {
  margin-top: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

#egyptCitiesSection label {
  color: var(--eerie-black);
  font-weight: 600;
}

/* Saved Addresses */
.saved-addresses {
  margin-bottom: 20px;
}

.addresses-list {
  display: grid;
  gap: 15px;
  margin-bottom: 20px;
}

.address-card {
  padding: 15px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: white;
}

.address-card:hover {
  border-color: var(--theme-accent);
  box-shadow: 0 2px 8px rgba(109, 185, 109, 0.1);
}

.address-card.selected {
  border-color: var(--theme-accent);
  background: #f0f8f0;
}

.address-card.selected::before {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--theme-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.default-badge {
  display: inline-block;
  background: var(--theme-accent);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}

.address-name {
  font-weight: 600;
  color: var(--eerie-black);
  margin-bottom: 5px;
}

.address-details {
  color: var(--sonic-silver);
  font-size: 14px;
  line-height: 1.4;
}

.btn-add-new-address {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--theme-accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-add-new-address:hover {
  background: #5ca85c;
  transform: translateY(-1px);
}

/* Payment Methods */
.payment-methods {
  display: grid;
  gap: 15px;
}

.payment-method {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.payment-method:hover {
  border-color: var(--theme-accent);
}

.payment-method input[type="radio"] {
  margin-right: 12px;
  transform: scale(1.2);
}

.payment-method-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--eerie-black);
}

.payment-method input[type="radio"]:checked + .payment-method-label {
  color: var(--theme-accent);
}

.payment-method ion-icon {
  font-size: 20px;
}

/* Checkout Modal Footer */
.checkout-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid #e5e5e5;
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
}

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

.checkout-shipping {
  color: var(--sonic-silver);
  font-size: 14px;
}

.checkout-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--eerie-black);
}

.checkout-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.btn-outline {
  padding: 12px 24px;
  background: transparent;
  color: var(--sonic-silver);
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--sonic-silver);
  color: var(--eerie-black);
}

.btn {
  padding: 12px 24px;
  background: var(--theme-accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  background: #5ca85c;
  transform: translateY(-1px);
}

.btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
}

.btn.disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
  pointer-events: none;
}

.btn.disabled:hover {
  background: #ccc;
  transform: none;
}

/* Checkout button message */
.checkout-button-message {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-top: 10px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

/* Form header with back button */
.form-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.btn-back-to-addresses {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-back-to-addresses:hover {
  background: #f5f5f5;
  color: #333;
}

.btn-back-to-addresses ion-icon {
  font-size: 18px;
}

/* Place order button loading state */
#confirmCheckout {
  position: relative;
  min-height: unset;
  display: flex;
  align-items: center;
  justify-content: center;
}

#confirmCheckout .btn-text {
  display: inline-block;
}

#confirmCheckout .btn-loader {
  display: none !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#confirmCheckout.loading {
  min-height: unset;
}

#confirmCheckout.loading .btn-text {
  visibility: hidden;
}

#confirmCheckout.loading .btn-loader {
  display: flex !important;
}

.btn-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: style-spin 1s linear infinite;
}

@keyframes style-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .checkout-modal {
    padding: 10px;
  }

  .checkout-modal-content {
    max-height: 95vh;
  }

  .checkout-modal-header,
  .checkout-modal-body,
  .checkout-modal-footer {
    padding: 15px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .checkout-modal-footer {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }

  .checkout-summary {
    flex-direction: row;
    gap: 15px;
    padding: 12px 15px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
  }

  .checkout-subtotal,
  .checkout-shipping,
  .checkout-total {
    padding: 6px 0;
    font-size: 1.6rem;
  }

  .checkout-actions {
    justify-content: flex-end;
    width: 100%;
    gap: 12px;
    flex-direction: row;
  }

  .checkout-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
    min-width: auto;
    min-height: unset;
    font-size: 1.1rem;
    order: unset; /* Reset order for mobile */
    height: auto;
  }
  
  .checkout-actions .btn-outline {
    order: 1; /* Cancel button first (left) */
  }
  
  .checkout-actions .btn:not(.btn-outline) {
    order: 2; /* Place Order button second (right) */
  }
}

/* Global Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.search-overlay.active { display: block; }
.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}
.search-overlay-panel {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 92vw);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.search-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 12px 18px;
  border-bottom: 1px solid var(--cultured);
}
.search-input-icon { font-size: 22px; color: var(--sonic-silver); }
.search-input-field {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 12px 4px;
  background: transparent;
}
.search-results {
  padding: 8px 6px 12px 6px;
  overflow: auto;
}
.search-hint, .search-empty {
  padding: 18px;
  color: var(--sonic-silver);
  text-align: center;
}
.search-loading { display: grid; place-items: center; padding: 24px; }
.search-loading .spinner {
  margin: 8px auto 10px;
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-top: 3px solid var(--theme-accent);
}
.search-loading span { color: var(--sonic-silver); font-size: 14px; }
.search-result-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}
.search-result-item:hover { background: var(--cultured); }
.result-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #f6f6f6;
}
.result-meta { display: grid; gap: 4px; }
.result-title { font-weight: 700; font-size: 15px; line-height: 1.2; }
.result-sub { font-size: 13px; color: var(--sonic-silver); }

@media (max-width: 480px) {
  .checkout-modal-header h2 {
    font-size: 18px;
  }

  .checkout-section h3 {
    font-size: 16px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 13px;
  }

  .address-card {
    padding: 12px;
  }

  .payment-method {
    padding: 12px;
  }
}

/* Checkout Loading Overlay */
.checkout-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 12px;
}

.checkout-loading-content {
  text-align: center;
  padding: 30px;
  position: relative;
  width: 100%;
  max-width: 300px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.checkout-loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--theme-accent);
  border-radius: 50%;
  animation: style-spin 1s linear infinite;
  margin-bottom: 25px;
}

.checkout-loading-content p {
  color: var(--eerie-black);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.checkout-modal-body {
  position: relative;
  padding: 30px;
  flex: 1;
  overflow-y: auto;
}

  .checkout-actions {
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
  }
  
  .checkout-actions .btn {
    flex: 1;
    justify-content: center;
    order: unset; /* Reset order for mobile */
  }
  
  .checkout-actions .btn-outline {
    order: 1; /* Cancel button first (left) */
  }
  
  .checkout-actions .btn:not(.btn-outline) {
    order: 2; /* Place Order button second (right) */
  }

/*-----------------------------------*\
  #LOADING STATES
\*-----------------------------------*/

.loading-container {
  text-align: center;
  padding: 40px 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--platinum);
  border-top: 4px solid var(--theme-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-container p {
  color: var(--sonic-silver);
  font-size: var(--fs-6);
  margin: 0;
}

/*-----------------------------------*\
  #SNACKBAR NOTIFICATIONS
\*-----------------------------------*/

.snackbar {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  min-width: 300px;
  transform: translateX(calc(100% + 20px));
  transition: transform 0.3s ease-in-out;
  pointer-events: none;
  opacity: 0;
}

.snackbar.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

.snackbar-content {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 4px solid var(--bright-yellow-crayola);
  position: relative;
  overflow: hidden;
}

.snackbar.success .snackbar-content {
  border-left-color: var(--theme-accent);
}

.snackbar.error .snackbar-content {
  border-left-color: #dc3545;
}

.snackbar-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.notification-icon {
  font-size: 24px;
  color: var(--theme-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.snackbar.success .notification-icon {
  color: var(--theme-accent);
}

.snackbar.error .notification-icon {
  color: var(--bittersweet);
}

.notification-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.notification-text strong {
  font-family: var(--ff-nunito_sans);
  font-size: 1.8rem;
  font-weight: var(--fw-700);
  color: var(--raisin-black);
  line-height: 1.2;
}

.notification-text span {
  font-family: var(--ff-nunito_sans);
  font-size: 1.4rem;
  color: var(--sonic-silver);
  line-height: 1.4;
}

/*-----------------------------------*\
  #PRODUCT CARDS
\*-----------------------------------*/





















/* Fix button visibility without changing card appearance */
#top-products-container .card-action-btn {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  z-index: 5 !important;
}

#top-products-container .card-action-btn.loading {
  pointer-events: none;
}









/* Add to Cart Button Loading State - COMPLETELY REWRITTEN */
.card-action-btn.loading {
  position: relative;
  overflow: hidden;
}

.card-action-btn.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: simple-spin 1s linear infinite;
  z-index: 2;
}

/* Hide the original icon when loading */
.card-action-btn.loading ion-icon {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Ensure button is visible during loading */
.card-action-btn.loading {
  background-color: var(--theme-accent) !important;
  color: var(--white) !important;
  border-color: var(--theme-accent) !important;
}

@keyframes simple-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Top Products Loading Spinner */
#top-products-loading.shop-loading {
  text-align: center;
  padding: 60px 40px;
  background: var(--white);
  border-radius: var(--radius-10);
  box-shadow: var(--shadow-1);
  min-height: 200px;
  max-width: 500px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}



#top-products-loading.shop-loading p {
  color: var(--spanish-gray);
  font-size: 2.4rem;
  margin: 0;
  white-space: nowrap;
  font-weight: 600;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Top products add to cart button loading states - EXACTLY SAME AS SHOP PAGE */
#top-products-container .product-card .card-action-btn {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  background-color: var(--theme-accent) !important;
  color: var(--white) !important;
  border-color: var(--theme-accent) !important;
  z-index: 5 !important;
}

/* Ensure hover image never covers the add-to-cart button in Best Sellers */
#top-products-container .product-card .card-banner .hover {
  z-index: 1 !important;
  pointer-events: none !important;
}

#top-products-container .product-card .card-action-btn.loading {
  pointer-events: none;
  background-color: var(--theme-accent) !important;
  color: var(--white) !important;
  border-color: var(--theme-accent) !important;
  position: relative;
  overflow: hidden;
  z-index: 5 !important;
}

#top-products-container .product-card .card-action-btn.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: simple-spin 1s linear infinite;
  z-index: 2;
}

#top-products-container .product-card .card-action-btn.loading ion-icon {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Force visibility in all states - MORE SPECIFIC SELECTORS */
#top-products-container .product-card .card-action-btn,
#top-products-container .product-card .card-action-btn:hover,
#top-products-container .product-card .card-action-btn:focus,
#top-products-container .product-card .card-action-btn.loading {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  background-color: var(--theme-accent) !important;
  color: var(--white) !important;
  border-color: var(--theme-accent) !important;
  z-index: 5 !important;
}

/* Top Products Loading Bar */
#top-products-loading.shop-loading .loading-bar-container {
  width: 100px;
  height: 8px;
  background: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto 30px;
  position: relative;
}

#top-products-loading.shop-loading .loading-bar {
  width: 100%;
  height: 100%;
  background: var(--theme-accent);
  border-radius: 4px;
  animation: loading-bar-animation 2s ease-in-out infinite;
  transform-origin: left;
}

@keyframes loading-bar-animation {
  0% {
    transform: scaleX(0);
    opacity: 1;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.8;
  }
  100% {
    transform: scaleX(0);
    opacity: 1;
  }
}

/*-----------------------------------*\
  #NAVBAR VERTICAL ALIGNMENT TWEAKS
\*-----------------------------------*/

/* 770px–1000px: nudge contents up to center within white navbar background (index page only) */
@media (min-width: 770px) and (max-width: 1000px) {
  .index-header { padding-block: 16px; }
  .index-header .logo,
  .index-header .navbar-list,
  .index-header .header-actions,
  .index-header .nav-toggle-btn {
    transform: translateY(-6px) !important;
  }
}

/* 575px–765px: shift hero content up on home */
@media (min-width: 575px) and (max-width: 767px) {
  .hero { padding-top: 20px; }
  .hero .container { transform: translateY(-30px) translateX(30px); }
}

@media (min-width: 768px) and (max-width: 991px) { 
  .hero .container { transform: translateY(-70px) translateX(20px); }
}

@media (min-width: 992px) { 
  .hero .container { transform: translateY(-40px); }
}

/* 992px–1350px: slightly smaller hero title */
@media (min-width: 992px) and (max-width: 1350px) {
  .hero-title { font-size: 7.5rem; }
}

/* Top Products grid: 2 per row on mobile */
@media (max-width: 575px) {
  #top-products-container.grid-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* Offers: 2 cards per row between 480px and 1200px */
@media (min-width: 675px) and (max-width: 1200px) {
  .offer .grid-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }
}

/*-----------------------------------*\
  #COLLECTION LOADING STATES
\*-----------------------------------*/

/* Loading state for collections */
.collection-card.loading {
  pointer-events: none;
}

.loading-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: var(--radius-10);
}

@keyframes loading-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}



/* Empty state styling */
.collection-card.empty {
  pointer-events: none;
}

.empty-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-10);
}

/* ===== GENERAL MODAL STYLES ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-height: 90vh;
  width: 90%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
  background: white;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.close-modal:hover {
  background-color: #f8f9fa;
  color: #333;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  background: white;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Modal footer - always visible */
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e9ecef;
  background: white;
  flex-shrink: 0;
}

/* Form actions in modal footer */
.modal-footer .form-actions {
  padding: 0;
  border-top: none;
  margin: 0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  background: transparent;
}

/* Modal button styles */
.modal-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 100px;
}

.modal-btn.primary {
  background-color: var(--theme-accent, #007bff);
  color: white;
}

.modal-btn.primary:hover:not(:disabled) {
  background-color: var(--theme-accent-dark, #0056b3);
  transform: translateY(-1px);
}

.modal-btn.secondary {
  background-color: #6c757d;
  color: white;
}

.modal-btn.secondary:hover:not(:disabled) {
  background-color: #5a6268;
  transform: translateY(-1px);
}

.modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Responsive modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
    margin: 10px;
  }
  
  .modal-header,
  .modal-body {
    padding: 16px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .modal-btn {
    width: 100%;
  }
}

/* Modal form field spacing */
.modal-body .input-wrapper {
  margin-bottom: 12px;
}

.modal-body .name-inputs {
  gap: 12px;
  margin-bottom: 12px;
}

.modal-body .checkbox-wrapper {
  margin: 8px 0;
}

/* Reduce modal header padding */
.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #e9ecef;
  background: white;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Save Address Button Loading State */
#save-address-btn {
  position: relative;
  transition: all 0.3s ease;
}

/* Override the blue hover effect for save address button */
#save-address-btn:hover:not(:disabled) {
  background-color: #dc2626 !important;
  background: #dc2626 !important;
  transform: translateY(-1px);
}

#save-address-btn.loading,
#save-address-btn.loading:hover,
#save-address-btn.loading:focus,
#save-address-btn.loading:active,
#save-address-btn.loading:hover:not(:disabled),
#save-address-btn.loading:focus:not(:disabled),
#save-address-btn.loading:active:not(:disabled) {
  background-color: #dc2626 !important;
  background: #dc2626 !important;
  cursor: not-allowed !important;
  opacity: 0.9 !important;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Nuclear option - override everything that might be causing blue */
#save-address-btn.loading,
#save-address-btn.loading:hover,
#save-address-btn.loading:focus,
#save-address-btn.loading:active {
  background-color: #dc2626 !important;
  background: #dc2626 !important;
  background-image: none !important;
  border-color: #dc2626 !important;
}

#save-address-btn .btn-text {
  transition: opacity 0.3s ease;
}

#save-address-btn .loading-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 10;
  height: 100%;
  width: 100%;
}

#save-address-btn.loading .loading-indicator {
  display: flex !important;
}

#save-address-btn.loading .btn-text {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.loading-text {
  color: white;
  font-weight: 500;
  font-size: 14px;
}

.loading-text::after {
  content: "";
  animation: loading-dots 1.5s ease-in-out infinite;
}

@keyframes loading-dots {
  0%, 20% {
    content: "";
  }
  40% {
    content: ".";
  }
  60% {
    content: "..";
  }
  80%, 100% {
    content: "...";
  }
}

/* FINAL OVERRIDE - This MUST work */
#save-address-btn.loading,
#save-address-btn.loading:hover,
#save-address-btn.loading:focus,
#save-address-btn.loading:active,
#save-address-btn.loading:visited,
#save-address-btn.loading:link {
  background-color: #dc2626 !important;
  background: #dc2626 !important;
  background-image: none !important;
  background-size: none !important;
  background-repeat: none !important;
  background-position: none !important;
  border-color: #dc2626 !important;
  color: white !important;
}

/*-----------------------------------*\
  #FORM VALIDATION STYLES
\*-----------------------------------*/

/* Error state for form fields */
.form-group input.error,
.form-group select.error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px #dc2626 !important;
}

/* Error message styling */
.error-message {
  color: #dc2626;
  font-size: 1rem;
  margin-top: 0.5rem;
  font-weight: 600;
  display: block;
  animation: fadeIn 0.3s ease-in;
}

/* Animation for error messages */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus state for error fields */
.form-group input.error:focus,
.form-group select.error:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2) !important;
}

/* Success state for form fields (optional) */
.form-group input.valid,
.form-group select.valid {
  border-color: #059669 !important;
  box-shadow: 0 0 0 1px #059669 !important;
}

/* Disable HTML5 validation messages */
.form-group input:invalid,
.form-group select:invalid {
  box-shadow: none;
}

.form-group input:invalid:focus,
.form-group select:invalid:focus {
  box-shadow: none;
}