/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Spartan:wght@400;500;600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Kablammo:MORF@7&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Oi&family=Pacifico&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Potta+One&family=Raleway:ital,wght@0,100..900;1,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Kablammo:MORF@7&family=Lexend:wght@100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Oi&family=Pacifico&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Potta+One&family=Raleway:ital,wght@0,100..900;1,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 4rem;

  /*========== Colors ==========*/
  --first-color: hsl(0, 75%, 33%);
  --first-color-alt: hsl(129, 44%, 94%);
  --title-color: hsl(115, 67%, 13%);
  --text-color: hsl(115, 67%, 13%);
  --text-color-light: hsl(60, 1%, 56%);
  --body-color: hsl(0, 0%, 100%);
  --container-color: hsl(0, 0%, 93%);
  --border-color: hsl(129, 36%, 85%);
  --border-color-alt: hsl(113, 15%, 90%);
  --btn-color: hsl(0, 75%, 33%);
  --title-colos: hsl(33, 93%, 66%);

  /*========== Font and typography ==========*/
  --body-font: "Lexend", sans-serif;
  --second-font: "Raleway", sans-serif;
  --big-font-size: 3.5rem;
  --h1-font-size: 2.75rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.75rem;
  --h4-font-size: 1.375rem;
  --large-font-size: 1.125rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;
  --tiny-font-size: 0.6875rem;

  /*========== Font weight ==========*/
  --weight-400: 400;
  --weight-500: 500;
  --weight-600: 600;
  --weight-700: 700;

  /*========== Transition ==========*/
  --transition: cubic-bezier(0, 0, 0.05, 1);
}

/* Responsive typography */
@media screen and (max-width: 1200px) {
  :root {
    --big-font-size: 2.25rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.375rem;
    --h3-font-size: 1.25rem;
    --h4-font-size: 1.125rem;
    --large-font-size: 1rem;
    --normal-font-size: 0.9375rem;
    --small-font-size: 0.8125rem;
    --smaller-font-size: 0.6875rem;
    --tiny-font-size: 0.625rem;
  }
}

/*=============== BASE ===============*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

input,
textarea,
body {
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: var(--weight-400);
}

body {
  background: linear-gradient(180deg, #FFF 26.74%, #FEC695);
}

h1,
h2,
h3,
h4 {
  font-family: var(--second-font);
  color: var(--title-color);
  font-weight: var(--weight-600);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

p {
  line-height: 1.5rem;
}

img {
  max-width: 100%;
}

button,
textarea,
input {
  background-color: transparent;
  border: none;
  outline: none;
  font-family: var(--body-font);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 0.75rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 2rem;
}

.section--lg {
  padding-block: 4rem;
}

.flex {
  display: flex;
  align-items: center;
}

/*=============== HEADER & NAV ===============*/
.header__top {
  background-color: var(--first-color);
  border-bottom: 1px solid var(--first-color);
  padding-block: 0.875rem;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__contact span:first-child {
  margin-right: 2rem;
}

.header__contact span,
.header__alert-news,
.header__top-action {
  color: white;
  font-size: var(--tiny-font-size);
}

.header__alert-news {
  text-align: center;
}

.header__top-action {
  display: inline-block;
}

.nav,
.nav__menu,
.nav__list,
.header__user-actions {
  display: flex;
  align-items: center;
}

.nav {
  height: calc(var(--header-height) + 2.5rem);
  justify-content: space-between;
}

.nav__logo-img {
  width: 180px;
}

.nav__menu {
  column-gap: 2.5rem;
}

.nav__list {
  column-gap: 2.5rem;
}

.nav__link {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  font-weight: var(--weight-500);
  transition: all 0.3s var(--transition);
  position: relative;
}

.header__search {
  position: relative;
  width: 100%;
  margin-left: 10rem;
}

.header__search .form__input {
  background-color: white;
  width: 100%;
}

.header__user-actions {
  column-gap: 2rem;
}

.header__action-btn {
  position: relative;
}

.header__action-btn img {
  width: 1.875rem;
}

.header__action-btn span.count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background-color: var(--first-color);
  color: white;
  height: 18px;
  width: 18px;
  line-height: 18px;
  border-radius: 50%;
  font-size: var(--tiny-font-size);
  text-align: center;
}

