






* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: sans-serif;
    color: #1a1a1a;
    background-color: #fff;
    line-height: 1.5;
  }
  
  .MadeIn {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 3em;
    background-color: black;
    color: white;
  }


  
/* ---------- MOBILE NAV ONLY ---------- */
@media (max-width: 900px) {
  /* show hamburger, hide desktop menu */
  .menu { display: none; }                 /* hide the desktop hover menu */
  .menu-btn {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    padding: 6px;
    border-radius: 6px;
  }
  .menu-btn span { width: 20px; height: 2px; background:#111; display:block; }

  /* keep navbar padded on phones */
  .navbar { 
  padding: .6rem .8rem; 

  }

  /* mask behind drawer */
  .drawer-mask[hidden] { display: none; }
  .drawer-mask {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.28);
    opacity: 0; pointer-events: none;
    transition: opacity .18s ease;
    z-index: 900;
  }
  .drawer-mask.is-open { opacity: 1; pointer-events: auto; }

  /* the drawer itself */
  .mobile-drawer {
    position: fixed; top: 0; left: 0;
    height: 100vh; width: 86vw; max-width: 420px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    transform: translateX(-100%);
    transition: transform .22s ease;
    z-index: 1000;
    display: flex; flex-direction: column;
  }
  .mobile-drawer.is-open { transform: translateX(0); }

  .drawer-topbar {
    display:flex; align-items:center; justify-content: space-between;
    padding: .9rem .9rem .7rem;
    border-bottom: 1px solid #ececec;
  }
  .drawer-close { background:none; border:0; font-size: 1.25rem; line-height:1; }
  .drawer-brand { font-weight:800; }

  /* panels container */
  .drawer-panels { position: relative; flex: 1; overflow: hidden; }

  /* each panel */
  .drawer-panel {
    position: absolute; inset: 0;
    padding: 1rem .9rem 1rem 1rem;
    overflow-y: auto;
    transform: translateX(100%);         /* offscreen to the right */
    transition: transform .22s ease;
    background:#fff;

  }
  .drawer-panel.is-active { transform: translateX(0); }
  /* when navigating forward, slide left the previous panel */
  .drawer-panel.is-prev { transform: translateX(-100%); }

  .drawer-row,
  .drawer-item,
  .drawer-back {
    display:flex; align-items:center; justify-content: space-between;
    gap: .6rem;
    padding: 1rem .25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none; color: #111; background: none; border-left: 0; border-right: 0; 
    width: 100%;
  }
  .drawer-row.login { justify-content: flex-start; gap: .6rem; margin-top: 18em;}
  .drawer-row .row-icon { width: 22px; height: 22px; object-fit: contain; }
  .drawer-divider { height: 12px;}

  .drawer-item { justify-content: flex-start; }
  .drawer-back { font-weight: 700; text-align:left; }

  .drawer-footer {
    display:flex; align-items:center; gap: 1rem;
    padding: 1rem .25rem 0;
  }
  .drawer-footer img { width: 26px; height: 26px; object-fit: contain; }

  /* currency section */
  .currency-search {
    position: sticky; top: 0; background:#fff; padding: .5rem 0 .75rem; z-index: 1;
    display:flex; align-items:center; gap:.5rem;
  }
  .currency-search input {
    flex:1; padding:.7rem .9rem; border:1px solid #ddd; border-radius: 10px;
  }
  .currency-search .currency-clear {
    border:0; background:#f5f5f5; width:36px; height:36px; border-radius:10px; font-size:1rem;
  }

  .currency-list { list-style:none; margin:0; padding:0; }
  .currency-list li button {
    width:100%; text-align:left; padding: .9rem .25rem; border:0; background:none; font-size:1rem;
    display:flex; align-items:center; justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
  }
  .currency-list li span { opacity:.85; }
}


/* Hide hamburger on desktop by default */
.menu-btn { display: none; }

/* Drawer mask & drawer base (hidden/offscreen) */
.drawer-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.28);
  opacity: 0; pointer-events: none;
  z-index: 900;
  transition: opacity .18s ease;
}

.mobile-drawer {
  position: fixed; top: 0; left: 0;
  height: 100vh; width: 86vw; max-width: 420px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  transform: translateX(-100%);      /* offscreen by default */
  transition: transform .22s ease;
  z-index: 1000;
  display: flex; flex-direction: column;
}

