/*Importing Google fonts*/
@import url('https://fonts.googleapis.com/css2?family=Miniver&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

:root {
    /*Colors*/
    --white-color: #fff;
    --dark-color: #252525;
    --primary-color: #3b141c;
    --secondary-color: #f3961c;
    --light-pink-color: #faf4f5;
    --medium-gray-color:#ccc;

    /*font size*/
    --font-size-s: 0.9rem;
    --font-size-n: 1rem;
    --font-size-m: 1.12rem;
    --font-size-1: 1.5rem;
    --font-size-x1: 2rem;
    --font-size-xx1: 2.3rem;

    /*font weight*/
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /*Border radius*/
    --border-radius-s: 8px;
    --border-radius-m: 30px;
    --border-radius-circle: 50%;

    /*Site max width*/
    --site-max-width: 1300px;
}

html {
    scroll-behavior: smooth;
}

/* Stylings for whole site */
ul {
    list-style: none;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

img {
    width: 100%;
}

.section-content {
    margin: 0 auto;
    padding: 0 20px;
    max-width: var(--site-max-width);
}

.section-title {
    text-align: center;
    padding: 60px 0 100px;
    text-transform: uppercase;
    font-size: var(--font-size-x1);
}

.section-title::after {
    content: "";
    width: 80px;
    height: 5px;
    display: block;
    margin: 10px auto 0;
    border-radius: var(--border-radius-s);
    background: var(--secondary-color);
}

/* Navbar styling*/
header {
    position: fixed;
    width: 100%;
    z-index: 1000; /* Increased to be above content but below mobile menu */
    background: var(--primary-color);
}

header .navbar {
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
}

.navbar .nav-logo .logo-text {
    color: var(--white-color);
    font-size: var(--font-size-x1);
    font-weight: var(--font-weight-semibold);
}

.navbar .nav-menu {
    display: flex;
    gap: 10px;
}



.navbar .nav-menu .nav-link{
    padding: 10px 18px;
    color: var(--white-color);
    font-size: var(--font-size-m);
    border-radius: var(--border-radius-m);
    
}

.navbar .nav-menu .nav-item .nav-link:hover {
    background-color: #f3961c;
    font-size: var(--font-size-m);
    border-radius: 48px 32px 16px 64px;
    transition: 0.3s ease;
    min-width: 96px;
    padding: 10px 12px;
}

.navbar :where(#menu-close-button, #menu-open-button) {
    display: none;
}

/* ------------------------------------------------------------------------- */
/* 1. HERO SECTION CONTAINER (Retaining essential margin/padding fixes) */
/* ------------------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    padding-bottom: 0; 
    margin: 0; 
    width: 100%;
    position: relative; 
    z-index: 2; 
    overflow-x: hidden; 
}

/* ------------------------------------------------------------------------- */
/* 2. BACKGROUND IMAGE PSEUDO-ELEMENT (The Core Fixes) */
/* ------------------------------------------------------------------------- */
.hero-section::before {
    content: ''; 
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url(https://img.freepik.com/free-psd/3d-rendering-board-games-still-life_23-2151709300.jpg);
    background-size: cover;          
    background-position: center;     
    background-repeat: no-repeat;    
    background-attachment: fixed;
    filter: brightness(60%); 
    z-index: -1; 
}

/* ------------------------------------------------------------------------- */
/* 3. SECTION CONTENT (Flex Centering) */
/* ------------------------------------------------------------------------- */
.hero-section .section-content {
    display: flex;
    align-items: center;
    min-height: 100vh;
    color: var(--white-color);
    justify-content: center; 
    position: relative;
    z-index: 3;
    flex-wrap: wrap; 
}

/* ------------------------------------------------------------------------- */
/* 4. HERO DETAILS (Text Centering and Styling) */
/* ------------------------------------------------------------------------- */
.hero-section .hero-details {
    text-align: center;
    padding: 0 20px; 
    max-width: 800px;
}

.hero-section h2, .hero-section h3, .hero-section p {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-section .hero-details .title {
    font-size: var(--font-size-xx1);
    color: var(--secondary-color);
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.hero-section .hero-details .subtitle {
    margin-top: 8px;
    max-width: 100%; 
    font-size: var(--font-size-x1);
    font-weight: var(--font-weight-semibold);
}

.hero-section .hero-details .description {
    max-width: 100%; 
    margin: 24px auto 40px; 
    font-size: var(--font-size-m);
}

.hero-section .hero-details .buttons {
    display: flex;
    gap: 23px;
    justify-content: center;
    white-space: nowrap; 
    overflow-x: auto; 
    flex-shrink: 0; 
}

.hero-section .hero-details .delivery-incentive {
    color: #f1efeb; 
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 60px; 
    margin-bottom: 25px; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); 
}

/* ------------------------------------------------------------------------- */
/* 5. BUTTON STYLES */
/* ------------------------------------------------------------------------- */
.hero-section .hero-details .button {
    padding: 10px 26px;
    border: 2px solid transparent;
    color: var(--primary-color);
    border-radius: var(--border-radius-m);
    background: var(--secondary-color);
    font-weight: var(--font-weight-medium);
    transition: 0.3s ease;
    cursor: pointer;
}

.hero-section .hero-details .button:hover,
.hero-section .hero-details .contact-us {
    color: var(--white-color);
    border-color: var(--white-color);
    background: transparent;
}

.hero-section .hero-details .contact-us:hover {
    color: var(--primary-color);
    border-color: var(--secondary-color);
    background: var(--secondary-color);
}

/* --- Corrected CSS for ABOUT section --- */

/* Parent container defining the space (min-height should be enough) */
.about-section {
    min-height: 80vh; 
    /* The problem may be here: ensure the section below it is NOT floating or improperly positioned. */
    padding: 100px 0; /* Add padding to give your content breathing room */
    margin: 0;
    width: 100%;
    position: relative; 
    z-index: 2; 
    overflow-x: hidden;
    /* Remove any background-color from the about-section itself */
}

/* Pseudo-element for the fixed background and overlay */
.about-section::before{
    content: ''; 
    position: absolute; /* Revert to absolute so it scrolls with the section */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    
    /* Apply the image and overlay */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
        url(https://t4.ftcdn.net/jpg/07/58/10/45/360_F_758104584_F6Cxgc5BRoGIs0PKTaiq2lnQOGnkLNlE.jpg);

    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    z-index: -1; 
}

/* ⚠️ IMPORTANT: If the section below it is still being covered, 
   ensure that section has a background color and a high z-index (z-index: 3;) 
   to sit on top of the fixed element.
*/

.about-section .section-content {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
}

.about-section .about-image-wrapper .about-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-circle);
}

.about-section .about-details .section-title {
    padding: 0;
}

.about-section .about-details {
    max-width: 50%;
}

.about-section .about-details .text {
    line-height: 30px;
    margin: 50px 0 30px;
    text-align: center;
    font-size: var(--font-size-m);
    text-shadow: 2px 2px 4px rgba(11, 11, 11, 0.7);
    color: #FFFFFF;
    font-weight: var(--font-weight-semibold);
    
}

.about-section .social-link-list {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.about-section .social-link-list .social-link{
    color: var(--secondary-color);
    font-size: var(--font-size-1);
    transition: 0.2s ease;
}

.about-section .social-link-list .social-link:hover{
    color: var(--secondary-color);
}

/* MENU SECTION – BIGGER CARDS, BIGGER IMAGES, CENTERED CATEGORY */
.menu-section {
    color: var(--white-color);
    background: rgb(207, 199, 199);
    
}



/* -------------------------------------------------------------- */
/* SECTION TITLE — TIGHTER SPACING */
/* -------------------------------------------------------------- */
.section-title {
  margin-bottom: 8px !important;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #1b1b2f;
}

#menu .section-title {
    margin-bottom: -80px !important; 
}

/* -------------------------------------------------------------- */
/* PERFECTLY CENTERED + SWIPEABLE CATEGORY NAV */
/* -------------------------------------------------------------- */
#category-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 60px; /* Sticks below the 60px fixed header */
  z-index: 999; /* Below header (1000), below mobile menu (1001+) */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

#category-nav::-webkit-scrollbar { display: none; }

/* ALL GAMES — FIRST, BOLD, CENTERED */
#category-nav .category-btn[data-category="all"] {
  order: -2;
  font-weight: 900 !important;
  font-size: 1rem !important;
  background: #1b1b2f !important;
  color: white !important;
  border: 2px solid #1b1b2f !important;
  padding: 10px 20px !important;
  min-width: 110px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* SEARCH BAR — SHRINKS, STAYS IN CENTER FLOW */
.search-container {
  order: -1;
  flex: 1 1 120px;
  min-width: 60px;
  max-width: 160px;
}
.search-input {
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid #ddd;
  border-radius: 25px;
  font-size: 0.9rem;
  outline: none;
  background: white;
  transition: 0.2s ease;
}
.search-input:focus {
  border-color: #1b1b2f;
  box-shadow: 0 0 0 3px rgba(27, 27, 47, 0.1);
}
/* OTHER BUTTONS */
.category-btn {
  background: #f0f0f0;
  color: #1b1b2f;
  border: 1px solid #ddd;
  padding: 8px 15px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 80px;
  flex-shrink: 0;
  text-align: center;
}
.category-btn:not([data-category="all"]):hover,
.category-btn.active:not([data-category="all"]) {
  background: #96210f;
  color: white;
  border-color: #c9321e;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* MOBILE: 1 GAME CARD PER ROW, FULL WIDTH */
@media (max-width: 768px) {
  .menu-item {
    width: calc(100%-20px) !important;
    max-width: none !important;
    min-width: 280px;
    margin: 0 auto 20px;
  }
  #menu-list {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 10px;
  }
}
/* MOBILE: TIGHT, CENTERED, SWIPEABLE */
@media (max-width: 600px) {
  #category-nav {
    padding: 10px 12px;
    gap: 10px;
    justify-content: flex-start;
    z-index: 999;
  }
  #category-nav .category-btn[data-category="all"] {
    padding: 8px 14px !important;
    font-size: 0.9rem !important;
    min-width: 95px;
  }
  .category-btn {
    padding: 7px 12px;
    font-size: 0.8rem;
    min-width: 70px;
  }
 
  .search-container {
    min-width: 45px;
    max-width: 50px;
  }
  .search-input {
    padding: 7px 10px;
    font-size: 0.82rem;
  }
}
/* -------------------------------------------------------------- */
/* NEW: SEARCH INPUT STYLING */
/* -------------------------------------------------------------- */
#search-input {
    padding: 10px 15px;
    margin-right: 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 0.95rem;
    color: #1b1b2f;
    background: #fff;
    min-width: 250px;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    height: 45px;
}
#search-input:focus {
    border-color: #1b1b2f;
    outline: none;
    box-shadow: 0 0 0 2px rgba(27, 27, 47, 0.2);
}
/* SEARCH BAR — SHRINKS, STAYS IN CENTER FLOW */
.search-container {
    order: -1;
    flex: 1 1 120px;
    min-width: 60px;
    max-width: 160px;
}
.search-input {
    width: 100%;
    padding: 9px 14px;
    border: 1.5px solid #ddd;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    background: white;
    transition: 0.2s ease;
}
.search-input:focus {
    border-color: #1b1b2f;
    box-shadow: 0 0 0 3px rgba(27, 27, 47, 0.1);
}
/* OTHER BUTTONS */
.category-btn {
    background: #f0f0f0;
    color: #1b1b2f;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 80px;
    flex-shrink: 0;
    text-align: center;
}
.category-btn:not([data-category="all"]):hover,
.category-btn.active:not([data-category="all"]) {
    background: #96210f;
    color: white;
    border-color: #c9321e;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* ========= 2 GAMES PER ROW – MOBILE ========= */
#menu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 10px;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}
.grid-item {
  width: 100%;
  box-sizing: border-box;
}
/* Tablet: 3 columns */
@media (min-width: 600px) and (max-width: 900px) {
  #menu-list { grid-template-columns: 1fr 1fr 1fr; }
}
/* Desktop: 4+ columns */
@media (min-width: 901px) {
  #menu-list {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding: 0 15px;
  }
}
/* MOBILE: TIGHT, CENTERED, SWIPEABLE */
@media (max-width: 600px) {
    #category-nav {
        padding: 10px 12px;
        gap: 10px;
        justify-content: flex-start;
        z-index: 999;
    }
    #category-nav .category-btn[data-category="all"] {
        padding: 8px 14px !important;
        font-size: 0.9rem !important;
        min-width: 95px;
    }
    .category-btn {
        padding: 7px 12px;
        font-size: 0.8rem;
        min-width: 70px;
    }
    .search-container {
        /* Set minimum size for the container */
        min-width: 12px;
        max-width: 22px;
        flex: 1 1 12px;
    }
    .search-input {
        padding: 1.5px 2px; /* Reduced padding */
        font-size: 0.2rem;
    }
   
    /* REINFORCED FIX: Overrides min-width: 250px on mobile */
    #search-input {
        min-width: 12px !important; /* ABSOLUTE MINIMUM */
        max-width: 100%;
        padding: 1.5px 2px !important; /* Smallest possible padding */
        margin-right: 0;
    }
}
/* -------------------------------------------------------------- */
/* NEW: SEARCH INPUT STYLING (Desktop/Global) */
/* -------------------------------------------------------------- */
#search-input {
    padding: 10px 10px;
    margin-right: 5px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 0.95rem;
    color: #1b1b2f;
    background: #fff;
    min-width: 250px;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    height: 45px;
}
#search-input:focus {
    border-color: #1b1b2f;
    outline: none;
    box-shadow: 0 0 0 2px rgba(27, 27, 47, 0.2);
}