.nav__menu-top,
.nav__close,
.nav__toggle {
  display: none;
}

.active-link,
.nav__link:hover {
  color: var(--first-color);
}

/*=============== PAYMENT STYLES ===============*/
.payment__container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2.5rem;
 
}

/* Payment Form Styles */
.payment-form {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  padding: 32px 32px 24px 32px;
}

.payment-form h2 {
  font-size: var(--h3-font-size);
  margin-bottom: 1.25rem;
  color: var(--first-color);
  font-weight: var(--weight-700);
}

.payment-form .back-arrow {
  font-size: 22px;
  vertical-align: middle;
  margin-right: 8px;
}

.section {
  margin-bottom: 28px;
}

.section h3 {
  font-size: var(--large-font-size);
  margin-bottom: 12px;
  color: var(--text-color);
  font-weight: var(--weight-600);
}

.form-row {
  display: flex;
  gap: 18px;
  margin-bottom: 12px;
}

.form-row > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  font-size: var(--small-font-size);
  margin-bottom: 4px;
}

.form__input {
  border: 1px solid var(--border-color-alt);
  padding-inline: 1rem;
  height: 45px;
  font-size: var(--small-font-size);
  border-radius: 0.25rem;
}

.required {
  color: var(--first-color);
  font-size: var(--tiny-font-size);
  margin-left: 5px;
}

.phone-input {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.phone-code {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  padding: 0 10px;
  border-radius: 0.25rem 0 0 0.25rem;
  border: 1px solid var(--border-color-alt);
  border-right: none;
  gap: 5px;
}

.country-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
}

.phone-input .form__input {
  border-radius: 0 0.25rem 0.25rem 0;
  flex: 1;
}

.shipping-methods {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.shipping-methods button {
  padding: 10px 18px;
  border-radius: 0.25rem;
  border: 1.5px solid var(--first-color);
  background: #fff;
  color: var(--first-color);
  font-weight: var(--weight-600);
  cursor: pointer;
  font-size: var(--small-font-size);
}

.shipping-methods .active {
  background: var(--first-color);
  color: #fff;
}

.payment-methods {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.payment-btn {
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 0.25rem;
  padding: 12px 22px;
  cursor: pointer;
  transition: border 0.2s;
}

.payment-btn.active, .payment-btn:hover {
  border: 1.5px solid var(--first-color);
  background: #FFF3E6;
}

.payment-btn img {
  height: 28px;
  object-fit: contain;
}

/* Order Summary Styles */
.order-summary {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  padding: 32px 28px 24px 28px;
}

.order-summary h3 {
  font-size: var(--h4-font-size);
  margin-bottom: 18px;
  color: var(--title-color);
  font-weight: var(--weight-700);
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  border-bottom: 1px solid #f5f5f5;
  padding-bottom: 16px;
  position: relative;
}

.product-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.item-title {
  font-size: var(--small-font-size);
  font-weight: var(--weight-600);
  margin-bottom: 6px;
  color: var(--first-color);
}

.item-qty-row {
  display: flex;
  gap: 5px;
  font-size: var(--smaller-font-size);
  margin-bottom: 5px;
  align-items: center;
}

.qty-number {
  font-weight: var(--weight-600);
}

.item-price {
  font-size: var(--small-font-size);
  font-weight: var(--weight-600);
  color: var(--first-color);
}

.item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.quantity-buttons {
  display: flex;
  gap: 5px;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  background: white;
}

.minus-btn, .plus-btn {
  color: var(--first-color);
  font-weight: var(--weight-600);
}

.remove-link {
  color: var(--first-color);
  font-size: var(--smaller-font-size);
  text-decoration: none;
}

.shipping-fee, .total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 0;
  font-size: var(--small-font-size);
}

.fee-value {
  font-weight: var(--weight-600);
}

.total {
  font-weight: var(--weight-700);
  border-top: 1px solid #f5f5f5;
  padding-top: 12px;
}

.total-value {
  color: var(--first-color);
  font-size: var(--large-font-size);
}



.check-box {
  position: relative;
  display: flex;
  align-items: flex-start;
}

.check-box [type="checkbox"] {
  position: absolute;
  left: -9999px;
}

.check-box__label {
  position: relative;
  padding-left: 26px;
  cursor: pointer;
  font-size: var(--smaller-font-size);
}

.check-box__label a {
  color: var(--first-color);
  text-decoration: underline;
}

.check-box__label:before,
.check-box__label:after {
  content: "";
  position: absolute;
}

.check-box__label:before {
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-color-alt);
  border-radius: 3px;
}