/* panels baseline */
.drawer-panels { position: relative; flex: 1; overflow: hidden; }
.drawer-panel { position: absolute; inset: 0; overflow-y: auto; background:#fff; transform: translateX(100%); transition: transform .22s ease; }
.drawer-panel.is-active { transform: translateX(0); }
.drawer-panel.is-prev { transform: translateX(-100%); }

/* Topbar/rows/items baseline style (so they don’t look like purple links if media query fails) */
.drawer-topbar { display:flex; align-items:center; justify-content: space-between; padding: .9rem .9rem .7rem; border-bottom: 1px solid #ececec; }
.drawer-close { background:none; border:0; font-size: 1.25rem; line-height:1; }
.drawer-brand { font-weight:800; }

.drawer-row, .drawer-item, .drawer-back {
  display:flex; align-items:center; justify-content: space-between;
  gap: .6rem; padding: 1rem .25rem; font-size: 1.05rem;
  border-bottom: 1px solid #f0f0f0; text-decoration: none; color: #111; background: none;
}
.drawer-row.login { justify-content: flex-start; gap: .6rem; }
.row-icon { width: 22px; height: 22px; object-fit: contain; }
.drawer-divider { height: 12px; }
.drawer-footer { display:flex; gap: 1rem; padding: 1rem .25rem 0; }
.drawer-footer img { width: 26px; height: 26px; object-fit: contain; }

.currency-search { position: sticky; top: 0; background:#fff; padding: .5rem 0 .75rem; z-index: 1; display:flex; gap:.5rem; }
.currency-search input { flex:1; padding:.7rem .9rem; border:1px solid #ddd; border-radius: 10px; }
.currency-clear { border:0; background:#f5f5f5; width:36px; height:36px; border-radius:10px; font-size:1rem; }
.currency-list { list-style:none; margin:0; padding:0; }
.currency-list li button { width:100%; text-align:left; padding: .9rem .25rem; border:0; background:none; font-size:1rem; display:flex; align-items:center; justify-content: space-between; border-bottom: 1px solid #f0f0f0; }
.currency-list li span { opacity:.85; }




@media (max-width: 900px) {
  .menu { display: none; }             /* hide desktop hover menu on phones */
  .menu-btn {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid #dcdcdc;
    background: #fff;
    padding: 6px;
    border-radius: 6px;
  }
  .menu-btn span { width: 20px; height: 2px; background:#111; display:block; }

  /* nicer padding on phones */
  .navbar { padding: .6rem .8rem; }
}


/* Desktop: show dropdown menu, hide burger */
@media (min-width: 901px) {
  .navbar .menu { display: flex; align-items: center; }
  .navbar .menu-btn { display: none; }
}



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: sans-serif;
    color: #1a1a1a;
    background-color: #fff;
    line-height: 1.5;
  }
  
  .MadeIn {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 3em;
    background-color: black;
    color: white;
  }


.navbar {
  height: 4em;
  display: flex;
  justify-content: space-between; /* left group | center | right group */
  align-items: center;            /* vertically center everything */
  position: relative;  
  padding: 0 2rem; /* 2rem ≈ 32px; adjust to taste */
}

/* center logo absolutely inside navbar */
.navbar .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* left menu and right icons stay in normal flex flow */
.navbar .menu {
  display: flex;
  align-items: center;
}

.navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 1rem; /* space between icons */
}

.navbar .nav-right img {
  width: 24px;   /* adjust size as needed */
  height: 24px;  /* keep square for icons */
  object-fit: contain;
  cursor: pointer;
}
  
/* ===== Desktop menu with hover dropdowns ===== */
.menu {
  display: flex;
  align-items: center;


}

.menu-list {
  list-style: none;
  display: flex;
  gap: 2.2rem;                 /* space between F1 FRAMES / ABOUT US */
  margin: 0;
  padding: 0;
}

.menu-link {
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;  /* like your screenshot */

  color: #111;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

/* caret ▼ */
.has-dropdown > .menu-link::after {
  content: "▾";
  font-size: .8em;
  transform: translateY(-1px);
  opacity: .7;
}

/* dropdown panel */
.dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: .75rem;
  min-width: 260px;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
  list-style: none;
  padding: .75rem 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .15s ease, transform .15s ease;
  z-index: 1000;                /* sit above content */
}

.has-dropdown {
  position: relative;           /* anchor for absolute dropdown */
}

.dropdown li {
  padding: 0;
}

.dropdown a {
  display: block;
  padding: .6rem 1rem;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}

.dropdown a:hover {
  background: #f7f7f7;
}

/* show on hover */
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* keep header above page border lines etc. */
.navbar {
  position: relative;
  z-index: 200;
  border: 2px solid black;
}





/* Mobile: hide desktop menu, show burger */
@media (max-width: 900px) {
  .navbar .menu { display: none !important; }   /* force-hide links on phones */
  .navbar .menu-btn { display: inline-flex; }   /* show hamburger */
  .navbar .logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .navbar .nav-right { margin-left: auto; }
}



/* Desktop/tablet */
.product-intro {
  max-width: 880px;
  width: min(92vw, 880px);
  margin: 0 2.5em;            /* center the block */
  padding: 2.5em 0 1.5em;
}

.product-intro h1 {
  color: #000;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: .5rem;
}

.product-intro p {
  color: #000;
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 62ch;           /* keep lines comfortable on wide screens */
}

/* Mobile styles to match your design */
@media (max-width: 640px) {
  .product-intro {
    width: 100%;
    padding: 2rem 1rem 1.25rem;
    margin: 0 0;

  }
  .product-intro h1 {
    text-align: center;
    /* fluid size ~ 28–34px */
    font-size: clamp(1.75rem, 4.5vw + 0.6rem, 2.15rem);
    line-height: 1.2;
  }
  .product-intro p {
    text-align: center;
    /* fluid size ~ 16–18px */
    font-size: clamp(1rem, 1.8vw + 0.8rem, 1.125rem);
    line-height: 1.7;
    max-width: 34ch;         /* match the narrow centered look in your mock */
    margin: 0 auto;          /* center the paragraph */
  }
}

.product-intro strong { font-weight: 700; }
.product-intro .highlight-blue { color: #0077b6; }






/* Product Section */
  .product-section {
    padding: 2em 1em;
    margin: 0 auto;
  }
  

  
/* Filters row */
.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2em;              /* spacing between options */
  font-size: 0.95em;
  margin-bottom: 1.5em;
}
.filters .label { color:#555; margin-right:.25em; font-size: 1.2em; margin-left: 1.5em;}

/* Each filter (for positioning its panel) */
.filter { position: relative; }

/* Button look */
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .55em .9em;
  border: 2px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  color: #111;
  cursor: pointer;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.filter-btn:hover { border-color:#bfbfbf; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.filter-btn img { width: .8em; height: auto; display:block; }

/* Dropdown panel */
.filter-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(86vw, 420px);
  max-height: 420px;
  overflow: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  padding: 10px 0 12px;
  display: none;   /* hidden by default */
  z-index: 20;
}

/* Open state */
.filter-panel.is-open { display: block; }

/* Panel header */
.panel-head {
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
  padding: 8px 16px 12px;
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  background: #fff;
}
.selected-count { color:#666; }
.reset {
  background:none; border:none; color:#111; font-weight:700;
  text-decoration: underline; cursor:pointer;
}

/* List of checkboxes */
.panel-list { list-style:none; padding: 8px 8px 8px 0; }
.panel-list li {
  display:flex; align-items:center; gap: 10px;
  padding: 10px 16px;
}
.panel-list input[type="checkbox"] {
  width: 18px; height: 18px; cursor:pointer;
}
.panel-list label {
  cursor:pointer; user-select:none;
}

/* Small screens */
@media (max-width: 600px) {
  .filters { gap: 1em; }
  .filter-panel { width: 92vw; }
}


/* Active selections bar */
.active-filters{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.75rem;
  justify-content:flex-start;              /* no space-between */
  margin:12px 0 16px;
}

/* Chip */
.chip{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.5rem .85rem;
  border:1.8px solid #d5d5d5;
  border-radius:999px;
  background:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.06);
  cursor:pointer;
  user-select:none;
  font-weight:600;
  white-space:nowrap;
}
.chip img{ width:12px; height:12px; display:block; }

/* Remove-all behaves like a chip-like link, right after the last chip */
.clear-all{
  background:none; border:none; padding:0;
  color:#111; font-weight:700; text-decoration:underline; cursor:pointer;
  margin-left:0 !important;               /* override any old rule */
}


  

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 300px)); /* fixed 240px columns */
  gap: 2.5em;
  justify-content: start;   /* or 'center' if you prefer centered rows */
  margin-left: 1.5em;
  margin-right: 1.5em;
  justify-content: center;
  align-items: stretch; /* all cards same height */
}
  
  .product-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .product-image {
    background-color: #d3d3d3;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 6px;
    margin-bottom: 0.6em;
    overflow:hidden;            /* clip the image to rounded corners */
    position:relative;
    
  }

    .product-image img {
    width: 100%;
    height:100%;                /* fill the frame’s height */
    object-fit:cover;           /* fill and crop, no letterboxing */
    display:block;
    border-radius:0; 
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1); /* smoother */
    will-change: transform; /* performance boost */
  }


  

  .product-image:hover img {
    transform: scale(1.05); /* zoom in */
  }


  /* Делаем контейнер картинки позиционированным */
.product-image, .product-image-1 {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* чтобы кнопка не вылетала за скругления */
}

/* Стили самой кнопки-иконки */
.cart-icon-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    opacity: 0; /* Скрыта по умолчанию */
    transform: translateY(5px);
}


.product-card:hover .cart-icon-btn {
    opacity: 1;
    transform: translateY(0);
}
  

/* Эффект при наведении на иконку */
.cart-icon-btn:hover {
    background: #A42325; /* Фирменный красный F1 */
    transform: scale(1.1);
}


  
  .create-your-own .product-image {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .create-text {
    position: absolute;
    inset: 0;                  /* top:0; right:0; bottom:0; left:0 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    font-weight: 800;
    font-size: clamp(20px, 4vw, 36px);
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.918);
    pointer-events: none;      /* clicks pass through to the card/link */
    text-align: left;
  }
  


  .product-image-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1); /* smoother */
    will-change: transform; /* performance boost */
  }

  .product-image-1:hover img {
    transform: scale(1.05); /* zoom in */
  }

  .product-image-1::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
}

  .product-card h3 {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 0.3em;
    color: #a5423c;
  }
  
  .stars {
    font-size: 0.85em;
    color: #1a1a1a;
    margin-bottom: 0.3em;
  }
  
  .rating-count {
    color: #a5423c;
    font-weight: normal;
    margin-left: 0.3em;
    font-size: 0.85em;
  }
  
  .price {
    font-size: 0.9em;
    font-weight: 500;
    color: #333;
  }
  


