/* ========================================= */
/* ============= GLOBAL STYLES ============= */
/* ========================================= */

html,
body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: #0e1317;
}

body {
  background-color: #f8f8f8;
  padding-top: 90px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========================================== */
/* ================= HEADER ================= */
/* ========================================== */

.header-container {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background-color: #edebc5;
  color: #0e1317;
  font-family: oswald-medium, oswald, sans-serif;
  font-weight: bold;
  border-bottom: 3px solid #0e1317;
}

.logo-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  height: 72px;
}

.home-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 18px;
}

.site-logo {
  max-height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
}

.site-name {
  font-size: 28px;
  font-weight: bold;
  white-space: nowrap;
}

.header-buttons {
  display: flex;
  margin-left: auto;
  margin-right: 4vw;
}

.header-btn {
  display: inline-block;
  padding: 14px 26px;
  margin: 0;
  border: none;
  background-color: #cc2424;
  color: #edebc5;
  font-size: 19px;
  font-weight: bold;
  font-family: Helvetica, Arial, sans-serif;
  transition: 0.2s;
}

.header-btn:hover {
  background-color: #a91f1f;
  text-decoration: underline;
}

/* ========================================== */
/* ============ HEADER DROPDOWN ============= */
/* ========================================== */

.header-dropdown {
  display: inline-block;
  position: relative;
  padding: 0;
  margin: 0;
}

.header-dropdown > .header-btn {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.header-dropdown:hover .dropdown-content {
  display: block;
}

.header-dropdown .header-btn {
  display: inline-block;
  padding: 14px 26px;
  height: 100%;
  box-sizing: border-box;
  font-size: 19px;
  font-weight: bold;
  font-family: Helvetica, Arial, sans-serif;
  background-color: #cc2424;
  color: #edebc5;
  border: none;
  transition: 0.2s;
  text-align: center;
  white-space: nowrap;
}

.header-dropdown .header-btn:hover {
  background-color: #a91f1f;
  text-decoration: underline;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #cc2424;
  min-width: 160px;
  border-radius: 6px;
  overflow: hidden;
  z-index: 1000;
}

.header-dropdown .dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: #edebc5;
  font-weight: bold;
  font-family: Helvetica, Arial, sans-serif;
  text-decoration: none;
  transition: 0.2s;
}

.header-dropdown .dropdown-content a:hover {
  background-color: #a91f1f;
}

/* ----------------
   CART BADGE STYLES
   ---------------- */

.cart-link {
  position: relative;
  display: inline-block;
  height: 24px;
  width: 24px;
}

.cart-badge {
  background-color: #dc3545;
  color: #edebc5;
  border-radius: 999px;
  border: 1px solid #0e1317;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  min-width: 15px;
  text-align: center;
  white-space: nowrap;
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 10;
}

.cart-badge[data-count='0'],
.cart-badge:empty {
  display: none;
}

/* ========================================== */
/* ================== HERO ================== */
/* ========================================== */

.hero {
  text-align: center;
  padding: 80px 20px;
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-v2 {
  position: relative;
  width: 100%;
  min-height: 80vh; /* Ensures it takes up 80% of the screen height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Replace 'your-image.jpg' with your actual image URL if not set in HTML */
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero > div {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
}

.hero button {
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  background-color: #cc2424;
  color: #edebc5;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-shadow: none;
}

.hero button:hover {
  background-color: #0e1317;
  color: #edebc5;
  transform: scale(1.05);
}

/* ========================================== */
/* ================ SECTIONS ================ */
/* ========================================== */

.section {
  text-align: center;
  padding: 60px 20px;
  background-color: #edebc5;
  padding-bottom: 80px;
  margin-bottom: -90px;
}

.featured {
  background-color: #edebc5;
  color: #0e1317;
  padding-bottom: 80px;
  margin-bottom: -40px;
}

.section.featured {
  background-color: #edebc5;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 20px; /* Uses padding instead of margin for breathing room */
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the content inside */
}

.section.featured .container {
  width: 100%;
  max-width: 1200px; /* Limits the width on big screens */
  margin: 0 auto; /* Centers the block */
}

.section.featured h2 {
  font-size: 36px;
  color: #cc2424; /* Your brand yellow */
  margin-bottom: 40px;
  text-transform: uppercase;
}

.section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #cc2424;
}

.section p {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 18px;
  line-height: 1.6;
}

/* ========================================== */
/* ========= NEW SHOP LAYOUT (2025) ========= */
/* ========================================== */

.shop-page-wrapper {
  background-color: #edebc5;
  min-height: 100vh;
  padding-top: 20px;
  margin-bottom: 0;
  padding-bottom: 80px;
}

.shop-page-header {
  background-color: #0e1317;
  color: #edebc5;
  text-align: left;
  padding: 35px 20px;
  margin: 0 0 40px 0;
  margin-bottom: 0 !important;
}

#categoryTitle {
  margin: 0;
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 3px;
  font-family: 'Oswald', Arial, sans-serif;
}

