:root {
    --black: #131118;
    --gray: #f3f4f6;
    --dark-gray: #666;
    --white: #ffffff;
    --primary-color: #d4a373;
    --bg-color: #ffffff;
    --text-color: #131118;
    --card-bg: #ffffff;
}


[data-theme="dark"] {
    --bg-color: #0f0e13;
    --text-color: #ffffff;
    --card-bg: #1a1921;
    --gray: #242129;
    --white: #0f0e13;
    --dark-gray: #cccccc;
    --black: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.product-card-krist {
  
  background: #fff;
  border-radius: 16px;
  
  

}
.product__block{
    margin-top: 100px;
    margin-bottom: 100px;
}
.product-info-krist{
    padding: 20px;
}

.product-card-krist:hover {
 
  transform: translateY(-10px) !important;

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35) !important;
}

body{
    
  background:
    radial-gradient(circle at top left, #f3d9b1, transparent 40%),
    radial-gradient(circle at bottom right, #d4a373, transparent 45%),
    var(--bg-color);
}

.container{
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.hero__block{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Modal stillari modal.css ga o'tkazildi */
.modal { display: none; }

/* Header */
.main-header {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: var(--bg-color);
    z-index: 1000;
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, #3a3550, transparent 40%),
    radial-gradient(circle at bottom right, #1f1c2b, transparent 45%),
    var(--bg-color);
}


.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    margin: 0 15px;
    font-weight: 500;
    font-size: 14px;
}

/* Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 8px;
}
.dropdown-content a { color: var(--text-color); padding: 12px 16px; display: block; margin: 0; }
.dropdown:hover .dropdown-content { display: block; }

.header-actions { display: flex; gap: 15px; align-items: center; }
.search-box {
    display: flex;
    align-items: center;
    background: var(--gray);
    padding: 5px 12px;
    border-radius: 20px;
}
.search-box input { border: none; background: transparent; color: var(--text-color); outline: none; width: 80px; transition: 0.3s; }
.search-box input:focus { width: 150px; }

/* Mahsulotlar hajmini kichraytirish */
.img-container {
    background: var(--gray);
    height: 250px; /* Ixcham o'lcham */
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.img-container img { width: 100%; height: 100%; object-fit: contain; transition: 0.5s; }
.product-card-krist:hover img { transform: scale(1.05); }

.product-grid-krist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.product-info-krist { padding-top: 12px; }
.product-info-krist h4 { font-size: 15px; color: var(--text-color); }
.product-info-krist p { font-weight: 700; color: var(--text-color); margin-top: 5px; }

/* Overlay */
.add-to-cart-overlay {
    position: absolute;
    bottom: -50px;
    width: 100%;
    background: var(--black);
    color: var(--bg-color);
    text-align: center;
    padding: 12px 0;
    transition: 0.3s;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}
.product-card-krist:hover .add-to-cart-overlay { bottom: 0; }

/* Categories */
.categories-section { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.category-item { position: relative; height: 280px; border-radius: 15px; overflow: hidden; cursor: pointer; }
.category-item img { width: 100%; height: 100%; object-fit: cover; }
.category-tag { position: absolute; bottom: 15px; left: 15px; background: var(--card-bg); color: var(--text-color); padding: 8px 15px; border-radius: 5px; font-weight: 600; font-size: 13px; }

/* Footer - Oq fonda qora yozuvli */
.footer-krist {
    background: var(--gray);
    color: var(--text-color);
    padding: 60px 0 20px;
    border-top: 1px solid #eee;
}
.footer-main { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 2fr; gap: 40px; padding: 0 20px; }
.footer-links h4 { margin-bottom: 20px; color: var(--text-color); }
.footer-links a {
    display: block;
    color: var(--text-color) !important; /* Qora/Oq rang */
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.8;
    transition: 0.3s;
}
.footer-links a:hover { opacity: 1; color: var(--primary-color) !important; padding-left: 5px; }

.footer-bottom-krist {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.7;
}

/* Mobile */
@media (max-width: 992px) {
    .nav-menu { position: fixed; left: -100%; top: 70px; flex-direction: column; background: var(--card-bg); width: 100%; padding: 20px; transition: 0.3s; }
    .nav-menu.active { left: 0; }
    
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid-krist { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .categories-grid { grid-template-columns: 1fr; }
    .product-grid-krist { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; }
}

/* Floating Support */
.floating-support { position: fixed; bottom: 25px; right: 25px; background: #0088cc; color: white; width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 25px; box-shadow: 0 8px 20px rgba(0,136,204,0.3); z-index: 1000; text-decoration: none; transition: 0.3s; }
.floating-support:hover { transform: scale(1.1); }
.lang-select{
    padding: 10px;
    text-align: center;
    border-radius: 10px;

    
}
.hero-sub{
    font-size: 50px;
    margin-bottom: 10px;
}
.hero-off{
    margin-bottom: 10px;
    margin-top: 10px;
}
.footer-krist{
    background-color: #da611b;
    
}
@media (max-width: 768px) {

  /* Header */
  .header-container {
    padding: 0 20px;
  }

  .logo {
    font-size: 20px;
    
  }

  .nav-menu a {
    font-size: 16px;
    margin: 12px 0;
  }

  /* Hero */
  .hero__block {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .hero-sub {
    font-size: 32px;
  }

  .hero-off {
    font-size: 14px;
  }

  /* Products */
  .product__block {
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .product-grid-krist {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .img-container {
    height: 200px;
  }

  .product-info-krist h4 {
    font-size: 14px;
  }

  .product-info-krist p {
    font-size: 14px;
  }

  /* Add to cart hover o‘rniga doim ko‘rinsin */
  .add-to-cart-overlay {
    bottom: 0;
    font-size: 12px;
    padding: 10px 0;
  }

  /* Categories */
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-item {
    height: 220px;
  }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }

  .footer-links a {
    font-size: 15px;
  }

  .footer-bottom-krist {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* Floating support */
  .floating-support {
    width: 48px;
    height: 48px;
    font-size: 22px;
    bottom: 20px;
    right: 20px;
  }
  .main-header {
    padding: 8px 0;
  }

  .header-container{
    margin-left: -35px;
  }

  .logo {
    font-size: 18px;
    font-weight: 600;
  }

  /* Nav menu (mobil) */
  .nav-menu {
    top: 58px;
    padding: 15px;
  }

  .nav-menu a {
    font-size: 15px;
    margin: 10px 0;
  }

  /* Search */
  .search-box {
    padding: 4px 10px;
  }

  .search-box input {
    width: 70px;
    font-size: 13px;
  }

  .search-box input:focus {
    width: 100px;
  }

  /* Header actions */
  .header-actions {
    gap: 10px;
  }

  /* Hamburger icon */
  .hamburger {
    font-size: 22px;
  }
  #pagination {
  display: flex;        /* SHART */
  max-width: 768px;     /* width emas */
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
}


/* =====================
   VERY SMALL PHONES (max-width: 480px)
===================== */
@media (max-width: 480px) {

  .product-grid-krist {

  
    grid-template-columns: 1fr;
  
  }
  .hero-sub {
    font-size: 26px;
  }

  .search-box input {
    width: 120px;
  }
}
/* =====================
   GLASSMORPHISM UPGRADE
   (SAFE – does not break existing CSS)
===================== */

/* Glass cards */
.product-card-krist,
.dropdown-content,
.category-tag,
.search-box {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Dark mode glass */
[data-theme="dark"] .product-card-krist,
[data-theme="dark"] .dropdown-content,
[data-theme="dark"] .category-tag,
[data-theme="dark"] .search-box {
  background: rgba(26, 25, 33, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Premium floating effect */
.product-card-krist {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .product-card-krist {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Modern minimal buttons & overlays */
.add-to-cart-overlay {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    #c08a55
  );
  color: #fff;
}

/* Header glass */
.main-header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .main-header {
  background: rgba(15, 14, 19, 0.75);
}

/* Smooth UI feel */
* {
  transition: background-color 0.3s ease,
              color 0.3s ease,
              border 0.3s ease;
}
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--card-bg);
        width: 100%;
        padding: 20px;
        transition: 0.3s;
    }
    .nav-menu.active { left: 0; }
}