/* ===== Mobile product toolbar ===== */
.catalog-toolbar{
  display:none;                      /* hidden on desktop */
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:0 .75rem 0 1rem;
  margin:.25rem 0 1rem;
}
.toolbar-filter{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.5rem .75rem;
  border:1.8px solid #d7d7d7; border-radius:12px;
  background:#fff; cursor:pointer; font-weight:600;
 
}
.toolbar-count{ color:#2b2b2b; font-weight:600; }



.toolbar-filter span img {
  width: 1.5em;
  display: flex;
  justify-content: center;
}

/* ===== Mobile layout rules ===== */
@media (max-width: 640px){
  .catalog-toolbar{ display:flex; }

  /* Hide chips on phones for a clean list (optional) */
  .active-filters{ display:none; }

  /* Collapse filters by default; open via class toggle */
  .filters{
    display:none;                     /* closed by default */
    padding:0 .75rem; gap:.6rem;      /* when opened */
  }
  .filters.is-open{ display:flex; flex-wrap:wrap; }

  /* Panels fit viewport */
  .filter-panel{ width:92vw; max-height:70vh; }

  /* 2-column grid like your mock */
  .product-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-left:.75rem; margin-right:.75rem;
    border:none;                      /* remove debug border on mobile */
  }

  /* Card typography/spacing */
  .product-card h3{
    font-size:.98rem;
    line-height:1.25;
    margin-top:.2rem;
  }
  .price{ font-size:.95rem; }
  .stars{ font-size:.85rem; }

  /* Keep nice rounded images */
  .product-image {
    border-radius:10px;  
  }

  .product-image img{ 
  border-radius:10px;   

}
}