/* ========= UNIFORM CARD HEIGHT + 2 PER ROW ON MOBILE ========= */
#menu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 10px;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.grid-item {
  width: 100%;
  box-sizing: border-box;
}

/* ALL CARDS — SAME HEIGHT, FLEX LAYOUT */
.menu-item {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  height: 100%; /* Fill grid cell */
  transition: transform 0.2s ease;
  position: relative;
}

.menu-item:hover {
  transform: translateY(-4px);
}

/* IMAGE — FIXED HEIGHT, FULL WIDTH */
.menu-item img,
.bundle-swiper-container img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #f9f9f9;
  border-radius: 10px 10px 0 0;
  padding: 6px;
}

/* TEXT CONTENT — FLEX GROW */
.menu-item .card-content {
  flex: 1;
  padding: 10px 12px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* TITLE */
.menu-item h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: bold;
  text-align: center;
  color: #1b1b2f;
  line-height: 1.3;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* DESCRIPTION */
.menu-item p.text-card {
  margin: 0 0 8px;
  font-size: 0.91rem;
  color: #555;
  line-height: 1.35;
  height: 42px;
  overflow: hidden;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}   


/* BUNDLE GAMES LIST */
.menu-item p.bundle-games {
  margin: 4px 0 6px;
  font-size: 0.74rem;
  color: #777;
  font-style: italic;
  text-align: center;
}

/* PRICE & TIMER */
.menu-item .price-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
  font-weight: bold;
  font-size: 0.98rem;
}
.menu-item .old-price { text-decoration: line-through; color: #999; font-size: 0.85rem;justify-content: flex; }
.menu-item .sale-price { color: #27ae60; }
.menu-item .regular-price { color: #333; }
.menu-item .bundle-old { color: #999; font-size: 0.82rem; }
.menu-item .bundle-price { color: #1b1b2f; }

/* TIMER */
.menu-item .offer-countdown {
  font-family: monospace;
  font-size: 0.78rem;
  color: #e74c3c;
  text-align: center;
  background: rgba(231,76,60,.08);
  padding: 2px 6px;
  border-radius: 5px;
  margin: 2px 0;
}

/* ADD TO CART BUTTON — FIXED HEIGHT */
.menu-item .add-to-cart {
  margin: 8px 12px 10px;
  padding: 9px 12px;
  background: #f39c12;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.menu-item .add-to-cart:hover {
  background: #e67e22;
  transform: scale(1.03);
}

.bundle-ribbon { background: #f39c12; }


/* RESPONSIVE */
@media (min-width: 600px) and (max-width: 900px) {
  #menu-list { grid-template-columns: 1fr 1fr 1fr; gap: 14px; padding: 0 12px; }
  .menu-item img { height: 160px; }
}
@media (min-width: 901px) {
  #menu-list { 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding: 0 15px;
  }
  .menu-item img { height: 180px; }
}
@media (max-width: 380px) {
  #menu-list { gap: 10px; padding: 0 8px; }
  .menu-item img { height: 120px; }
  .menu-item h3 { font-size: 0.9rem; }
}

/* GLUE: Cart locked to far-right */
.nav-cart-sticky {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 12;
}

/* CART BUTTON */
.nav-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--secondary-color);
    color: white;
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-m);
    text-decoration: none;
    white-space: nowrap;
    transition: 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
}

.nav-cart-btn:hover {
    background: #e6890f;
}

/* BADGE: Item count + PULSE */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: white;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.1s ease;
}

.cart-badge.hidden {
    display: none;
}

/* PULSE ANIMATION */
@keyframes pulse-badge {
    0% { transform: scale(1); box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
    50% { transform: scale(1.4); box-shadow: 0 0 16px rgba(255, 152, 0, 0.9); }
    100% { transform: scale(1); box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
}

.cart-badge.pulse {
    animation: pulse-badge 0.6s ease-out;
}

/* Mobile */
@media (max-width: 900px) {
    .nav-cart-sticky { right: 60px; }
    .nav-cart-btn { padding: 8px 12px; font-size: 0.9rem; }
    .cart-badge {
        min-width: 18px; height: 18px; font-size: 0.7rem;
        top: -6px; right: -6px;
    }
}

/* BUNDLE CARD */
.bundle-card {
    border: 2px solid #21bf73;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ORANGE RIBBON — YOUR STYLE */
.bundle-ribbon {
    position: absolute;
    top: 45px;
    right: -60px;
    background: rgb(212, 95, 16);
    color: white;
    padding: 6px 60px;
    font-weight: bold;
    font-size: 0.85rem;
    transform: rotate(45deg);
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* SWIPEABLE IMAGES */
.bundle-swiper-container {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    display: none;

}


.bundle-card .bundle-swiper-container {
    display: block;
}

.bundle-swiper {
    --swiper-pagination-bullet-inactive-color: #9d1515;
    --swiper-pagination-color: #21bf73;
}

.bundle-swiper img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}


/* SINGLE IMAGE (NON-BUNDLES) */
.single-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/* BUNDLE GAMES LIST */
.bundle-games {
    font-weight: 600;
    color: #21bf73;
    margin: 8px 0;
    font-size: 0.95rem;
}

/* BUNDLE PRICE */
.bundle-mode .bundle-old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.bundle-mode .bundle-price {
    color: #e91e63;
    font-weight: bold;
    font-size: 1rem;
}

/* SALE RIBBON */
.offer-ribbon {
    position: absolute;
    top: 20px;
    right: -40px;
    background: #e91e63;
    color: white;
    padding: 4px 45px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 2;
}

/* ============================================= */
/* MOBILE: 2 GAMES SIDE-BY-SIDE (SMALL PHONES)   */
/* ============================================= */
@media (max-width: 600px) {
  /* Grid: 2 columns, equal width */
  #menu-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr; /* 2 equal columns */
    gap: 14px !important;
    padding: 0 10px !important;
    justify-content: center;
  }

  /* Card: Fit in 2-column grid, keep proportions */
  .menu-item {
    width: 100% !important;
    max-width: none !important;
    min-width: unset !important;
    margin: 0 !important;
    height: 360px !important;
    padding: 10px;
    display: flex;
    flex-direction: column;
  }

  /* Image: Preserve original quality & aspect ratio */
  .menu-item img {
    width: 100%;
    height: 160px !important; /* Fixed height for consistency */
    object-fit: contain !important; /* Show full image, no crop */
    object-position: center;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 8px;
    image-rendering: -webkit-optimize-contrast; /* Crisp on retina */
  }

  /* Text: Adjust for smaller cards */
  .menu-item h3 {
    font-size: 1rem !important;
    margin: 8px 0 4px !important;
    line-height: 1.2;
  }

  .menu-item p:not(.price) {
    font-size: 0.8rem;
    height: 32px;
    margin: 0 0 6px;
  }

  .menu-item p.price {
    font-size: 1rem;
    margin: 0 0 8px;
  }

  .menu-item .add-to-cart {
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
  }

  /* Bundle images (swiper or single) */
  .bundle-swiper img,
  .single-image {
    height: 140px !important;
    object-fit: contain !important;
    padding: 6px;
    background: #fff;
  }
}

/* Extra small phones: Still 2 columns, tighter */
@media (max-width: 380px) {
  #menu-list {
    gap: 10px !important;
    padding: 0 8px !important;
  }

  .menu-item img,
  .bundle-swiper img,
  .single-image {
    height: 130px !important;
  }

  .menu-item {
    padding: 8px;
  }

  .menu-item h3 {
    font-size: 0.95rem !important;
  }

  .menu-item .add-to-cart {
    padding: 7px 10px !important;
    font-size: 0.85rem !important;
  }
}





/* ===================================================== */
/* HOW TO PLAY – 1 FULL CARD ON MOBILE, CENTERED, CLEAN */
/* ===================================================== */
.testimonials-section {
    padding: 60px 0 80px;
    background: var(--light-pink-color);
    overflow: hidden;
}

.testimonials-section .section-title {
    padding-bottom: 40px;
    text-align: center;
}

/* Swiper Container */
.testimonials-section .slider-wrapper {
    overflow: visible !important;
    margin: 0 auto !important;
    padding: 0 10px;
    max-width: 100%;
    width: 100%;
    position: relative;
}

/* CARD – FULL WIDTH ON MOBILE, FIXED ON DESKTOP */
.testimonials-section .testimonial {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 32px 24px;
    margin: 15px auto;
    min-height: 520px;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.3s ease;

    /* MOBILE: FULL WIDTH, DESKTOP: FIXED */
    width: 100% !important;
    max-width: 340px !important;
    flex: 0 0 100% !important;
    min-height: 400px;
    height: auto !important;
}

.testimonials-section .testimonial:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

/* Image */
.testimonials-section .testimonial .user-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 24px;
    border: 4px solid wheat;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

.testimonials-section .testimonial .user-image:hover {
    transform: scale(1.1);
}

/* Title */
.testimonials-section .testimonial .name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 16px;
    line-height: 1.3;
}

/* Text – FULL, NO SCROLL */
.testimonials-section .testimonial .feedback {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2c3e50;
    margin: 0;
    text-align: center;
    flex-grow: 1;
    font-style: italic;
    display: block !important;
    overflow: visible !important;
    max-height: none !important;
}

.feedback {
    all: unset;
    font-style: italic;
    color: #2c3e50;
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: center;
    display: block !important;
}

.feedback::-webkit-scrollbar { display: none !important; }

/* Arrows */
.testimonials-section .swiper-slide-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.testimonials-section .swiper-slide-button:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.12);
}

