/* ================= ROOT VARIABLES ================= */
:root {
  --bg-dark: #050505;
  --bg-black: #000;
  --panel-bg: rgba(255, 255, 255, 0.05);
  --border: #2a2a2a;
  --text-muted: #9a9a9a;
  --brand-red: #e10600;
  --green: #00ff7f;
}
a {
  text-decoration: none;
  border-bottom: none;
  box-shadow: none;
}

/* ================= GLOBAL ================= */
body {
  margin: 0;
  background: var(--bg-dark);
  color: #fff;
  font-family: "Poppins", sans-serif;
}

.container {
  max-width: 1280px;
  margin: auto;
  padding: 0 15px;
}

/* ============================================
   TOP BAR (Refined Spacing)
   ============================================ */
.top-bar {
  background-color: var(--color-primary);
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  background-color: #e63946;
}

.top-bar-content {
  display: flex;
  justify-content: center; /* Center-aligned per reference image */
  align-items: center;
  gap: 20px;
}

/* ============================================
   HEADER & LOGO (Resized)
   ============================================ */
.header {
  background-color: var(--color-bg-black);
  height: var(--header-height);
  display: flex;
  flex-direction: column;
  align-items: center;

  border-bottom: 1px solid #1a1a1a;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 22px;
  font-weight: 800;
}

.logo-storage {
  color: var(--color-orange);
  font-family: "Comic Sans MS", "Poppins", cursive, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.logo-hub {
  color: var(--color-white);
  font-family: "Comic Sans MS", "Poppins", cursive, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

/* ============================================
   SEARCH BAR (Adjusted Width)
   ============================================ */
.search-bar {
  display: flex;
  flex: 1;
  max-width: 650px; /* Wider search bar for premium look */
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  height: 44px;
}

.category-select {
  height: 100%; /* Ensure it fills the height of the search bar container */
  padding: 0 35px 0 15px; /* Extra right padding for the arrow if needed */
  border: none;
  border-right: 1px solid #e0e0e0;
  font-size: 13px;
  background: #fdfdfd;
  cursor: pointer;

  /* Alignment Properties */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: normal; /* Prevents text from sitting too high or low */
  outline: none;

  /* Optional: custom arrow fix */
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2210%22%20height%3D%2210%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* Ensure the parent search bar container uses flex for alignment */
.search-bar {
  display: flex;
  align-items: stretch; /* Forces children to be the same height */
  height: 45px; /* Adjust based on your header design */
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.search-input {
  flex: 1;
  padding: 0 15px;
  border: none;
  outline: none;
  font-size: 14px;
}

.search-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0 30px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.3s;
}

/* ============================================
   HEADER ACTIONS & BADGES (Pixel Perfect)
   ============================================ */
.header-actions {
  display: flex;
  align-items: center;

  gap: 30px;
  flex-shrink: 0;
}

.header-action-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.wishlist-badge,
.cart-badge {
  position: absolute;
  top: -10px;
  left: 14px; /* Perfectly sits on icon corner */
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-bg-black);
}

.action-text {
  font-size: 11px;
  line-height: 1.3;
}

/* ============================================
   NAVBAR (Centered with Back Button)
   ============================================ */
.main-nav {
  background-color: var(--color-bg-black);
  border-bottom: 1px solid #222;
  height: 50px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: center; /* Centers the navigation items */
  position: relative;
  height: 100%;
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

/* Moving the Home Button into the Navbar List */
.nav-link.back-home {
  color: var(--color-primary) !important;
  font-weight: 700;
  text-transform: uppercase;
  border-right: 1px solid #333;
  margin-right: 10px;
}

.nav-link {
  color: #fff;
  padding: 0 15px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--color-primary);
}

/* Dropdowns */
.has-dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  min-width: 180px;
  border-radius: 0 0 8px 8px;
  padding: 10px 0;
  z-index: 1000;
  border-top: 2px solid var(--color-primary);
}

.has-dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu li a {
  padding: 10px 20px;
  display: block;
  color: #fff;
  text-decoration: none;
}
/* Remove bullets from all navbar lists */
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Extra safety for dropdown items */
.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a:hover {
  background: var(--color-primary);
}

/* ================= STEPPER ================= */
.progress-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 35px 0;
}

.step {
  text-align: center;
  width: 140px;
}

.step-num {
  width: 26px;
  height: 26px;
  border: 2px solid var(--brand-red);
  border-radius: 50%;
  line-height: 24px;
  margin: auto;
  font-size: 13px;
}

