*, ::before, ::after {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  font-family: var(--Inter);
}

:root {
  --primary: #779479;
  --secondary: #093b38;
  --brdr: 1px solid #f00;
  --fa: FontAwesome;
  --pacifico: Pacifico;
  --success: #4CAF50;
  --info: #2196F3;
  --warning: #ffeb3b;
  --danger: #f44336;
  --Inter: Inter;
  --dimmed: #727171;
}

::selection {
  color: yellow;
  background-color: red;
}

@font-face {
  font-family: 'FontAwesome';
  src: url('/fonts/fontawesome-webfont.eot?v=4.7.0');
  src: url('/fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format("embedded-opentype"), url('/fonts/fontawesome-webfont.woff2?v=4.7.0') format("woff2"), url('/fonts/fontawesome-webfont.woff?v=4.7.0') format("woff"), url('/fonts/fontawesome-webfont.ttf?v=4.7.0') format("truetype"), url('/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url(../fonts/Inter/Inter-Black.ttf) format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}
@font-face {
  font-family: Inter;
  src: url(/fonts/Inter/Inter-Bold.ttf) format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 800;
}
@font-face {
  font-family: Inter;
  src: url(/fonts/Inter/Inter-ExtraBold.ttf) format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}
@font-face {
  font-family: Inter;
  src: url(/fonts/Inter/Inter-Medium.ttf) format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}
@font-face {
  font-family: Inter;
  src: url(/fonts/Inter/Inter-Regular.ttf) format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}
@font-face {
  font-family: Inter;
  src: url(../fonts/Inter/Inter-SemiBold.ttf) format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: Pacifico;
  src: url(/fonts/pacifico/Pacifico.ttf) format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: normal;
}

.info, .danger, .success, .warning {
    text-align: center;
    padding: 10px;
}
.info, .danger, .success {
  color: white;
}

.info {
  background-color: var(--info);
}

.success {
  background-color: var(--success);
}
.warning {
  background-color: var(--warning);
}
.danger {
    background-color: var(--danger);
}
a {
  text-decoration: none;
  color: inherit;
}
#error-message {
  color: red;
  margin-top: 10px;
}

/* =============== CART STYLING =============== */
.cart-ctnr {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.cart-ctnr h1 {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 35px;
  font-weight: 700;
}

.c-cart-item-ctnr {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.c-cart-items {
  flex: 1;
  min-width: 0;
}

.c-item-bx {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease;
}

.c-item-bx:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ci-img {
  flex-shrink: 0;
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ci-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.frm-remove-item {
  position: absolute;
  right: 5px;
  top: 5px;
}

.frm-remove-item button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--danger);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 0;
  transition: all 0.2s ease;
}

.frm-remove-item button:hover {
  background-color: #c62828;
  transform: scale(1.1);
}

.frm-remove-item button::after {
  content: '\f00d';
  font-family: var(--fa);
  font-size: 0.8rem;
}

.ci-desc {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 0;
}

.cip-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 10px;
}

.cip-size,
.cip-price,
.cip-qty,
.cip-total {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cip-size span,
.cip-price span,
.cip-qty span,
.cip-total span {
  font-weight: 600;
  color: var(--secondary);
}

.cip-price,
.cip-total {
  color: var(--secondary);
  font-weight: 600;
}

/* Cart Summary Sidebar */
.c-cart-action {
  width: 350px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.c-cart-action > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee;
}

.c-cart-action .subtotal {
  color: #666;
  font-weight: 500;
  font-size: 0.95rem;
}

.c-cart-action .subtotal span {
  font-weight: 600;
  color: var(--secondary);
}

.c-cart-action .total {
  font-size: 1.3rem;
  font-weight: 700;
  border-bottom: none;
  margin-bottom: 25px;
  padding-bottom: 0;
}

.c-cart-action .total span {
  color: var(--secondary);
}

.c-cart-action a {
  display: block;
  text-align: center;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.c-cart-action .continue-shopping {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.c-cart-action .continue-shopping:hover {
  background-color: var(--primary);
  color: white;
}

.c-cart-action .checkout {
  background-color: var(--secondary);
  color: white;
  margin-bottom: 0;
}

.c-cart-action .checkout:hover {
  background-color: #052625;
}

/* Empty Cart State */
.cart-no-item {
  text-align: center;
  padding: 80px 40px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.cart-no-item h2 {
  font-size: 1.6rem;
  color: var(--secondary);
  margin: 0 0 30px 0;
  font-weight: 600;
}

.cart-no-item img {
  max-width: 180px;
  margin: 0 0 30px 0;
}

.cart-no-item a {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 12px 35px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cart-no-item a:hover {
  background-color: var(--secondary);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .c-cart-item-ctnr {
    flex-direction: column;
  }

  .c-cart-action {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .cart-ctnr {
    padding: 20px 15px;
  }

  .cart-ctnr h1 {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }

  .c-item-bx {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }

  .ci-img {
    width: 100%;
    height: 120px;
  }

  .c-cart-action {
    padding: 20px;
  }

  .c-cart-action a {
    font-size: 0.9rem;
    padding: 10px 16px;
  }
}