.shop-wrapper {
  display: block; /* Changed from flex to block to stack filters on top */
  max-width: 1600px; /* Increased width to fill more screen */
  margin: 0 auto;
  padding: 0 20px;
  background-color: #edebc5;
}
/* ========================================== */
/* ================= FILTERS ================ */
/* ========================================== */

.mobile-filter-toggle {
  display: none;
  padding: 10px 15px;
  background-color: #cc2424;
  color: #edebc5;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  align-items: center;
  gap: 8px;
}

.mobile-filter-toggle:hover {
  background-color: #a91f1f;
}

.sidebar-filters {
  background-color: #cc2424;
  color: #edebc5;
  position: sticky;
  top: 90px; /* Adjust based on your header height */
  z-index: 100;
  padding: 15px 25px;
  display: flex !important; /* Force flex for horizontal layout */
  flex-direction: row;
  align-items: center;
  justify-content: space-between; /* Spreads items out */
  gap: 20px;
  box-sizing: border-box;
  border-radius: 12px; /* This rounds the corners */
  margin: 0px 20px 20px 20px; /* Adds some "breathing room" around the bar */
  width: auto; /* Allows it to respect the margins */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.sidebar-inner h3 {
  margin: 0; /* Remove bottom margin */
  font-size: 18px; /* Smaller font */
  white-space: nowrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1; /* Allows search/selects to take up space */
}

.sidebar-filters label {
  margin: 0; /* Remove top margin */
  font-size: 14px;
  white-space: nowrap;
}

.sidebar-search,
.sidebar-filters select {
  width: auto; /* Buttons only take needed space */
  min-width: 150px;
  padding: 8px 12px; /* Slimmer padding */
  font-size: 14px;
}

.sidebar-search::placeholder {
  color: #0e1317;
}

.sidebar-search:hover,
.sidebar-filters select:hover,
.sidebar-search:focus,
.sidebar-filters select:focus {
  background-color: #a91f1f;
  outline: 3px solid rgba(204, 36, 36, 0.4);
}

.shop-container {
  display: grid;
  /* Adjusts columns automatically, but centers them within the container */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center; /* Centers cards if there are only 1 or 2 */
  gap: 30px;
  width: 100%;
}

/* ========================================== */
/* =============== ITEM CARDS =============== */
/* ========================================== */

.item-card {
  border-radius: 20px;
  display: flex;
  flex-direction: column; /* Stacks image, body, and button */
  height: 100%; /* Forces all cards to match the row height */
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.item-img-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  /* FLEXBOX CENTERING: This centers the image both ways */
  display: flex;
  align-items: center; /* Vertical centering */
  justify-content: center; /* Horizontal centering */
}

.item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.item-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.item-name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  /* Remove min-height if you want the button to float up, 
     but keeping it ensures a baseline for the text itself */
  min-height: 48px;
}

.item-price {
  margin-top: auto; /* THIS pushes everything below it to the bottom */
  color: #cc2424;
  font-weight: bold;
  font-size: 18px;
  padding-bottom: 10px;
}