.testimonials-section .swiper-slide-button:first-of-type {
    left: 10px;
}

.testimonials-section .swiper-slide-button:last-of-type {
    right: 10px;
}

/* Pagination */
.testimonials-section .swiper-pagination {
    margin-top: 20px;
}

.testimonials-section .swiper-pagination-bullet {
    background: var(--secondary-color);
    opacity: 0.5;
}

.testimonials-section .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
}

/* ==================================== */
/* RESPONSIVE – MOBILE FIRST            */
/* ==================================== */
@media (min-width: 768px) {
    .testimonials-section .testimonial {
        width: 340px !important;
        max-width: 340px !important;
        flex: 0 0 340px !important;
        margin: 15px;
    }

    .testimonials-section .swiper-slide-button:first-of-type {
        left: -24px;
    }

    .testimonials-section .swiper-slide-button:last-of-type {
        right: -24px;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 50px 0 60px;
    }

    .testimonials-section .testimonial {
        padding: 28px 20px;
        min-height: 480px;
        margin: 10px auto;
    }

    .testimonials-section .testimonial .user-image {
        width: 140px;
        height: 140px;
        margin-bottom: 20px;
    }

    .testimonials-section .testimonial .name {
        font-size: 1.3rem;
    }

    .testimonials-section .testimonial .feedback {
        font-size: 1rem;
        line-height: 1.75;
    }

    .testimonials-section .swiper-slide-button {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }
}