.check-box input:checked ~ .check-box__state.check-box__state--primary label:before {
  background-color: var(--first-color);
  border-color: var(--first-color);
}

.check-box input:checked ~ .check-box__state.check-box__state--primary label:after {
  border-color: white;
}

.check-box__label:after {
  transform: rotate(-45deg);
  top: 5px;
  left: 4px;
  width: 10px;
  height: 5px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0.25rem;
  font-size: var(--normal-font-size);
  font-weight: var(--weight-500);
  transition: all 0.4s var(--transition);
  cursor: pointer;
  background-color: var(--btn-color);
  color: white;
  text-align: center;
}

.btn:hover {
  background-color: #5d0f0f;
}

.checkout-btn {
  width: 100%;
  margin-top: 16px;
  font-weight: var(--weight-600);
  font-size: var(--normal-font-size);
}

/* BREADCRUMB */
.breadcrumb {
  height: 50px;
  padding-left: 1rem;
  background-color: var(--container-color);
}

.breadcrumb__list {
  column-gap: 0.75rem;
}

.breadcrumb__link {
  color: var(--text-color);
  font-size: var(--small-font-size);
}

/*=============== FOOTER ===============*/
.footer {
 
  padding-block: 4rem 2rem;
}

.footer__container {
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
}

.footer__logo-img {
  width: 150px;
  margin-bottom: 1rem;
}

.footer__subtitle {
  font-size: var(--normal-font-size);
  margin-bottom: 1rem;
}

.footer__description {
  font-size: var(--small-font-size);
  margin-bottom: 1.5rem;
}

.footer__description span {
  display: block;
  margin-bottom: 0.75rem;
}

.footer__social .footer__subtitle {
  margin-bottom: 0.75rem;
}

.footer__social-links {
  column-gap: 0.5rem;
}

.footer__social-icon {
  background-color: white;
  padding: 0.5rem;
  font-size: 1.25rem;
}

.footer__title {
  font-size: var(--normal-font-size);
  margin-bottom: 1.5rem;
}

.footer__link {
  display: grid;
  row-gap: 0.75rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
  margin-bottom: 0.5rem;
}

.footer__link:hover {
  text-decoration: underline;
  color: var(--first-color);
}

.footer__bottom {

  padding-top: 2rem;
  text-align: center;
}