/* One-column fallback for very narrow devices */
@media (max-width: 360px){
  .product-grid{ grid-template-columns: 1fr; }
}



/* ===== Mobile filter drawer ===== */
.mfilter { display:none; }
@media (max-width: 640px){
  .mfilter { display:block; }
}

/* overlay */
.mfilter__overlay{
  z-index: 9998 !important;
  position:fixed; inset:0; background:rgba(0,0,0,.35);
  opacity:0; pointer-events:none; transition:opacity .25s ease; z-index:60;
}

/* drawer */
.mfilter__drawer{
  z-index: 9999 !important;
  position:fixed; inset:0 auto 0 0; width:86vw; max-width:520px; background:#fff;
  transform:translateX(-100%); transition:transform .3s ease; z-index:70;
  display:flex; flex-direction:column;
  border-right:1px solid #eaeaea;
  height: 100dvh;
}

/* Open state */
.mfilter.is-open .mfilter__overlay{ opacity:1; pointer-events:auto; }
.mfilter.is-open .mfilter__drawer{ transform:translateX(0); }

/* header */
.mfilter__header{
  position:sticky; top:0; background:#fff; z-index:2;
  display:flex; align-items:center; justify-content:center;
  padding:14px 44px; border-bottom:1px solid #ededed;
}
.mfilter__close{
  position:absolute; right:10px; top:10px; background:none; border:none; padding:6px; cursor:pointer;
}
.mfilter__close img{ width:22px; height:22px; }
.mfilter__title{ font-weight:700; font-size:1.2rem; }

/* pages */
.mfilter__page{ 
  display:flex;
  flex-direction:column;
  flex: 1 1 auto;
  min-height:0;
  overflow-y:auto;                 /* allows scroll on the MAIN page */
  -webkit-overflow-scrolling:touch;
  padding: 8px 0 calc(110px + env(safe-area-inset-bottom));
  /* bottom padding ensures content isn’t hidden behind the fixed footer */
 }
 
.mfilter__page[hidden]{ display:none; }

.mfilter__page{
  display: flex;                 /* NEW */
  flex-direction: column;        /* NEW */
  min-height: 0;                 /* NEW — важно для скролла внутри flex */
}

.mfilter__list{ list-style:none; padding:8px 0; margin:0; }
.mfilter__row{
  width:100%; display:flex; align-items:center; justify-content:space-between;
  padding:18px 16px; background:none; border:none; border-bottom:1px solid #f1f1f1;
  font-size:1.15rem; cursor:pointer;
}
.mfilter__chev{ width:20px; height:20px; opacity:.75; }

/* subheader of category page */
.mfilter__subheader{
  display:flex; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid #ededed;
}
.mfilter__back{ background:none; border:none; padding:6px; cursor:pointer; }
.mfilter__back img{ width:22px; height:22px; }
.mfilter__subtitle{ font-weight:700; font-size:1.15rem; }

/* category list */

.mfilter__content{
  flex: 1 1 auto;                /* NEW */
  min-height: 0;                 /* NEW */
  overflow-y: auto;              /* было overflow:auto — оставляем явный y */
  -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
  padding: 8px 0 110px;          /* нижний паддинг под фиксированный футер */
  touch-action: pan-y;           /* NEW — помогает на некоторых Android */
}


/* опционально: видимая полоса прокрутки (WebKit) */
.mfilter__content::-webkit-scrollbar{
  width: 6px;
}
.mfilter__content::-webkit-scrollbar-track{
  background: #f2f2f2;
}
.mfilter__content::-webkit-scrollbar-thumb{
  background: #bbb;
  border-radius: 6px;
}

.mfilter__checks{ list-style:none; margin:0; padding:0; }
.mfilter__checks li{
  display:flex; align-items:center; gap:12px; padding:16px; border-bottom:1px solid #f6f6f6;
}
.mfilter__checks input{ width:20px; height:20px; }

/* footer buttons */
.mfilter__footer{
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;                    /* match the drawer’s width */
  max-width: none;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top:1px solid #ededed;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.mfilter__link{
  background:none; border:none; text-decoration:underline; font-weight:700; cursor:pointer;
}
.mfilter__apply{
  background:#f26a4f; color:#fff; border:none; border-radius:10px; padding:12px 18px; font-weight:700; cursor:pointer;
}

/* small icon in toolbar (optional) */
.mf-icon{ width:18px; height:18px; vertical-align:-3px; }













/* Product Details Section */
.product-details {
  display: flex;
  background-color: #fff;
  padding: 3em 2em;

}

.product-details-container {
  display: flex;
  justify-content: center;        /* Center vertically */
  align-items: center;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  gap: 3em;

}

.exploded-view {

  width: 50%
}

.exploded-view img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1); /* smoother */
  will-change: transform; /* performance boost */
}