/*Contact section styling*/
.contact-section {
    padding: 50px 0 100px;
    background: var(--light-pink-color);
}

.contact-section .section-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-section .contact-info-list .contact-info {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: center;
}

.contact-section .contact-info-list .contact-info i {
    font-size: var(--font-size-m);
}

.contact-section .contact-form .form-input {
    width: 100%;
    height: 50px;
    padding: 0 12px;
    outline: #3b141c;
    margin-bottom: 16px;
    background: var(--white-color);
    border-radius: var(--border-radius-s);
    border: 1px solid var(--medium-gray-color);
}

.contact-section .contact-form {
    max-width: 50%;
}

.contact-section .contact-form .form-input:focus {
    border-color: var(--secondary-color);
}

.contact-section .contact-form textarea.form-input {
    height: 100px;
    padding: 12px;
    resize: vertical;
}

.contact-section .contact-form .submit-button {
    padding: 10px 26px;
    margin-top: 10px;
    color: var(--white-color);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-medium);
    background: var(--primary-color);
    border-radius: var(--border-radius-m);
    border: 1px solid var(--primary-color);
    transition: 0.3s ease;
}

.contact-section .contact-form .submit-button:hover {
    color: var(--primary-color);
    background: transparent;
}

/* =============================== */
/* 1. GENERAL FOOTER STYLES (Desktop/Tablet) */
/* =============================== */