.step p {
  font-size: 11px;
  margin-top: 6px;
  color: var(--text-muted);
}

.progress-line {
  width: 110px;
  height: 1px;
  background: #444;
}

.progress-line.active {
  background: var(--brand-red);
}

/* ================= MAIN LAYOUT ================= */
.main-layout {
  display: flex;
  gap: 25px;
  max-width: 1280px;
  margin: auto;
}

/* ================= CART ================= */
.cart-section {
  flex: 2;
}


.product-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 18px 18px; /* Extra top padding for the cross */
  margin-bottom: 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
}

.product-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.remove-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  line-height: 1;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-icon:hover {
  color: #e60000;
  text-shadow: 0 0 8px rgba(230, 0, 0, 0.6), 0 0 15px rgba(230, 0, 0, 0.4);
}

/* If the HTML has an icon tag inside .remove-icon, we hide it and show our cross */
.remove-icon i, 
.remove-icon svg {
  display: none;
}

.remove-icon::before {
  content: "×";
  font-size: 20px;
  font-weight: 300;
}

.product-card img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.product-name {
  font-size: 15px;
  font-weight: 400; /* Reduced weight */
  color: #efefef;
  line-height: 1.4;
  flex: 1;
  max-width: 400px;
}

.qty-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  margin-left: auto;
  margin-right: 30px;
  padding: 2px;
  overflow: hidden;
}

.qty-selector button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 16px;
  border-radius: 50%;
}

.qty-selector button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.qty-selector span {
  padding: 0 16px;
  font-size: 14px;
  font-weight: 400; /* Reduced weight */
  min-width: 40px;
  text-align: center;
}

.product-price {
  font-size: 16px;
  font-weight: 400; /* Reduced weight */
  color: #ffffff;
  width: 100px;
  text-align: right;
}

