/* =========================================================
   VYEDI CART PAGE
========================================================= */

:root {
  --primary: #9b4d20;
  --primary-dark: #743514;
  --gold: #c89532;
  --gold-light: #ead39b;

  --dark: #2b211b;
  --text: #51443b;
  --muted: #81736a;

  --cream: #fffaf2;
  --white: #ffffff;

  --border: #eadfd3;
  --soft: #f8f1e8;

  --success: #3f7a4d;

  --shadow: 0 15px 40px rgba(70, 45, 25, 0.08);

  --container: 1200px;
}


/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Segoe UI",
    Arial,
    sans-serif;

  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(
    calc(100% - 40px),
    var(--container)
  );

  margin: 0 auto;
}


/* =========================================================
   TOP BAR
========================================================= */

.top-bar {
  background: var(--dark);
  color: #fff;
  font-size: 13px;
}

.top-bar-inner {
  width: min(
    calc(100% - 40px),
    var(--container)
  );

  min-height: 38px;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 40px;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255, 250, 242, 0.97);

  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(10px);
}

.header-container {
  width: min(
    calc(100% - 40px),
    var(--container)
  );

  min-height: 82px;

  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  width: 105px;
  height: auto;
}

.desktop-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
}

.desktop-navigation > a,
.desktop-dropdown-button {
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;

  background: none;
  border: none;

  transition: color 0.2s ease;
}

.desktop-navigation > a:hover,
.desktop-navigation > a.active,
.desktop-dropdown-button:hover {
  color: var(--primary);
}

.desktop-dropdown {
  position: relative;
}

.desktop-dropdown-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 30px 0;
}