.footer-section {
    /* Set a strong background color (e.g., dark brown/maroon, based on your design) */
    background-color: #3f1e1e; 
    color: #ffffff;
    padding: 30px 0; /* Vertical padding */
    width: 100%;
    /* Ensure the footer is fully visible and not under any fixed element */
    position: relative; 
    z-index: 10;
}

/* Container for arranging the elements */
.footer-section .section-content {
    /* Use Flexbox to align content (copyright, social, policies) */
    display: flex;
    flex-direction: column; /* Stack vertically by default */
    align-items: center; /* Center horizontally */
    text-align: center; /* Center text content */
    gap: 15px; /* Vertical spacing between the main elements */
}

/* =============================== */
/* 2. COPYRIGHT AND POLICY TEXT */
/* =============================== */

.copyright-text,
.policy-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7); /* Slightly muted text color */
    margin: 0;
}

.policy-link {
    color: #ffffff; /* White links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-link:hover {
    color: #ff9900; /* Hover color (e.g., your button orange/yellow) */
}

.separator {
    /* Color the diamond */
    color: #ff9900; 
    /* Add slight horizontal spacing */
    margin: 0 8px; 
    /* Ensure the diamond is vertically centered with the text */
    line-height: 1;
    /* Increase font size slightly if needed for prominence */
    font-size: 1.1em; 
}