/* 4. The Button - Now it has no choice but to stay at the bottom */
.item-button {
  align-self: flex-end; /* Ensures it stays at the end of the flex flow */
  width: 100%;
  background: #cc2424;
  color: #edebc5;
  border: none;
  padding: 12px;
  font-weight: bold;
}

.item-button:hover {
  background: #a91f1f;
}

/* General style for both buttons */
.item-img-container .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%); /* Perfectly centers vertically */
  background: rgba(0, 0, 0, 0.3); /* Subtle dark circle */
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Hover effect */
.item-img-container .nav-btn:hover {
  background: #cc2424; /* Your brand red */
  transform: translateY(-50%) scale(1.1);
}

/* Force the SVGs inside to fit properly */
.item-img-container .nav-btn svg {
  width: 20px;
  height: 20px;
}

/* Push them to the extreme left and right */
.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* Hide by default */
.item-img-container .nav-btn {
  opacity: 0;
}

/* Show when hovering over the card */
.item-card:hover .nav-btn {
  opacity: 1;
}

/* ========================================== */
/* ================ CART PAGE =============== */
/* ========================================== */

.cart-main-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.cart-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

.cart-content-wrapper {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.cart-items-section {
  flex: 3;
  min-width: 300px;
}

.cart-header {
  font-weight: bold;
  border-bottom: 2px solid #ccc;
  padding: 10px 0;
  text-transform: uppercase;
  color: #555;
  background: transparent;
  box-shadow: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.item-details {
  display: flex;
  align-items: center;
  gap: 15px;
}

.item-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.cart-quantity-input {
  width: 60px;
  font-size: 0.9rem;
  text-align: center;
  border-radius: 4px;
  height: 30px;
  margin: 5px 0;
}

.remove-btn {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s;
}

.remove-btn:hover {
  color: #a71d2a;
}

.summary-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 20px;
}

.checkout-btn {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background-color: #007bff;
  color: #edebc5;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.checkout-btn:hover {
  background-color: #0056b3;
}

/* ========================================== */
/* ============== CONTACT PAGE ============== */
/* ========================================== */

.contact-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #edebc5;
}

.contact-section h1 {
  font-size: 36px;
  color: #cc2424;
  margin-bottom: 20px;
}

.contact-section p {
  font-size: 18px;
  margin-bottom: 20px;
}

.contact-social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.contact-social-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.contact-social-icons img:hover {
  transform: scale(1.15);
}

/* ========================================== */
/* ================= FOOTER ================= */
/* ========================================== */

.footer {
  background-color: #0e1317;
  color: #edebc5;
  padding: 70px 20px 30px;
}

.footer-main-row {
  max-width: 1300px;
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: 2fr 1.5fr 2fr;
  gap: 40px;
  align-items: start;
}

.footer-sitemap h4,
.footer-social h4 {
  color: #cc2424;
  margin-bottom: 18px;
  font-size: 21px;
}

.footer-sitemap ul {
  list-style: none;
  padding: 0;
  line-height: 2.1;
}

.footer-sitemap a {
  color: #edebc5;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.footer-sitemap a:hover {
  color: #cc2424;
}

.social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social-link:hover svg {
  stroke: #cc2424;
  transform: scale(1.15);
}

.trust-badges {
  margin-top: 20px;
  line-height: 1.8;
  font-size: 15px;
  opacity: 0.95;
}

.payment-icons img {
  height: 34px;
  margin: 0 8px;
}

.footer-links {
  text-align: center;
  margin: 25px 0;
  font-size: 14.5px;
}

.footer-links a {
  color: #edebc5;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(237, 235, 197, 0.15);
}

/* ========================================== */
/* ================ BUTTONS ================= */
/* ========================================== */

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background-color: #0e1317;
  color: #edebc5;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #333;
}

/* ========================================== */
/* =============== ITEM MODAL =============== */
/* ========================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #edebc5;
  margin: 5% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  position: relative;
}

/* Apply relative positioning to both the card container and the modal wrapper */
.item-img-container,
#modalImageWrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Specific height for the modal image area */
#modalImageWrapper {
  width: 100%;
  height: 500px; /* Fixed height is key */
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#modalImage {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Keeps aspect ratio without shifting text */
  display: block;
}