/* ================= COUPON ================= */
.coupon-area {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.coupon-area input {
  background: transparent;
  border: 1px solid #444;
  padding: 8px;
  color: #fff;
}

.apply-btn {
  background: #cfcfcf;
  border: none;
  padding: 8px 20px;
  font-weight: 600;
}

/* ================= SUMMARY ================= */
.summary-section {
  flex: 1;
}

.summary-table {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

.row {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.header-row {
  background: #111;
}

.total-row {
  font-weight: 700;
  border-bottom: none;
}

.proceed-btn {
  width: 100%;
  background: var(--brand-red);
  border: none;
  padding: 14px;
  margin-top: 15px;
  font-weight: 700;
  color: #fff;
  border-radius: 3px;
}

/* ================= INFO FOOTER ================= */
.info-footer {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;

  /* strip proportions like screenshot */
  padding: 28px 6%;
  margin: 0;

  /* subtle dark strip over smoke (NOT glassy) */
  background: rgba(239, 239, 239, 0.014);

  /* remove heavy blur – screenshot has very light softness */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  /* absolutely flat strip */
  border: none;
}

/* text alignment & hierarchy */
.info-box {
  text-align: center;
  color: #ffffff;
}

.info-box strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.info-box span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .info-footer {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
    padding: 26px 5%;
  }
}

@media (max-width: 480px) {
  .info-footer {
    grid-template-columns: 1fr;
    padding: 22px 5%;
  }
}

/* =====================================================
   RESPONSIVE CSS
   ===================================================== */

/* ---------- LARGE TABLETS (≤1024px) ---------- */
@media (max-width: 1024px) {
  .header-content {
    gap: 20px;
  }

  .search-bar {
    max-width: 500px;
  }

  .main-layout {
    padding: 0 15px;
  }

  .product-name {
    max-width: 320px;
  }

  .info-footer {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }
}

/* ---------- TABLETS (≤768px) ---------- */
@media (max-width: 768px) {
  /* Top bar */
  .top-bar-content {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  /* Header */
  .header-content {
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo {
    justify-content: center;
    width: 100%;
  }

  .search-bar {
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
  }

  /* Navbar */
  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link {
    padding: 10px;
    font-size: 12px;
  }

  /* Stepper */
  .progress-container {
    flex-wrap: wrap;
    gap: 10px;
  }

  .progress-line {
    display: none;
  }

  /* Layout */
  .main-layout {
    flex-direction: column;
  }

  .cart-section,
  .summary-section {
    width: 100%;
  }

  /* Cart items */
  .product-card {
    flex-wrap: wrap;
    gap: 10px;
  }

  .product-name {
    max-width: 100%;
  }

  .qty-selector {
    margin-left: 0;
    margin-right: 0;
  }

  .product-price {
    width: auto;
    margin-left: auto;
  }

  /* Coupon */
  .coupon-area {
    flex-direction: column;
  }

  .apply-btn {
    width: 100%;
  }
}

/* ---------- MOBILE (≤480px) ---------- */
@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  /* Header icons */
  .header-actions {
    flex-wrap: wrap;
    gap: 15px;
  }

  .action-text {
    display: none; /* icons only */
  }

  /* Search */
  .category-select {
    display: none;
  }

  .search-btn {
    padding: 0 18px;
    font-size: 12px;
  }

  /* Stepper */
  .step {
    width: auto;
  }

  /* Product card */
  .product-card img {
    width: 60px;
  }

  .qty-selector span {
    padding: 4px 10px;
  }

  /* Summary */
  .row {
    font-size: 12px;
    padding: 10px;
  }

  .proceed-btn {
    padding: 12px;
    font-size: 14px;
  }

  /* Footer info */
  .info-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
/* ================= FOOTER ================= */
.footer {
  background: radial-gradient(circle at top, #000000 0%, #0b0b0b);
  color: #e5e5e5;
  padding: 40px 80px 25px;
  font-size: 13px;
}

/* ================= TOP ROW ================= */
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  align-items: center;
  gap: 40px;
}

.footer-top h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

/* Newsletter input (top) */
.newsletter-box {
  display: flex;
  align-items: center;
  background: #151515;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 6px;
}

.newsletter-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
}

.newsletter-box input::placeholder {
  color: #888;
}

.newsletter-box button {
  background: #e10600;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  color: #fff;
  cursor: pointer;
}

/* Social */
.social-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.social-box span {
  font-size: 13px;
  color: #fff;
}

.social-icons a {
  color: #b5b5b5;
  font-size: 14px;
}

.social-icons a:hover {
  color: #ffffff;
}

/* Divider */
.footer hr {
  border: none;
  border-top: 1px solid #2a2a2a;
  margin: 10px 0;
}

/* ================= MIDDLE ================= */
.footer-middle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-col p {
  margin: 8px 0;
  color: #b5b5b5;
  cursor: pointer;
}

.footer-col p:hover {
  color: #ffffff;
}

/* Stay informed */
.subscribe-box {
  display: flex;
  background: #ffffff;
  border-radius: 25px;
  overflow: hidden;
  margin-bottom: 12px;
}

.subscribe-box input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  font-size: 13px;
  outline: none;
}

.subscribe-box button {
  background: #e10600;
  border: none;
  color: #fff;
  padding: 10px 22px;
  font-size: 13px;
  cursor: pointer;
}

.footer-col small {
  display: block;
  color: #888;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* App buttons */
.app-links img {
  height: 40px;
  margin-right: 10px;
}

/* ================= BOTTOM ================= */
.footer-bottom {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  align-items: center;
  gap: 40px;
  padding: 25px 0;
}

.footer-brand {
  font-size: 22px;
  font-weight: 800;
  color: #ff7a00;
}

.footer-brand span {
  color: #ffffff;
}

.footer-info {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 13px;
}

.footer-info i {
  margin-right: 6px;
}

/* ================= COPYRIGHT ================= */
.footer-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  font-size: 11px;
  color: #777;
  border-top: 1px solid #2a2a2a;
  padding-top: 15px;
}

.payment-icons img {
  height: 22px;
  margin-left: 8px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .social-box {
    justify-content: flex-start;
  }

  .footer-middle {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-info {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-copy {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 500px) {
  .footer {
    padding: 50px 25px 20px;
  }

  .footer-middle {
    grid-template-columns: 1fr;
  }

  .newsletter-box {
    width: 100%;
  }
}

.checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0 30px;
  color: #bdbdbd;
  font-family: "Poppins", sans-serif;
}

/* Step block */
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
  text-align: center;
}

/* Circle */
.step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2a2a2a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

/* Text */
.step span {
  font-size: 11px;
  white-space: nowrap;
}

/* Connecting line */
.step-line {
  width: 140px;
  height: 1px;
  background: #444;
  margin: 0 10px;
}

/* ACTIVE STATES */
.step.active .step-circle {
  background: #e10600;
}

.step-line.active {
  background: #e10600;
}

.step.active span {
  color: #ffffff;
}