/* =============================== */
/* 3. SOCIAL LINKS */
/* =============================== */

.social-link-list {
    display: flex;
    justify-content: center; /* Center the icons */
    gap: 15px; /* Spacing between icons */
    padding: 10px 0;
}

.social-link {
    color: #ffffff;
    font-size: 1.5rem; /* Icon size */
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #ff9900; /* Icon hover color */
}


/* =============================== */
/* 4. RESPONSIVENESS (Mobile stacking for Policy Links) */
/* =============================== */

@media (max-width: 600px) {
    /* On small screens, keep the main layout stacked, but ensure policy links stack too */
    
    /* Policy links stack vertically on small screens */
    .policy-link {
        display:contents; 
        text-align: center;
        margin: 5px 0; /* Vertical spacing */
    }
}



/* Responsive media query code for max width 1024px*/
@media screen and (max-width: 1024px) {
    .menu-section .menu-list{
        gap: 60px;
    }

    .menu-section .menu-list .menu-item {
        flex: 1 1 calc(33.33% - 60px);
    }
}

/* Responsive media query code for max width 900px*/
@media screen and (max-width: 900px) {
    :root {
        --font-size-m: 1rem;
        --font-size-1: 1.3rem;
        --font-size-x1: 1.5rem;
        --font-size-xx1: 1.8rem;
    }

    body.show-mobile-menu header::before {
        content: "";
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
        background: rgba(0, 0, 0, 0.2);
        z-index: 1001; /* Above #category-nav (999), below .nav-menu (200000) */
    }

    .navbar :where(#menu-close-button, #menu-open-button) {
        display: block;
        font-size: var(--font-size-1);
    }

    .navbar #menu-close-button {
        position: absolute;
        right: 30px;
        top: 30px;
        color: var(--white-color);
    }

    .navbar #menu-open-button {
        color: var(--white-color);
    }

    .navbar .nav-menu {
        display: block;
        position: fixed;
        left: -300px;
        top: 0;
        width: 300px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
        box-shadow: 2px 0 8px rgba(0,0,0,0.2);
        background: linear-gradient(to bottom, rgb(8, 8, 7), #4a3b14);
        transition: left 0.3s ease;
        color: var(--white-color);    
        z-index: 200000; /* Highest */
    }

    body.show-mobile-menu .navbar .nav-menu {
        left: 0;
    }

    .navbar .nav-menu .nav-link {
        color: var(--white-color);
        display: block;
        margin-top: 17px;
        font-size: var(--font-size-1);
    }

    .hero-section .section-content {
        gap: 50px;
        text-align: center;
        padding: 30px 20px 20px;
        flex-direction: column-reverse;
        justify-content: center;
    }

    .hero-section .hero-details :is(.subtitle, .description), .about-section .about-details,.contact-section .contact-form {
        max-width: 100%;
    }

    .hero-section .hero-details .buttons {
        justify-content: center;
    }

    .hero-section .hero-image-wrapper {
        max-width: 270px;
        margin-right: 0;
    }

    .about-section .section-content {
        gap: 70px;
        flex-direction: column-reverse;
    }

    .about-section .about-image-wrapper .about-image {
        width: 100%;
        height: 100%;
        max-width: 250px;
        aspect-ratio: 1;
    }

    .menu-section .menu-list{
        gap: 60px;
    }

    .menu-section .menu-list .menu-item {
        width: calc(100% / 2 - 30px);
    }

    .menu-section .menu-list .menu-item .menu-image {
        max-width: 200px;
    }

    .contact-section .section-content {
        align-items: center;
        flex-direction: column-reverse;
    }
}