.exploded-view:hover img {
  transform: scale(1.025);   
}


.feature-info {
  width: 40%;

  display: flex;                  /* Make it a flex container */
  flex-direction: column;         /* Stack children vertically */
  justify-content: center;        /* Center vertically */
  align-items: center;            /* Center horizontally */
  text-align: center;             /* Optionally center text itself */
}

.feature-info h3 {
  font-size: 1.6em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
}

.feature-info ul {
  list-style-type: none;
  padding-left: 0;
}

.feature-info li {
  margin-bottom: 1.2em;
  font-size: 1.05em;
  line-height: 1.4;
}




/* ===== Product Details — mobile card layout ===== */
@media (max-width: 768px) {
  .product-details {
    background: #f7f7f7;              /* gray background like mock */
    padding: 1.25rem 1rem;
    border: none;
    display: block;                   /* don’t force a row on small screens */
  }

  /* Make the whole block a white card */
  .product-details-container {
    display: block;
    max-width: 680px;
    margin: 0 auto;
    padding: .75rem .75rem 1.25rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    border: none;
  }

  /* Image on top, rounded */
  .exploded-view {
    width: auto;
    margin: 0;
    border: none;
  }
  .exploded-view img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;             /* adjust to 16/9 if you want shorter */
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }

  /* Text block */
  .feature-info {
    width: auto;
    border: none;
    padding: 1rem .5rem 0;
    text-align: center;
    display: block;                   /* no flex needed here */
  }

  .feature-info h3 {
    font-size: clamp(20px, 5.4vw, 24px);
    font-weight: 800;
    line-height: 1.25;
    margin: 1rem 0 .75rem;
    padding: 0;
  }

  .feature-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;                        /* even spacing between bullets */
  }

  .feature-info li {
    font-size: clamp(14px, 4.2vw, 16px);
    line-height: 1.6;
    color: #222;
  }

  /* Turn the <strong> in each li into a small heading */
  .feature-info li strong {
    display: block;
    font-size: clamp(15px, 4.6vw, 17px);
    font-weight: 800;
    margin-bottom: .25rem;
  }
}







/*Models*/

.Models {

  padding-bottom: 4em; /* optional spacing */
  display: grid;
  justify-content: center;
  align-items: center;
}

.custom-frame-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2em;

  height: 30em; 
  margin-top: 2em; 

}

.custom-frame-image {
  flex: 1 1 300px;
  max-width: 680px;
  height: 100%; /* Make image container fill the parent height */

  display: flex; /* to help stretch image */
  align-items: stretch; 

}


.custom-frame-image img {
  width: 100%;
  border-radius: 8px;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1); /* smoother */
  will-change: transform; /* performance boost */
}


.custom-frame-image:hover img {
  transform: scale(1.025);   
}

.custom-frame-info {
  flex: 1 1 300px;
  max-width: 36em;
  text-align: left;
 
}

.custom-frame-info h3 {
  font-size: 1.5em;
  margin-bottom: 1em;

}

.custom-frame-info p {
  font-size: 1em;
  margin-bottom: 1.5em;

}

.learn-more-btn {
  background-color: #f26a4f;
  color: white;
  border: none;
  padding: 0.8em 1.2em;
  cursor: pointer;
  font-weight: bold;
  height: 3em;
}

.learn-more-btn:hover {
  background-color: #d9533f;
}



/* ===== Mobile (fix) ===== */
@media (max-width: 768px) {

    .Models { padding: 0 1rem 2.25rem; }

  /* Stack the block; kill fixed height */
  .custom-frame-content{
    
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    margin-top: 1.5rem;
    height: auto;              /* override 30em */
    border: none;
  }

  /* Image first, full width, natural height */
  .custom-frame-image{
    order: 1;
    max-width: 100%;
    height: auto;              /* override 100% */
    border: none;
    display: block;            /* no flex stretching on mobile */
  }
  .custom-frame-image img{
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;       /* or 16/9 if you prefer */
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }

  /* Text block second, centered */
  .custom-frame-info{
    order: 2;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
    border: none;
    padding: .25rem .25rem 0;
  }
  .custom-frame-info h3{
    margin: .5rem 0 .5rem;
    font-size: clamp(18px, 5.4vw, 22px);
    font-weight: 800;
    line-height: 1.2;
    border: none;
  }
  .custom-frame-info p{
    margin: 0 auto 1rem;
    max-width: 60ch;
    font-size: clamp(15px, 4.2vw, 17px);
    line-height: 1.55;
    color: #222;
    opacity: .95;
    border: none;
  }

  .learn-more-btn{
    background-color: #f26a4f;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .9rem 1.2rem;
    height: auto;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .01em;
    width: 80%;
    max-width: 320px;
    margin: 0 auto 1.25rem;
  }

    .learn-more-btn:active { transform: translateY(1px); }

}








  /* Testimonials Section */
.testimonials {
  text-align: center;
  padding: 3em 1em;
  background-color: #fff;
 
}

.testimonials h2 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
   
}

.rating-stars {
   
  font-size: 1em;
  margin-bottom: 2em;
  color: #f2b01e;
}

.testimonial-cards{
  display:flex;
  flex-wrap:nowrap;              /* one line */
  gap:1rem;
  overflow-x:auto;               /* horizontal scroll */
  overflow-y:hidden;
  scroll-snap-type:x mandatory;  /* snap to cards */
  padding:0 1rem 1.25rem;
  scroll-padding-inline:1rem;
  justify-content:flex-start;
  -webkit-overflow-scrolling:touch;
}