/* Unified Button Style */
.item-img-container .nav-btn,
#modalImageWrapper .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  width: 44px; /* Slightly bigger for the modal */
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

/* Hover effects */
.item-img-container .nav-btn:hover,
#modalImageWrapper .nav-btn:hover {
  background: #cc2424;
  border-color: #cc2424;
  transform: translateY(-50%) scale(1.1);
}

/* SVG Color Change on Hover */
.nav-btn:hover svg path {
  stroke: #ffffff;
}

/* Positioning */
.prev-btn {
  left: 15px;
}
.next-btn {
  right: 15px;
}

.close-btn {
  color: #0e1317;
  float: right;
  font-size: 36px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

.modal-details-col {
  flex: 1; /* Takes up the remaining space */
  text-align: left;
  min-height: 500px; /* Matches the image height to keep alignment */
}

.modal-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-top: 20px;
}
/* Pushes the button to the bottom */
.modal-add-to-cart {
  margin-top: auto;
  padding: 15px 25px;
  font-weight: bold;
  font-size: 1.1rem;
  width: 100%; /* Makes it a nice full-width call to action */
  cursor: pointer;
}
#modalDescription {
  margin-bottom: 30px;
  line-height: 1.6;
}

.modal-image-col img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
}
.modal-image-col {
  flex: 0 0 50%; /* Fixed 50% width - will not grow or shrink */
  max-width: 500px; /* Adjust based on your design preference */
}

.variation-group {
  margin-bottom: 15px;
}

.variation-select {
  padding: 8px 15px;
  border: 2px solid #cc2424;
  border-radius: 4px;
  background-color: #fff;
  font-size: 16px;
  cursor: pointer;
}

/* ========================================== */
/* ============= HOME PAGE V2 =============== */
/* ========================================== */

.hero-v2 {
  height: 100vh; /* Keeps it tall */
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('https://i.postimg.cc/k48NnZyn/borderfix.png') no-repeat;

  /* 1. FIX THE CROP: This ensures the top of the image is never cut off */
  background-position: center top;
  background-size: 100% auto; /* Stretches to width, lets height be natural */

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-content-v2 {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centering children horizontally */
  text-align: center; /* Centering text inside children */
  width: 100%;
}

.hero-content-v2 h1 {
  font-size: 4rem;
  margin: 10px 0;
  font-weight: 800;
}
.hero-content-v2 .highlight {
  color: #edebc5;
}
.hero-content-v2 p {
  color: #edebc5; /* Your brand cream/yellow */
  font-size: 22px; /* Slightly larger for the Hero area */
  margin: 20px 0 30px 0; /* Space between title and button */
  font-weight: 500;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Professional contrast 'insurance' */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Optional: Make the "lowest prices!" part pop with your brand red */
.hero-content-v2 p span.price-accent {
  color: #cc2424;
  font-weight: bold;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  color: #edebc5;
  font-weight: bold;
}

.search-hub {
  padding: 40px 0 100px 0;
  background-color: #0e1317;
  margin-top: -58px;
  border-radius: 60px 60px 0 0;
  position: relative;
  z-index: 2;
}

.hub-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hub-text h1 {
  margin-top: 0; /* Ensures it sits flush against the top padding */
  font-size: 80px;
  color: #edebc5;
  font-family: 'Oswald', sans-serif;
  font-weight: 900;
  line-height: 1;
}

.hub-grid h2,
.hub-grid p {
  color: #edebc5;
}

.search-bar-v2 {
  display: flex;
  background: #f8f8f8;
  padding: 8px;
  border-radius: 12px;
  margin-top: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #ddd;
}

.search-bar-v2 input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 15px;
  font-size: 1.1rem;
  outline: none;
}

.search-bar-v2 button {
  background: #0e1317;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.stat-card {
  background: #edebc5;
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-align: center;
  border: 2px solid #0e1317;
}

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: #0e1317;
}