/* Responsive media query code for max width 640px*/
@media screen and (max-width: 640px) {
    .menu-item {
        flex: 1 1 100%;
        max-width: 300px;
    }


    .menu-section .menu-list .menu-item, 
    .gallery-section .gallery-list .gallery-item {
        width: 100%;
    }

    .testimonials-section .swiper-slide-button{
        margin: 0 0 30px;
    }

    .testimonials-section .swiper-slide-button {
        display: none;
    }

    .footer-section .section-content {
        flex-direction: column;
        gap: 20px;
    }
}
/* RESPONSIVE: MOBILE MENU – FIXED BUTTON VISIBILITY */
@media screen and (max-width: 900px) {
    :root {
        --font-size-m: 1rem;
        --font-size-1: 1.3rem;
        --font-size-x1: 1.5rem;
        --font-size-xx1: 1.8rem;
    }

    /* PREVENT SCROLL WHEN MENU OPEN */
    body.show-mobile-menu {
        overflow: hidden;
    }

    /* HAMBURGER & CLOSE BUTTONS – ONLY ONE VISIBLE AT A TIME */
    .navbar #menu-open-button,
    .navbar #menu-close-button {
        display: block !important;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.8rem;
        color: white;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
        padding: 8px;
        line-height: 1;
    }

    /* DEFAULT STATE: ONLY HAMBURGER VISIBLE */
    .navbar #menu-open-button {
        display: block !important;
    }

    .navbar #menu-close-button {
        display: none !important; /* HIDDEN BY DEFAULT */
    }

    /* WHEN MENU IS OPEN: SHOW CLOSE, HIDE HAMBURGER */
    body.show-mobile-menu .navbar #menu-open-button {
        display: none !important;
    }

    body.show-mobile-menu .navbar #menu-close-button {
        display: block !important;
    }

    /* BACKDROP */
    body.show-mobile-menu header::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
        z-index: 1000;
        transition: opacity 0.3s ease;
    }

    /* MOBILE MENU PANEL */
    .navbar .nav-menu {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        background: linear-gradient(to bottom, #3b141c, #5d1f2a);
        padding-top: 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
        transition: left 0.35s ease;
        z-index: 1001;
        overflow-y: auto;
    }

    body.show-mobile-menu .navbar .nav-menu {
        left: 0;
    }

    .navbar .nav-menu .nav-link {
        color: white;
        font-size: 1.3rem;
        padding: 18px 0;
        width: 100%;
        text-align: center;
        transition: background 0.2s ease;
    }
    

    .navbar .nav-menu .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    /* OTHER MOBILE ADJUSTMENTS (keep your existing ones) */
    .hero-section .section-content,
    .about-section .section-content,
    .contact-section .section-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-section .hero-details .buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}