.testimonial-cards::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge */
}

.testimonial-card{
  flex:0 0 320px;                /* visible width per card on desktop */
  min-width:280px;               /* don’t shrink too far */
  scroll-snap-align:start;
  background:#fff;
  border-radius:12px;
  padding:1rem;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}

/* Spacer so last card can fully snap into view */
.testimonial-cards::after{
  content:"";
  flex:0 0 1rem;
}

.testimonial-card .stars {
  color: #f2b01e;
  font-size: 1.1em;
  margin-bottom: 0.5em;

}

.testimonial-card .text {
  font-size: 0.95em;
  margin-bottom: 0.5em;

}

.testimonial-card .author {
  font-weight: bold;
  font-size: 0.9em;

}


/* === Testimonials: mobile layout like mock === */
@media (max-width: 768px) {
  .testimonials {
    text-align: left;
    padding: 1.5rem 1rem 2.25rem;
    background: #fff;
    border: none;                 /* remove debug */
  }

  .testimonials h2 {
    font-size: 1.35rem;
    line-height: 1.15;
    margin: 0 0 .35rem;
    border: none;
  }

  /* "★★★★★ from 416 reviews ✅" row */
  .rating-stars {
    margin: 0 0 1rem;
    font-size: .95rem;
    color: #222;
    border: none;
  }
  /* color the stars only (first 5 chars) */
  .rating-stars::first-line { color: #f2b01e; }

  /* Horizontal swipe cards with snap */
.testimonial-cards {
  display: flex;
  flex-wrap: nowrap;              /* force one row */
  gap: 1rem;                       /* space between cards */
  overflow-x: auto;                /* horizontal scrolling */
  overflow-y: hidden;
  scroll-snap-type: x mandatory;   /* snap to cards */
  padding: 0 1rem 1.25rem;         /* side padding */
  scroll-padding-inline: 1rem;     /* snap room for first/last */
  justify-content: flex-start;     /* start from first card */
  -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
}

.testimonial-card {
  flex: 0 0 85%;                   /* width = 85% of screen */
  min-width: 0;
  scroll-snap-align: start;        /* snap point at start of card */
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* Spacer so last card is fully visible */
.testimonial-cards::after {
  content: "";
  flex: 0 0 1rem;
}

  .testimonial-card .stars {
    color: #f2b01e;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: .5rem;
    border: none;
  }
  .testimonial-card .text {
    font-size: .95rem;
    color: #222;
    margin-bottom: .75rem;
    border: none;
  }
  .testimonial-card .author {
    font-weight: 700;
    font-size: .9rem;
    color: #333;
    border: none;
  }
}



/* Tiny phones */
@media (max-width: 400px) {
  .testimonials h2 { font-size: 1.2rem; }
  .testimonial-cards { grid-auto-columns: 92%; }
}







/* ===== FAQ ===== */
.faq{
  max-width: 1000px;
  margin: 40px auto 80px;
  padding: 0 16px;
}
.faq__title{
  text-align:center;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: .02em;
  margin: 0 0 18px;
}
.faq__list{
  border-top: 1px solid #e8e8e8;
}

/* Row (closed) */
.faq__item{ border-bottom:1px solid #eee; }
.faq__btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 14px;
  background:#fff;
  border:none;
  cursor:pointer;
  font-size: clamp(15px, 2.2vw, 18px);
  text-align:left;
}
.faq__btn:hover{ background:#f7f7f7; }
.faq__label{
  font-weight: 700;
  letter-spacing:.02em;
}
.faq__icon{
  width:18px; height:18px; flex:0 0 18px; opacity:.85;
}

/* Panel (open) with height animation */
.faq__panel{
  overflow:hidden;
  transition:max-height .28s ease;
  max-height:0;
  background:#fff;
}
.faq__panel[hidden]{ display:block; } /* keep layout but hide initially */
.faq__content{
  padding: 18px 14px 28px;
}
.faq__content h3{
  font-size: clamp(16px, 2.2vw, 20px);
  margin: 18px 0 6px;
}
.faq__content p{
  margin: 0 0 12px;
  line-height:1.6;
  color:#202020;
}

/* Visually emphasize the active row like your mock’s light gray */
.faq__item.is-open .faq__btn{ background:#f6f6f6; }







.frame-categories {
  padding: 4em 1em;
  background-color: #fff;
  text-align: center;

}

.frame-categories h2 {
  font-size: 2em;
  margin-bottom: 2em;

}

.frame-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2em;

}

.frame-card {
  background-color: #f2f2f2;
  border-radius: 10px;
  padding: 1.5em;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;

}

.frame-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1em;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1); /* smoother */
  will-change: transform; /* performance boost */
}

.frame-card:hover img {
  transform: scale(1.05); /* zoom in */
}

.frame-card h3 {
  font-size: 1.2em;
  margin-bottom: 0.5em;
 
}

.frame-card p {
  font-size: 0.95em;
  margin-bottom: 1em;

}



.frame-card a {
  color: #f26a4f;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 10em;


}





/* ===== Frame Categories — mobile 2-column grid ===== */
@media (max-width: 768px) {
  .frame-categories {
    padding: 1.5rem 1rem 2rem;
    background: #fff;
    text-align: left;          /* like the mock */
    border: none;
  }

  .frame-categories h2 {
    font-size: clamp(20px, 5.4vw, 26px);
    line-height: 1.2;
    margin: 0 0 1rem;
    border: none;
  }

  .frame-options {
    display: grid;
    grid-template-columns: 1fr 1fr;   /* two columns on phones */
    gap: 1rem;
    border: none;
  }

  .frame-card {
    background: #f2f2f2;
    border-radius: 12px;
    padding: .75rem;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: none;
  }

  .frame-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;       /* consistent card height; use 16/9 if shorter */
    object-fit: cover;
    border-radius: 10px;
    margin: 0 0 .6rem;
  }

  .frame-card h3 {
    font-size: clamp(14px, 4.2vw, 16px);
    font-weight: 800;
    line-height: 1.25;
    margin: .2rem 0 .25rem;
    border: none;
  }

  .frame-card p {
    font-size: clamp(12px, 3.8vw, 14px);
    line-height: 1.45;
    color: #222;
    opacity: .9;
    margin: 0 0 .75rem;
    border: none;
  }

  .frame-card a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #111;               /* darker like mock */
    font-weight: 700;
    text-decoration: none;
    border: none;
  }
}