/* Modern Grid for Home Page Items */
.modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.m-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: 0.4s;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.m-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.m-img-wrapper {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.m-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.m-card:hover .m-img-wrapper img {
  transform: scale(1.1);
}

.m-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 20px;
}

.m-content {
  padding: 20px;
  flex-grow: 1;
}
.m-price {
  color: #1a7a42;
  font-weight: bold;
  font-size: 1.4rem;
}

.btn-gold {
  display: block; /* Ensures it respects the margins */
  margin: 0 auto; /* The classic centering trick */
  padding: 18px 40px;
  background: #edebc5; /* Your brand yellow */
  color: #0e1317; /* Dark text */
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: 0.3s;
}
.btn-gold:hover {
  background: #cc2424; /* Turns red on hover */
  color: #edebc5;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- Hamburger Design (Main Section) --- */
.hamburger-menu {
  display: none; /* Hides it on Desktop */
  flex-direction: column;
  justify-content: space-between; /* Creates the gap between lines */
  width: 30px;
  height: 20px; /* Height of the total 3-line stack */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10000;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background-color: #edebc5 !important; /* Brand Yellow */
  border-radius: 4px;
  transition: all 0.3s ease;
  display: block;
} /* ========================================== */
/* ============== RESPONSIVE ================ */
/* ========================================== */

/* 2. Fix the Body and Main Containers */

/* 3. Fix the Search Hub & Featured Sections */
@media screen and (max-width: 768px) {
  /* 1. Global Page Lock */
  html,
  body {
    position: relative;
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

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

  /* 2. Header & Logo Scaling */
  .header-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 15px !important;
    height: 70px !important;
    width: 100% !important;
  }

  .site-name {
    font-size: 13px !important;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }

  .site-logo {
    height: 30px !important;
    width: auto;
  }

  /* 3. Hamburger Visibility */
  .hamburger-menu {
    display: flex !important;
    z-index: 9999;
  }

  .hamburger-menu span {
    background-color: #edebc5 !important;
  }

  /* 4. Mobile Menu Drawer */
  .header-buttons {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100vh;
    background-color: #0e1317;
    z-index: 1000;
    visibility: hidden;
    pointer-events: none;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: center;
    gap: 15px !important;
    transition: all 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    padding: 100px 0 40px 0 !important;
    overflow-y: auto !important;
  }

  .header-buttons.active {
    right: 0;
    visibility: visible;
    pointer-events: auto;
  }

  .header-btn {
    font-size: 18px !important;
    width: 90%;
    text-align: center;
    padding: 12px 0 !important;
    margin: 0 !important;
  }

  /* 5. THE SHOP ACCORDION FIX */
  /* 5. THE SHOP ACCORDION FIX */
  .header-dropdown {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  /* Reset the dropdown so it's ready to be toggled */
  .header-buttons .header-dropdown .dropdown-content {
    display: none !important; /* Hide by default */
    position: static !important;
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: none !important;
    box-shadow: none !important;

    /* KILL DESKTOP VISIBILITY LOCKS */
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    max-height: none !important;
    height: auto !important;
    pointer-events: auto !important;
  }

  /* FORCE SHOW when the .open class is applied by JS */
  .header-buttons .header-dropdown.open .dropdown-content {
    display: flex !important; /* This forces it to appear */
    padding: 15px 0 !important;
    margin-top: 5px;
  }

  .dropdown-content a {
    font-size: 16px !important;
    color: #edebc5 !important;
    padding: 12px 0 !important;
    text-decoration: none;
    display: block !important;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Force show when parent has .open (Using !important here to win the fight) */
  .header-dropdown.open .dropdown-content {
    display: flex !important;
    padding: 15px 0 !important;
  }

  /* 6. Hero & Grid Fixes */
  .hero-v2 {
    display: flex !important;
    min-height: 100vh !important;
    padding: 100px 20px 60px 20px !important;
    background-size: cover !important;
    background-position: center !important;
  }

  .hero-content-v2 h1 {
    font-size: 26px !important;
  }

  .search-bar-v2 {
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 350px;
  }
}

/* Animations (Global) */
.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
.hamburger-menu.active span {
  background-color: #ff4d4d !important;
}