.desktop-dropdown-menu {
  position: absolute;

  top: 100%;
  left: 50%;

  transform:
    translate(-50%, 10px);

  width: 220px;

  padding: 10px;

  background: var(--white);

  border: 1px solid var(--border);

  box-shadow: var(--shadow);

  border-radius: 8px;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.desktop-dropdown:hover .desktop-dropdown-menu {
  opacity: 1;
  visibility: visible;

  transform:
    translate(-50%, 0);
}

.desktop-dropdown-menu a {
  display: block;

  padding: 10px 12px;

  border-radius: 5px;

  font-size: 14px;
}

.desktop-dropdown-menu a:hover {
  background: var(--soft);
  color: var(--primary);
}


/* HEADER ACTIONS */

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon,
.cart-link {
  border: 0;
  background: transparent;

  color: var(--dark);

  min-height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 5px;
}

.header-icon:hover,
.cart-link:hover {
  color: var(--primary);
}

.cart-link {
  position: relative;
  font-size: 14px;
  font-weight: 600;
}

.cart-link b {
  min-width: 20px;
  height: 20px;

  border-radius: 50%;

  background: var(--primary);
  color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 11px;
}

.active-cart {
  color: var(--primary);
}

.mobile-menu-button {
  display: none;

  width: 42px;
  height: 42px;

  border: 1px solid var(--border);
  background: var(--white);

  border-radius: 6px;

  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 4px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: var(--dark);
}


/* SEARCH */

.header-search {
  display: none;

  border-top: 1px solid var(--border);

  padding: 14px 20px;
}

.header-search.open {
  display: block;
}

.header-search-inner {
  width: min(
    100%,
    700px
  );

  margin: auto;

  display: flex;
  gap: 8px;
}

.header-search input {
  flex: 1;

  min-width: 0;

  border: 1px solid var(--border);

  padding: 12px 15px;

  border-radius: 5px;

  outline: none;
}

.header-search input:focus {
  border-color: var(--gold);
}

.header-search button {
  border: none;

  padding: 0 20px;

  background: var(--primary);
  color: white;

  border-radius: 5px;
}


/* MOBILE NAV */

.mobile-navigation {
  display: none;

  border-top: 1px solid var(--border);

  background: var(--white);
}

.mobile-navigation.open {
  display: block;
}

.mobile-navigation > a,
.mobile-dropdown-button {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 20px;

  border: 0;
  border-bottom: 1px solid var(--border);

  background: transparent;

  color: var(--dark);

  font-weight: 600;
}

.mobile-dropdown-content {
  display: none;

  background: var(--soft);
}

.mobile-dropdown-content.open {
  display: block;
}

.mobile-dropdown-content a {
  display: block;
  padding: 11px 35px;
  font-size: 14px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.breadcrumb .container {
  min-height: 55px;

  display: flex;
  align-items: center;

  gap: 10px;

  font-size: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb strong {
  color: var(--dark);
}


/* =========================================================
   PAGE HEADING
========================================================= */

.cart-page {
  padding: 65px 0 90px;
}

.page-heading {
  text-align: center;
  margin-bottom: 45px;
}

.page-heading > span {
  display: block;

  color: var(--gold);

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 3px;
}

.page-heading h1 {
  margin-top: 8px;

  color: var(--dark);

  font-family: Georgia, serif;

  font-size: clamp(32px, 5vw, 48px);
}

.page-heading p {
  margin-top: 8px;
  color: var(--muted);
}


/* =========================================================
   CART LAYOUT
========================================================= */

.cart-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    350px;

  gap: 35px;

  align-items: start;
}


/* =========================================================
   CART PRODUCTS
========================================================= */

.cart-products {
  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 12px;

  overflow: hidden;

  box-shadow: var(--shadow);
}

.cart-products-header {
  display: grid;

  grid-template-columns:
    minmax(260px, 1fr)
    110px
    150px
    110px;

  gap: 15px;

  padding: 18px 22px;

  background: var(--soft);

  border-bottom: 1px solid var(--border);

  color: var(--muted);

  font-size: 12px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 1px;
}

.cart-items {
  padding: 0 22px;
}


/* PRODUCT ITEM */

.cart-item {
  display: grid;

  grid-template-columns:
    minmax(260px, 1fr)
    110px
    150px
    110px;

  gap: 15px;

  align-items: center;

  padding: 22px 0;

  border-bottom: 1px solid var(--border);
}

.cart-product-info {
  display: flex;
  align-items: center;

  gap: 16px;

  min-width: 0;
}

.cart-product-image {
  width: 95px;
  height: 95px;

  flex-shrink: 0;

  border-radius: 8px;

  overflow: hidden;

  background: var(--soft);

  border: 1px solid var(--border);

  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-product-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.cart-product-placeholder {
  font-size: 32px;
}

.cart-product-name {
  color: var(--dark);

  font-size: 16px;
  font-weight: 700;

  line-height: 1.35;
}

.cart-product-category {
  margin-top: 4px;

  color: var(--muted);

  font-size: 12px;
}

.cart-remove {
  margin-top: 8px;

  border: none;
  background: none;

  color: #a15b4d;

  font-size: 12px;

  text-decoration: underline;
}

.cart-price {
  font-weight: 700;
  color: var(--dark);
}

.cart-old-price {
  display: block;

  margin-top: 2px;

  color: #aaa;

  font-size: 12px;

  text-decoration: line-through;
}


/* QUANTITY */

.cart-quantity {
  display: inline-flex;

  align-items: center;

  border: 1px solid var(--border);

  border-radius: 6px;

  overflow: hidden;
}

.cart-quantity button {
  width: 34px;
  height: 36px;

  border: none;

  background: var(--soft);

  color: var(--dark);

  font-size: 18px;
}

.cart-quantity button:hover {
  background: var(--gold-light);
}

.cart-quantity input {
  width: 40px;
  height: 36px;

  border: none;

  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);

  text-align: center;

  outline: none;

  background: white;
}


/* TOTAL */

.cart-item-total {
  color: var(--primary);

  font-weight: 800;
}


/* CART ACTIONS */

.cart-actions {
  display: flex;

  align-items: center;
  justify-content: space-between;

  padding: 20px 22px;
}

.continue-shopping {
  color: var(--primary);

  font-size: 14px;
  font-weight: 700;
}

.continue-shopping:hover {
  text-decoration: underline;
}

.clear-cart {
  border: none;
  background: none;

  color: #9b5c50;

  font-size: 13px;

  text-decoration: underline;
}


/* =========================================================
   SUMMARY
========================================================= */

.cart-summary {
  position: sticky;
  top: 110px;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 12px;

  padding: 28px;

  box-shadow: var(--shadow);
}

.cart-summary h2 {
  color: var(--dark);

  font-family: Georgia, serif;

  font-size: 24px;

  margin-bottom: 24px;
}

.summary-line {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin-bottom: 14px;

  font-size: 14px;
}

.summary-line strong {
  color: var(--dark);
}

.shipping-note {
  margin-top: 5px;

  color: var(--muted);

  font-size: 12px;
}

.summary-divider {
  height: 1px;

  background: var(--border);

  margin: 22px 0;
}

.summary-total {
  display: flex;

  align-items: center;
  justify-content: space-between;

  margin-bottom: 24px;
}

.summary-total span {
  color: var(--dark);

  font-weight: 700;
}

.summary-total strong {
  color: var(--primary);

  font-size: 23px;
}

.checkout-button {
  width: 100%;

  min-height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 15px;

  background: var(--primary);
  color: white;

  border-radius: 6px;

  font-weight: 700;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.checkout-button:hover {
  background: var(--primary-dark);

  transform: translateY(-2px);
}

.checkout-button.disabled {
  pointer-events: none;

  opacity: 0.45;
}

.secure-checkout {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-top: 20px;

  padding-top: 18px;

  border-top: 1px solid var(--border);
}

.secure-checkout > span {
  font-size: 22px;
}

.secure-checkout strong {
  display: block;

  color: var(--dark);

  font-size: 13px;
}

.secure-checkout small {
  color: var(--muted);

  font-size: 11px;
}


/* =========================================================
   EMPTY CART
========================================================= */

.empty-cart {
  max-width: 650px;

  margin: 0 auto;

  padding: 70px 30px;

  text-align: center;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 12px;

  box-shadow: var(--shadow);
}

.empty-cart-icon {
  font-size: 60px;
  margin-bottom: 15px;
}

.empty-cart h2 {
  color: var(--dark);

  font-family: Georgia, serif;

  font-size: 30px;
}

.empty-cart p {
  max-width: 480px;

  margin: 10px auto 25px;

  color: var(--muted);
}

.primary-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding: 0 25px;

  border-radius: 5px;

  background: var(--primary);
  color: white;

  font-weight: 700;
}

.primary-button:hover {
  background: var(--primary-dark);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  background: var(--dark);
  color: #eee;
}

.footer-container {
  width: min(
    calc(100% - 40px),
    var(--container)
  );

  margin: auto;

  padding: 60px 0;

  display: grid;

  grid-template-columns:
    2fr
    1fr
    1fr
    1fr;

  gap: 45px;
}

.footer-brand img {
  width: 105px;

  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 270px;

  margin-top: 15px;

  color: #cfc5bc;

  font-size: 14px;
}

.footer-column {
  display: flex;
  flex-direction: column;

  gap: 9px;
}

.footer-column h3 {
  margin-bottom: 8px;

  color: var(--gold-light);

  font-family: Georgia, serif;
}

.footer-column a {
  color: #cfc5bc;

  font-size: 14px;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  padding: 18px 20px;

  border-top: 1px solid rgba(255,255,255,0.1);

  text-align: center;

  color: #bdb1a8;

  font-size: 13px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

  .desktop-navigation {
    gap: 14px;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

}


@media (max-width: 800px) {

  .desktop-navigation {
    display: none;
  }

  .mobile-menu-button {
    display: flex;
  }

  .top-bar-inner {
    gap: 15px;
    font-size: 11px;
  }

  .top-bar-inner span:nth-child(3) {
    display: none;
  }

  .cart-products-header {
    display: none;
  }

  .cart-item {
    grid-template-columns: 1fr;
    gap: 14px;

    padding: 20px 0;
  }

  .cart-price,
  .cart-quantity,
  .cart-item-total {
    margin-left: 111px;
  }

  .cart-price::before {
    content: "Price: ";
    color: var(--muted);
    font-weight: 400;
  }

  .cart-item-total::before {
    content: "Total: ";
    color: var(--muted);
    font-weight: 400;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

}


@media (max-width: 560px) {

  .container,
  .header-container,
  .footer-container {
    width: min(
      calc(100% - 28px),
      var(--container)
    );
  }

  .header-container {
    min-height: 68px;
  }

  .logo img {
    width: 85px;
  }

  .header-actions {
    gap: 5px;
  }

  .header-icon {
    width: 34px;
  }

  .cart-link span {
    display: none;
  }

  .breadcrumb .container {
    min-height: 48px;

    font-size: 12px;
  }

  .cart-page {
    padding: 45px 0 60px;
  }

  .page-heading {
    margin-bottom: 30px;
  }

  .page-heading h1 {
    font-size: 34px;
  }

  .cart-products {
    border-radius: 8px;
  }

  .cart-items {
    padding: 0 15px;
  }

  .cart-product-image {
    width: 82px;
    height: 82px;
  }

  .cart-product-name {
    font-size: 14px;
  }

  .cart-price,
  .cart-quantity,
  .cart-item-total {
    margin-left: 98px;
  }

  .cart-actions {
    padding: 17px 15px;
  }

  .cart-summary {
    padding: 22px 18px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .top-bar-inner {
    min-height: 34px;
  }

}