/* super-narrow phones: fall back to 1 column */
@media (max-width: 360px) {
  .frame-options { grid-template-columns: 1fr; }
}






/* Footer Section */
.site-footer {
  background-color: #0d0d0d;
  color: #fff;
  padding: 4em 2em 2em;
  font-size: 0.95em;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 3em;
  border-bottom: 1px solid #333;
}

.footer-column h4 {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 1em;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.6em;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

.footer-column ul li a:hover {
  opacity: 1;
}

.footer-column.about p {
  opacity: 0.9;
  line-height: 1.6;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 2em;
  flex-wrap: wrap; /* in case of very small screens */
  margin-top: 1em;
}


.social-icons img {
  height: 26px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
  max-width: 1400px;
  margin: 2em auto 0;
  font-size: 0.9em;
}

.footer-bottom .right {
  display: flex;
  align-items: center;
  gap: 0.3em;
  flex-wrap: wrap; /* in case of very small screens */
}

.footer-bottom .right-KaspiGoogle img {
  height: 22px;
  margin-right: 0.2em;
  object-fit: contain;
}

.footer-bottom .right-rest img {
  height: 28px;
  margin-right: 0.5em;
  object-fit: contain;
}

@media (max-width: 768px) {
  /* Основной контейнер: запрещаем перенос и разрешаем горизонтальную прокрутку, если не влезает */
  .footer-bottom .right {
    flex-wrap: nowrap !important; 
    justify-content: center; /* Центрируем иконки */
    width: 100%;
    gap: 5px; /* Уменьшаем расстояние между группами */
  }

  /* Делаем так, чтобы внутренние блоки не переносили иконки внутри себя */
  .footer-bottom .right-KaspiGoogle,
  .footer-bottom .right-rest {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Чтобы блоки не сжимались */
  }

  /* Оптимизируем размер иконок для мобильных, чтобы они точно влезли в ряд */
  .footer-bottom .right-KaspiGoogle img {
    height: 18px; /* Чуть меньше для мобилок */
    margin-right: 4px;
  }

  .footer-bottom .right-rest img {
    height: 22px; /* Чуть меньше для мобилок */
    margin-right: 4px;
  }
}


/* Currency switcher */
.currency-box{
  display:flex;
  align-items:center;
  gap:.75rem;
  flex-wrap:wrap;
}
.currency-label{
  font-size:.95rem;
  color:#cfcfcf; /* tweak for your theme */
}

/* Hide the fallback select; we use the bottom sheet */
.currency-select{
  position:absolute;
  width:1px; height:1px;
  opacity:0; pointer-events:none;
}

/* Trigger button styled like your box */
.currency-trigger{
  display:inline-flex; align-items:center; gap:.5rem;
  background:#111; color:#fff;
  border:1.5px solid #7a7a7a; border-radius:10px;
  padding:.6rem .75rem; font-size:1rem; cursor:pointer;
}

/* ===== Bottom sheet ===== */
.cc-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  opacity:0; pointer-events:none; transition:opacity .25s ease;
  z-index: 99998;
}
.cc-sheet{
  position:fixed; left:0; right:0; bottom:0;
  transform: translateY(100%); /* hidden */
  background:#111; color:#fff; z-index: 99999;
  border-top-left-radius:14px; border-top-right-radius:14px;
  box-shadow:0 -10px 40px rgba(0,0,0,.35);
  transition: transform .28s ease;
  display:flex; flex-direction:column;
}
.cc-sheet--small{ max-height:420px; height:40vh; }

.cc-overlay.is-open{ opacity:1; pointer-events:auto; }
.cc-sheet.is-open{ transform: translateY(0); }

