/* ========== CART PAGE STYLES ========== */
:root{

  --realbg: #f3f3f3;
  --bg: #0f0f0f;
  --fg: #fff;
  --card-1: #F7D5D6;
  --card-2: #FFFFFF;
  --card-3: #E79E9A;
  --base-100: #fafaf0;
  --base-200: #deded5;
  --base-300: #0f0f0f;
  --darkb: #C2A49C;
  --lightb:#F0E6DF;
  --whitebrand:#FFFFFF;
  --lightp:#F7D5D6;
  --darkp:#E79E9A;
  --lightc: #FFBFA7;
  --darkc:#FEAB8D;
  --success: #4CAF50;
  --warning: #FF9800;
  --danger: #F44336;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Quicksand', sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  padding-top: 80px;
}

.outro-image{
  width: 100%;
  height: 65vh;
  overflow: hidden;
  border-radius: 25px 25px 0 0;
}

.outro-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== HEADER ========== */
.cart-header {
  text-align: center;
  padding: 2rem 1rem;
}

.cart-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.cart-header p {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* ========== CART CONTAINER ========== */
.cart-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cart-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

/* ========== CART ITEMS ========== */
.cart-items {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cart-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.cart-item:last-child {
  border-bottom: none;
}

.item-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--gray);
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.item-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.item-info p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: scale(1.05);
}

.quantity-value {
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

.item-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
}

.item-price-original {
  font-size: 1rem;
  font-weight: 400;
  color: #ffffff;
  opacity: 0.7;
  text-decoration: line-through;
}

.item-price-discounted {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ff6b6b;
}

.remove-item {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.2s ease;
  font-size: 1.2rem;
}

.remove-item:hover {
  transform: scale(1.1);
  color: #ff0000;
}

/* ========== ORDER SUMMARY ========== */
.order-summary {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: sticky;
  top: 100px;
  height: fit-content;
}

.summary-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #ffffff;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 1.1rem;
}

.summary-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-total {
  font-weight: 700;
  font-size: 1.3rem;
  margin-top: 0.5rem;
  color: #ffffff;
}

.summary-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0.5rem 0;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  background: #ffffff;
  color: #000000;
  font-size: 1.1rem;
  font-weight: 600;
  border: 1px solid #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background: #000000;
  color: #ffffff;
}

.continue-shopping {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  background: transparent;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  border: 1px solid #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.continue-shopping:hover {
  background: #ffffff;
  color: #000000;
}

/* ========== EMPTY CART ========== */
.empty-cart {
  text-align: center;
  padding: 3rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.empty-cart h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.empty-cart p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

/* ========== FOOTER ========== */
.footer {
  background-color: var(--bg);
  padding: 4rem 4rem 0;
  color: var(--fg);
  flex-grow: 1;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Left Side Styling */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  margin-bottom: 0;
}

.footer-logo img {
  height: 50px;
  width: auto;
  display: block;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 400;
}

.contact-item svg {
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--fg);
  color: var(--bg);
  border-radius: 50%;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

/* Right Side Styling */
.footer-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.footer-column h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column a {
  text-decoration: none;
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 400;
  transition: opacity 0.3s ease;
}

.footer-column a:hover {
  opacity: 0.6;
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 3rem;
  padding-bottom: 2rem;
}

.footer-line {
  width: 100%;
  height: 1px;
  background-color: rgb(245, 245, 245);
  margin-bottom: 1.5rem;
}

.footer-copyright {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.7;
  text-align: center;
}

/* ========== RESPONSIVE FOOTER ========== */
@media (max-width: 768px) {
  .footer {
    padding: 3rem 2rem 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-right {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-left {
    gap: 1.25rem;
  }

  .footer-logo img {
    height: 40px;
  }

  .contact-item {
    font-size: 0.85rem;
  }

  .footer-column h3 {
    font-size: 1rem;
  }

  .footer-column a {
    font-size: 0.85rem;
  }

  .footer-bottom {
    padding-bottom: 1.5rem;
  }
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet Styles */
@media (max-width: 1000px) {
  .cart-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .order-summary {
    position: static;
  }
  
  .cart-item {
    padding: 1.25rem 0;
  }
  
  .item-image {
    width: 100px;
    height: 100px;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .cart-header h1 {
    font-size: 2rem;
  }
  
  .cart-header {
    padding: 1.5rem 1rem;
  }
  
  .cart-item {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .item-image {
    width: 100%;
    height: 200px;
  }
  
  .item-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .quantity-controls {
    align-self: flex-start;
  }
  
  .item-price {
    align-self: flex-start;
  }
  
  .remove-item {
    align-self: flex-start;
    margin-top: 0.5rem;
  }
  
  .summary-item {
    font-size: 1rem;
  }
  
  .summary-total {
    font-size: 1.2rem;
  }
  
  .checkout-btn, .continue-shopping {
    padding: 0.9rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .cart-header h1 {
    font-size: 1.8rem;
  }
  
  .cart-header p {
    font-size: 1rem;
  }
  
  .cart-items, .order-summary {
    padding: 1.25rem;
  }
  
  .item-image {
    height: 150px;
  }
  
  .item-info h3 {
    font-size: 1.1rem;
  }
  
  .item-info p {
    font-size: 0.9rem;
  }
  
  .item-price {
    font-size: 1.1rem;
  }
  
  .summary-title {
    font-size: 1.3rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .item-image {
    height: 120px;
  }
  
  .quantity-btn {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
  
  .summary-item {
    font-size: 0.9rem;
  }
  
  .summary-total {
    font-size: 1.1rem;
  }
}

/* Cart sections for first trial and regular items */
.cart-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.cart-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cart-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}