/* ------------------------------------------------------------------------- */
/* 4. HERO DETAILS - BUTTONS (Default: Single Line Layout) */
/* ------------------------------------------------------------------------- */
.hero-section .hero-details .buttons {
    display: flex;
    gap: 23px;
    justify-content: center;
    white-space: nowrap; 
    overflow-x: auto; 
    flex-shrink: 0; 
}

/* MEDIA QUERY: Shrink Buttons and Padding on Small Screens (below 768px) */
@media (max-width: 768px) { 
    .hero-section .hero-details {
        padding: 0 5px; 
    }
    
    .hero-section .hero-details .buttons {
        gap: 5px; 
    }

    .hero-section .hero-details .button {
        padding: 6px 8px; 
        font-size: 0.9em;
    }

    .hero-section::before {
        background-position: 10% center; 
    }
}

/* --- MODAL CSS --- */
.modal {
    display: none; /* Hidden by default by JS */
    position: fixed; 
    z-index: 1000; /* High z-index to ensure it sits on top */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); /* Dark, translucent background */
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto; /* Centered with a 5% margin from the top */
    padding: 30px;
    width: 90%; 
    max-width: 900px; /* Great for product details */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    /* Basic animation for a smooth entrance */
    animation-name: animatetop;
    animation-duration: 0.4s;
}

@keyframes animatetop {
    from {top:-300px; opacity:0} 
    to {top:0; opacity:1}
}

.close-btn {
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #333;
}

/* Modal Content Layout (for large screens) */
.modal-flex-container {
    display: flex;

    gap: 30px;
    align-items: flex-start;
}

.modal-media-section {
    flex: 1 1 40%; /* Image section */
}

.modal-details-section {
    flex: 1 1 50%; /* Text section */
}

.modal-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.modal-title {
    font-size: 2.2em;
    color: #333;
    margin-top: 0;
}

.modal-categories {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #666;
}

.modal-subtitle {
    font-size: 1.4em;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-top: 20px;
}

/* Price Styling - Match your original card styles */
.modal-price-line {
    font-size: 1.8em;
    margin: 20px 0;
    font-weight: bold;
}

.modal-old-price, .modal-bundle-old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.7em;
    margin-right: 15px;
    font-weight: normal;
}

.modal-sale-price, .modal-bundle-price {
    color: #d9534f; /* Highlighted sale price */
    font-size: 1em;
}

.modal-add-to-cart-btn {
    /* Style this to be prominent! */
    width: 100%;
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: #5cb85c; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.modal-add-to-cart-btn:hover {
    background-color: #4cae4c;
}

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px auto;
        padding: 20px;
    }
    .modal-flex-container {
        flex-direction: column-reverse; /* Stack image and details */
    }
    .modal-media-section {
        flex: 1 1 100%; 
    }
    .modal-title {
        font-size: 1.8em;
    }
}
/* MODAL BUNDLE SWIPER – full-size, 100 % working */
.modal .modal-bundle-swiper {
    height: 380px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}
.modal .modal-bundle-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}
.modal .modal-bundle-swiper .swiper-slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