.secure-pay {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

.secure-pay span {
  font-size: var(--small-font-size);
  margin-bottom: 1rem;
}

.secure-pay__images {
  display: flex;
  gap: 1rem;
}

.secure-pay__images img {
  height: 24px;
  object-fit: contain;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .payment__container {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .order-summary {
    width: 100%;
  }
  
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .payment-form, .order-summary {
    padding: 20px 16px;
  }
  
  .payment-methods {
    gap: 10px;
  }
  
  .payment-btn {
    padding: 8px 14px;
  }
  
  .payment-btn img {
    height: 22px;
  }
}

@media (max-width: 576px) {
  .footer__container {
    grid-template-columns: 1fr;
  }
  
  .phone-input span {
    padding: 11px 8px;
    font-size: var(--tiny-font-size);
  }
}

/* Phone code dropdown */
.phone-code-dropdown {
  position: relative;
  min-width: 80px;
  border-radius: 0.25rem 0 0 0.25rem;
  border: 1px solid var(--border-color-alt);
  border-right: none;
  overflow: hidden;
  background: #f5f5f5;
}

.selected-country {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 11px 25px 11px 10px;
  cursor: pointer;
  position: relative;
}

.country-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.selected-country span {
  font-size: var(--small-font-size);
}

.dropdown-arrow {
  position: absolute;
  right: 8px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #999;
}

.country-select {
  position: absolute;
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Nút tăng giảm số lượng sản phẩm */
.quantity-btn {
  width: 27px;
  height: 27px;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--first-color);
  font-weight: var(--weight-500);
  background: white;
}

.minus-btn {
  font-size: 22px;
  line-height: 22px;
}

.quantity-buttons {
  display: flex;
  gap: 8px;
}

 /* Header styling */
 .header__top {
  background-color: #941212;
  padding: 8px 0;
  color: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__contact {
  font-size: 14px;
  font-weight: 500;
}

.header__alert-news {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  text-align: center;
}

.header__top-action {
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header__top-action:hover {
  color: #f8f8f8;
}

/* Navigation styling */
.nav {
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  transition: transform 0.3s ease;
}

.nav__logo:hover {
  transform: scale(1.05);
}

.nav__logo-img {
  height: 40px;
}

.nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 25px;
}

.nav__link {
  color: #333;
  font-weight: 700;
  position: relative;
  text-decoration: none;
  transition: color 0.3s var(--transition);
}

.nav__link:hover {
  color: #941212;
}

/* Active link */
.active-link,
.nav__link:hover {
  color: #941212;
}

/* Remove the underline effect */
.nav__link::after {
  content: none;
}

/* Search box styling */
.header__search {
  flex: 1;
  max-width: 250px;
  margin-left: 30px;
}

.form__input {
  width: 100%;
  padding: 8px 15px;
  border: 1.6px solid #ddd;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Make sure date inputs match other form elements */
input[type="date"].form__input {
  padding-right: 10px;
}

/* Fix display in Firefox */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.8;
  cursor: pointer;
}

.form__input:focus {
  border-color: #26551D;
  box-shadow: 0 0 0 1px rgba(38, 85, 29, 0.1);
}

/* Action buttons */
.header__user-actions {
  display: flex;
  gap: 15px;
  margin-left: 20px;
  align-items: center;
}

.header__action-btn {
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

.header__action-btn:hover {
  transform: scale(1.1);
}

.header__action-btn img {
  width: 20px;
  height: 20px;
}

.count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #941212;
  color: white;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.header__action-btn:hover .count {
  transform: scale(1.1);
}

@media (max-width: 992px) {
  .payment__container {
      grid-template-columns: 1fr;
  }
  
  .order-summary {
      max-width: 100%;
      width: 100%;
      margin: 0 auto;
      margin-right: 0;
  }
  
  .footer__row {
      grid-template-columns: 1fr 1fr;
  }
  
  .payment-methods {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .nav {
      flex-wrap: wrap;
  }
  
  .nav__list {
      order: 3;
      width: 100%;
      margin-top: 15px;
      justify-content: center;
  }
  
  .header__search {
      order: 2;
      margin-left: auto;
  }
}

@media (max-width: 768px) {
  .nav__list {
      gap: 15px;
      flex-wrap: wrap;
  }
  
  .form-row {
      grid-template-columns: 1fr;
  }
  
  .cart-items-container {
      max-height: 300px;
  }
}

@media (max-width: 576px) {
  .form-row {
      grid-template-columns: 1fr;
  }
  
  .footer__row {
      grid-template-columns: 1fr;
  }
  
  .footer__bottom-content {
      flex-direction: column;
      gap: 10px;
      text-align: center;
  }
  
  .qty-controls {
      margin: 5px 0;
  }
  
  .item-info {
      flex-direction: column;
      align-items: flex-start;
  }
  
  .item-info > span {
      margin-bottom: 5px;
  }
  
  .remove-link {
      margin-top: 5px;
      margin-left: 0;
  }
}

/* Breadcrumb styling */
.breadcrumb {
  background-color: #f5f5f5;
  padding: 10px 0;
}

.breadcrumb__list {
  list-style: none;
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.breadcrumb__link {
  color: #666;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb__link:hover {
  color: #941212;
}

/* Payment form styling */
.payment {
  padding: 40px 0;
}

.payment__container {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 30px;
  align-items: start;
}

.payment-form {
  padding-right: 20px;
}

/* Payment form heading */
.payment-form h2 {
  font-size: 22px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
}

/* Back arrow */
.back-arrow {
  margin-right: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.back-arrow:hover {
  transform: translateX(-5px);
}

.section {
  padding: 25px 0;
  margin-bottom: 0;
  border-bottom: 1.6px solid #f5f5f5;
}

.section h3 {
  font-size: 18px;
  margin-bottom: 18px;
  color: #333;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.required {
  font-size: 12px;
  color: #941212;
  font-weight: normal;
}

/* Phone input container styling */
.phone-input-container {
  display: flex;
  width: 100%;
  height: 40px;
}

.phone-country-code {
  position: relative;
  min-width: 95px;
  border: 1.6px solid #ddd;
  border-radius: 12px 0 0 12px;
  border-right: none;
  overflow: visible;
  height: 40px;
}

.phone-dropdown-btn {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  width: 100%;
  height: 40px;
  background-color: #f9f9f9;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  border: none;
}

.dropdown-arrow {
  margin-left: auto;
  font-size: 12px;
  color: #666;
}

.country-flag {
  width: 20px;
  height: 15px;
  margin-right: 5px;
  object-fit: cover;
}

.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.country-dropdown.active,
.country-dropdown.show {
  display: block;
}

.country-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.country-option:hover {
  background: #f5f5f5;
}

.country-name {
  flex: 1;
  margin: 0 8px;
}

.country-code {
  color: #666;
}

.phone-number-input {
  flex: 1;
  border-radius: 0 12px 12px 0;
  height: 40px;
}

.phone-number-input:focus {
  border-color: #26551D;
  box-shadow: 0 0 0 1px rgba(38, 85, 29, 0.1);
}

/* Shipping methods */
.shipping-methods {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.shipping-methods button {
  padding: 8px 16px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 36px;
  font-size: 13px;
}

.shipping-methods button.active {
  background-color: #26551D;
  color: white;
  border-color: #26551D;
}

.shipping-methods button:hover:not(.active) {
  border-color: #26551D;
  color: #26551D;
}

.store-pickup-container, .delivery-container {
  margin-top: 20px;
}

.store-location {
  margin-top: 20px;
}

.store-location h4 {
  margin-bottom: 15px;
  font-size: 16px;
}

.store-options {
  display: grid;
  gap: 15px;
}

.store-option {
  border: 1.6px solid #ddd;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  transition: border-color 0.3s ease;
}

.store-option input[type="radio"] {
  margin-right: 15px;
}

.store-info {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.store-name {
  font-weight: 600;
  color: #26551D;
  margin-bottom: 5px;
  grid-column: 1 / -1;
  font-size: 16px;
}

.store-address {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
  white-space: nowrap;
}

.store-hours {
  font-size: 14px;
  color: #333;
  text-align: right;
  white-space: nowrap;
}

.store-option:hover {
  border-color: #26551D;
}

.store-option input:checked ~ label {
  color: #26551D;
}

/* Payment method styling */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.payment-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.payment-btn {
  width: 100%;
  height: 60px;
  border: 1px solid #ddd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 5px;
  padding: 8px;
}

.payment-btn.active {
  border-color: #941212;
  box-shadow: 0 0 0 1px #941212;
}

.payment-btn:hover:not(.active) {
  border-color: #ddd;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.payment-btn img {
  max-height: 28px;
  max-width: 75%;
  object-fit: contain;
}

.payment-method span {
  font-size: 0.8rem;
  color: #666;
  margin-top: 3px;
}

/* New payment options styles */
.payment-options-container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 25px 20px;
  background-color: #fff;
  border-radius: 12px;
}

.payment-option-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.payment-option {
  width: 75%;
  height: 60px;
  padding: 8px 10px;
  background-color: #ffffff;
  border: 1.6px solid #e6e6e6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 5px;
}

.payment-option.active {
  border-color: #26551D;
  border-width: 1.6px;
  box-shadow: none;
  background-color: #ffffff;
}

.payment-option:hover:not(.active) {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.payment-option img {
  max-height: 32px;
  max-width: 80%;
  object-fit: contain;
}

.payment-label {
  font-size: 0.8rem;
  color: #555;
  margin-top: 8px;
  text-align: center;
}

/* Order summary */
.order-summary {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  width: 150%;
  max-width: 470px;
  margin-left: auto;
  margin-right: 10%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1.6px solid #f0f0f0;
}

.order-summary h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--title-color);
  font-weight: 700;
}

.cart-items-container {
  /* Remove scrolling */
  max-height: unset;
  overflow-y: visible;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  padding: 15px 0;
  border-bottom: 1.6px solid #ddd;
  align-items: center;
}

.product-image {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 15px;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 15px;
  color: #941212;
}

.item-info {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
}

.item-info-label {
  margin-right: 15px;
  font-weight: 500;
}

.qty-controls {
  display: flex;
  align-items: center;
  margin-left: auto;
  border: 1.6px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  min-width: 100px;
  justify-content: space-between;
  height: 30px;
  background-color: #ffffff;
}

.qty-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  cursor: pointer;
  border: none;
  font-size: 16px;
  color: #666;
  transition: background-color 0.2s;
}

.qty-btn:hover {
  background-color: #f0f0f0;
}

.qty-number {
  padding: 0 8px;
  font-size: 14px;
  min-width: 24px;
  text-align: center;
  font-weight: 500;
}

.remove-link {
  font-size: 14px;
  color: #941212;
  text-decoration: none;
  margin-left: 15px;
  transition: color 0.2s;
}

.remove-link:hover {
  color: #6b0d0d;
  text-decoration: underline;
}

.item-price {
  font-weight: 600;
  color: #333;
  font-size: 15px;
  margin-top: 5px;
}

.shipping-fee, .total {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1.6px solid #ddd;
  font-size: 15px;
}

.fee-value {
  font-weight: 500;
  color: #333;
}

.total {
  font-weight: 600;
  margin-top: 6px;
  border-top: none;
  margin-bottom: 20px;
  font-size: 16px;
}

.total-value {
  color: #941212;
  font-weight: 700;
  font-size: 20px;
}

/* Custom checkbox styling */
.terms {
  margin-top: 10px;
  margin-bottom: 30px;
}

.check-box {
  display: flex;
  align-items: flex-start;
  margin-bottom: 5px;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
}

.check-box input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.check-box:hover input ~ .checkbox-custom {
  border-color: #941212;
}

.check-box input:checked ~ .checkbox-custom {
  background-color: #941212;
  border-color: #941212;
}

.checkbox-custom:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-box input:checked ~ .checkbox-custom:after {
  display: block;
}

.check-box span {
  font-size: 14px;
  color: #555;
  line-height: 20px;
}

.check-box a {
  color: #941212;
  text-decoration: none;
  font-weight: 600;
}

.checkout-btn {
  width: 100%;
  padding: 12px;
  background-color: #941212;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  height: auto;
  margin-bottom: 0;
}

.checkout-btn:hover {
  background-color: #6b0d0d;
}

/* Footer styling */
.footer {
  padding-top: 60px;
  
  
}

.footer__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer__logo-img {
  height: 40px;
  margin-bottom: 25px;
  transition: transform 0.3s ease;
}

.footer__logo:hover .footer__logo-img {
  transform: scale(1.05);
}

.footer__heading {
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
}

.footer__info {
  margin: 0 0 8px;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.footer__social {
  margin-top: 25px;
}

.footer__social-title {
  font-size: 13px;
  margin-bottom: 12px;
  color: #666;
  font-weight: normal;
}

.footer__social-links {
  display: flex;
  gap: 15px;
}

.footer__social-link {
  color: #666;
  font-size: 16px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer__social-link:hover {
  color: #941212;
  transform: translateY(-3px);
}

.footer__title {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__link {
  color: #666;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer__link:hover {
  color: #941212;
  transform: translateX(5px);
}

.footer__payment {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.payment-logo {
  height: 30px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.payment-logo:hover {
  transform: scale(1.1);
}

.footer__bottom {
  margin-top: 50px;
  padding: 15px 0;

}

.footer__bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright, .designer {
  font-size: 13px;
  color: #666;
  margin: 0;
}

/* Country Dropdown Styling */
.country-section {
  position: relative;
}

.selected-country {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 6px 10px;
  border-right: 1px solid #ddd;
}

.country-flag {
  width: 20px;
  height: 15px;
  margin-right: 5px;
  object-fit: cover;
}

.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.country-dropdown.active,
.country-dropdown.show {
  display: block;
}

.country-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.country-option:hover {
  background: #f5f5f5;
}

.country-name {
  flex: 1;
  margin: 0 8px;
}

.country-code {
  color: #666;
}

/* Checkbox styling */
.checkbox-container {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.checkbox-wrapper {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.checkbox-custom {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Product Summary Styles */
.product-summary {
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.product-items {
  max-height: 250px;
  overflow-y: auto;
}

.product-item {
  display: flex;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f5f5f5;
}

.product-item:last-child {
  border-bottom: none;
}

.product-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 10px;
}

.product-details {
  flex-grow: 1;
}

.product-name {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 2px 0;
  color: #333;
}

.product-variant {
  font-size: 11px;
  color: #777;
  margin-bottom: 2px;
}

.product-price {
  font-weight: 500;
  color: #333;
  font-size: 13px;
}

/* Terms Agreement Styles */
.terms-agreement {
  display: flex;
  align-items: flex-start;
  margin: 12px 0;
}

.terms-agreement input[type="checkbox"] {
  margin-right: 8px;
  margin-top: 2px;
}

.terms-agreement label {
  font-size: 12px;
  color: #555;
  line-height: 1.4;
}

.terms-agreement a {
  color: #941212;
  text-decoration: none;
}

.checkout-button {
  width: 100%;
  padding: 8px;
  background-color: #941212;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  height: 36px;
}

.checkout-button:hover {
  background-color: #6b0d0d;
}

/* Custom radio button styling */
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.6px solid #e0e0e0;
  border-radius: 50%;
  outline: none;
  transition: all 0.2s ease;
  margin-right: 10px;
  position: relative;
}

input[type="radio"]:checked {
  border-color: #941212;
  background-color: white;
}

input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #941212;
}

input[type="radio"]:hover {
  border-color: #941212;
}

/* New payment button styles */
.payment-container {
background-color: #ffffff;
display: flex;
width: 80%;
max-width: 500px;
height: 60px;
position: relative;
border-radius: 12px;
transition: 0.3s ease-in-out;
margin: 20px auto;
border: 1px solid #e0e0e0;
}

.payment-container:hover {
transform: scale(1.02);
width: 140px;
margin: 20px auto;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.payment-container:hover .payment-left-side {
width: 100%;
}

.payment-left-side {
background-color: #447029;
width: 80px;
height: 60px;
border-radius: 12px;
position: relative;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: 0.3s;
flex-shrink: 0;
overflow: hidden;
}

.payment-right-side {
width: calc(100% - 80px);
display: flex;
align-items: center;
text-align: center;
justify-content: center;
overflow: hidden;
cursor: pointer;

white-space: nowrap;
transition: 0.3s;

}

.payment-right-side:hover {
background-color: #f9f7f9;
}

.payment-arrow {
width: 20px;
height: 20px;
margin-right: 20px;
}

.payment-new {
font-size: 16px;
font-family: inherit;
margin-left: 15px;
font-weight: 600;
color: var(--title-color);
}

.payment-card {
width: 50px;
height: 34px;
background-color: #D7F8C2;
border-radius: 6px;
position: absolute;
display: flex;
z-index: 10;
flex-direction: column;
align-items: center;

}

.payment-card-line {
width: 45px;
height: 8px;
background-color: #6FB462;
border-radius: 2px;
margin-top: 6px;
}

@media only screen and (max-width: 480px) {
.payment-container {
  transform: scale(0.7);
}

.payment-container:hover {
  transform: scale(0.74);
}

.payment-new {
  font-size: 16px;
}
}

.payment-buttons {
width: 6px;
height: 6px;
background-color: #379164;
box-shadow: 0 -8px 0 0 #1e3a15, 0 8px 0 0 #83db72;
border-radius: 50%;
margin-top: 4px;
transform: rotate(90deg);
margin: 8px 0 0 -25px;
}

.payment-container:hover .payment-card {
animation: payment-slide-top 1.2s cubic-bezier(0.645, 0.045, 0.355, 1) both;
}

.payment-container:hover .payment-post {
animation: payment-slide-post 1s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

@keyframes payment-slide-top {
0% {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

50% {
  -webkit-transform: translateY(-70px) rotate(90deg);
  transform: translateY(-70px) rotate(90deg);
}

60% {
  -webkit-transform: translateY(-70px) rotate(90deg);
  transform: translateY(-70px) rotate(90deg);
}

100% {
  -webkit-transform: translateY(-8px) rotate(90deg);
  transform: translateY(-8px) rotate(90deg);
}
}

.payment-post {
width: 45px;
height: 55px;
background-color: #dddde0;
position: absolute;
z-index: 11;
bottom: 8px;
top: 80px;
border-radius: 6px;
overflow: hidden;
}

.payment-post-line {
width: 35px;
height: 7px;
background-color: #545354;
position: absolute;
border-radius: 0px 0px 3px 3px;
right: 6px;
top: 6px;
}

.payment-post-line:before {
content: "";
position: absolute;
width: 35px;
height: 7px;
background-color: #757375;
top: -7px;
}

.payment-screen {
width: 35px;
height: 18px;
background-color: #ffffff;
position: absolute;
top: 18px;
right: 6px;
border-radius: 3px;
}

.payment-numbers {
width: 10px;
height: 10px;
background-color: #838183;
box-shadow: 0 -15px 0 0 #838183, 0 15px 0 0 #838183;
border-radius: 2px;
position: absolute;
transform: rotate(90deg);
left: 20px;
top: 42px;
}

.payment-numbers-line2 {
width: 10px;
height: 10px;
background-color: #aaa9ab;
box-shadow: 0 -15px 0 0 #aaa9ab, 0 15px 0 0 #aaa9ab;
border-radius: 2px;
position: absolute;
transform: rotate(90deg);
left: 20px;
top: 55px;
}

@keyframes payment-slide-post {
50% {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

100% {
  -webkit-transform: translateY(-70px);
  transform: translateY(-70px);
}
}

.payment-dollar {
position: absolute;
font-size: 12px;
font-family: inherit;
width: 100%;
left: 0;
top: 3px;
color: #26551D;
text-align: center;
font-weight: bold;
}

.payment-container:hover .payment-dollar {
animation: payment-fade-in-fwd 0.3s 1s backwards;
}

@keyframes payment-fade-in-fwd {
0% {
  opacity: 0;
  transform: translateY(-5px);
}

100% {
  opacity: 1;
  transform: translateY(0);
}
}