.cc-grabber{ width:48px; height:4px; background:#2a2a2a; border-radius:4px; margin:8px auto 4px; }
.cc-header{ display:flex; align-items:center; justify-content:space-between; padding:8px 14px; border-bottom:1px solid #272727; }
.cc-title{ font-weight:700; font-size:1rem; }
.cc-close{ background:none; border:none; color:#fff; font-size:1.1rem; cursor:pointer; }

.cc-searchbar{ padding:10px 14px; border-bottom:1px solid #272727; }
.cc-searchbar input{
  width:100%; background:#181818; color:#fff; border:1px solid #3a3a3a;
  border-radius:10px; padding:.6rem .75rem; font-size:1rem;
}
.cc-searchbar input::placeholder{ color:#9a9a9a; }

.cc-list{ overflow:auto; padding:6px 6px 12px; flex:1 1 auto; min-height:0; -webkit-overflow-scrolling:touch; }
.cc-item{
  width:100%; text-align:left; background:none; border:none; color:#fff;
  display:flex; align-items:center; justify-content:space-between;
  gap:.75rem; padding:10px 10px; border-radius:10px; cursor:pointer;
}
.cc-item:hover{ background:#1a1a1a; }

/* ensure site header stays under the sheet */
.navbar{ position:relative; z-index:10; }















/* --- СТИЛИ КОРЗИНЫ --- */


/* Контейнер заголовка, чтобы текст и кружок стояли в ряд */
.cart-header h2 {
    display: flex;
    align-items: center;
    gap: 10px; /* Расстояние между словом Корзина и кружком */
    font-size: 20px;
    font-weight: 700;
}

/* Стили самого кружка */
.cart-count-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    
    background-color: #000; /* Цвет кружка */
    color: #fff;            /* Цвет цифры */
    
    font-size: 14px;        /* Размер шрифта цифры */
    font-weight: 600;
    
    width: 24px;            /* Ширина кружка */
    height: 24px;           /* Высота кружка */
    border-radius: 50%;     /* Делаем его идеально круглым */
    
    padding-bottom: 1px;    /* Небольшая коррекция центровки текста по вертикали */
}


/* Бейдж (красный кружок с цифрой) */
/* Контейнер иконки должен быть relative */
.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

/* Стиль самого кружка */


.cart-badge {
    position: absolute;
    top: -5px;      /* Немного подправил */
    right: -8px;    /* Чтобы не улетал слишком далеко */
    background-color: #ff0000;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;    /* Фиксированная ширина */
    height: 18px;   /* Фиксированная высота */
    display: none;  /* Скрыт по умолчанию, JS включит flex */
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    z-index: 10;
    line-height: 1; /* Чтобы цифра была строго по центру */
}

/* Добавь это для красоты кнопок внутри корзины */
.stepper-mini {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    gap: 10px;
    padding: 2px 8px;
}
.stepper-mini button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
}


/* Затемнение фона */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 1500;
    transition: opacity 0.3s ease;
}
.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Сама панель корзины */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px; /* Скрыта по умолчанию */
    width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 1600;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.1s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    font-weight: 800;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Список товаров */
.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    gap: 10px;
}

.item-details h4 {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.item-details p strong {
    font-weight: 600;
    color: #777; /* Серый цвет для подписей, как на фото */
    display: inline-block;
    width: 90px; /* Фиксированная ширина, чтобы двоеточия стояли в ряд */
}

.item-price {
    font-weight: bold;
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

/* Ряд управления количеством и удалением */
.cart-controls-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

/* Белый контейнер для кнопок +/- */
.qty-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e1e1e1;
    padding: 10px 15px;
    width: 140px; /* Делаем широким как на фото */
}

.qty-stepper button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
    color: #000;
    transition: opacity 0.2s;
}

.qty-stepper button:hover {
    opacity: 0.5;
}

.qty-stepper span {
    font-size: 16px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

/* Кнопка мусорки */
.delete-trash-btn {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.delete-trash-btn:hover {
    transform: scale(1.1);
    color: #e31e24; /* Краснеет при наведении */
}

/* Футер корзины */
.cart-footer {
    padding: 25px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    background: #A42325;
    color: #fff;
    border: none;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    margin-bottom: 15px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.payment-methods img {
    height: 30px;
    opacity: 0;
}

/* Промокод */
.promo-container {
    margin-bottom: 15px;
}

.promo-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    width: 100%;
    
}

.promo-input {
    display: none;
    gap: 5px;
    margin-top: 5px;
}

.promo-input.active {
    display: flex;
}

.promo-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
}

.empty-cart {
    text-align: center;
    padding-top: 50px;
}



/* ОБЩИЕ СТИЛИ (Ноутбук / Десктоп) */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Ровно 2 колонки */
    gap: 15px;                             /* Расстояние между контейнерами */
    width: 100%;
    max-width: 300px;                      /* Ограничиваем общую ширину сетки */
    margin-left: auto;
    margin-right: auto;
}

.pay-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9f9f9;                   /* Легкий фон контейнера (как на фото) */
    border-radius: 8px;                    /* Скругление углов */
    padding: 12px;                         /* Внутренний отступ контейнера */
    height: 40px;                          /* Высота самого контейнера */
    border: 1px solid #eee;                /* Тонкая рамка */
}

.payment-methods-grid .pay-item:nth-child(2){
    background-color: black !important;                 /* Легкий фон контейнера (как на фото) */               /* Тонкая рамка */
}

.payment-methods-grid .pay-item:nth-child(3){
    background-color: black !important;                 /* Легкий фон контейнера (как на фото) */               /* Тонкая рамка */
}

.pay-item img {
    height: 35px;                          /* РАЗМЕР ИКОНКИ (как ты просил) */
    width: auto;
    object-fit: contain;
}



/* =========================
   MOBILE (корзина на весь экран)
   ========================= */
@media (max-width: 767px){
  .cart-sidebar{
    width: 90% !important;
    max-width: 100vw;
    right: 0 !important;
    overflow-x: hidden;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .cart-sidebar.active{ transform: translateX(0); }

  .close-cart{
    position:absolute;
    right:15px;
    top:15px;
    z-index:999;
    padding:10px;
  }
}



