/* ========================================================= */
/* BECHDE.GE - STYLE.CSS (სტატიკური ფოტოს ვერსია)       */
/* ========================================================= */

/* ======= 1. გლობალური და ფონტის იმპორტი ======= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lato:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #1a1a1a;
  color: #EAEAEA;
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #D4AF37;
}

section {
  padding: 40px 10px;
  text-align: center;
}

/* ======= 2. მბზინავი ტექსტის კლასები ======= */
.gold-text {
  color: #D4AF37;
  background: linear-gradient(145deg, #F0D570, #B28F23, #F0D570);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-family: 'Playfair Display', serif;
}

.silver-text {
  color: #EAEAEA;
  background: linear-gradient(145deg, #FFFFFF, #B0B0B0, #FFFFFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* ======= 3. ჰედერი და ნავიგაცია ======= */
.top-header {
  background-color: #1f1f1f;
  border-bottom: 1px solid #D4AF37;
  height: 130px;
  display: flex;
  align-items: center;
  padding: 0;
}

.header-layout {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section a {
  display: inline-block;
}

.logo-img {
  height: 100px;
  border-radius: 12px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  font-size: 18px;
  font-weight: 600;
  color: #EAEAEA;
  text-decoration: none;
  transition: all 0.3s ease;
}

.main-nav a:hover {
  background: linear-gradient(145deg, #F0D570, #B28F23);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.cart-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  color: white;
  font-weight: bold;
}

.cart-img {
  height: 28px;
}

.cart-badge {
  position: absolute;
  top: -6px;
  left: 16px;
  background: #D4AF37;
  color: #1a1a1a;
  font-size: 12px;
  border-radius: 50%;
  padding: 2px 6px;
  line-height: 1;
}

.cart-price {
  margin-left: 4px;
  font-size: 14px;
}

/* ======= 4. მთავარი გვერდის HERO სექცია (ფოტოს ვერსია) ======= */
.hero-section {
    display: flex;
    width: 100%;
    height: calc(100vh - 130px);
    background-color: #1a1a1a;
}
.hero-media { /* კლასის ახალი, უნივერსალური სახელი */
    width: 60%;
    height: 100%;
}
.hero-media img { /* სტილი ვრცელდება სურათზე */
    width: 100%;
    height: 100%;
    object-fit: cover; /* ფოტო ავსებს ადგილს და ინარჩუნებს პროპორციებს */
}
.hero-content {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
}
.hero-content h1, .hero-content p {
    text-align: center;
}
.hero-content .hero-button {
    align-self: center;
}
.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 16px;
    line-height: 1.7;
    max-width: 400px;
    color: #c0c0c0;
    margin-bottom: 30px;
}
.hero-button {
    padding: 12px 35px;
    border: 2px solid #D4AF37;
    background-color: transparent;
    color: #D4AF37;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}
.hero-button:hover {
    background-color: #D4AF37;
    color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

/* ======= 5. ღილაკები და ბარათები ======= */
.button {
    background: linear-gradient(145deg, #D4AF37, #B28F23);
    color: #1a1a1a;
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-block;
    transition: 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}
.button:hover {
    background: linear-gradient(145deg, #EAD080, #C29F33);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.products-slider-section {
    padding-top: 80px;
}
.product-card {
    background: #222222;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.2s ease;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: #D4AF37;
}
.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}
.product-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    min-height: 44px;
    color: #EAEAEA;
}
.product-card .price {
    color: #D4AF37;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 12px;
    background: linear-gradient(145deg, #F0D570, #B28F23);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
.shop-page .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

/* ======= 6. პროდუქტის დეტალური გვერდი ======= */
.product-details h2 {
    text-align: center;
    margin-bottom: 30px;
}
.product-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: flex-start;
}
.slider {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 10px;
    background-color: #2a2a2a;
}
.slides img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}
.slides img:first-child { display: block; }
.slider .prev, .slider .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    z-index: 10;
}
.slider .prev { left: 10px; }
.slider .next { right: 10px; }
.product-description {
    max-width: 400px;
    text-align: left;
}
.product-description p {
    text-align: left;
    font-size: 16px;
    margin-bottom: 20px;
}
.product-description label { font-weight: bold; }
.product-description select, .product-description input[type="number"] {
    padding: 8px;
    width: 100%;
    max-width: 200px;
    margin-top: 5px;
    margin-bottom: 15px;
    background-color: #333;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
}

/* ======= 7. კალათა და შეკვეთა (ცხრილები) ======= */
.checkout-table, .cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 16px;
}
.checkout-table th, .checkout-table td, .cart-table th, .cart-table td {
    border: 1px solid #444;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}
.checkout-table thead tr, .cart-table thead tr {
    background-color: #2a2a2a;
    font-weight: bold;
    border-bottom: 1px solid #D4AF37;
}
.checkout-table tfoot, .cart-table tfoot {
    font-weight: bold;
}
.field-helper-text {
    display: block;
    text-align: left;
    font-size: 13px;
    color: #aaa;
    margin-top: -5px;
    margin-bottom: 10px;
}

/* ======= 8. სხვა გვერდები (Policy, About) ======= */
.page-header {
    padding: 40px 0;
    border-bottom: 1px solid #444;
    margin-bottom: 50px;
    text-align: center;
}
.page-header h2 {
    font-size: 42px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.policy-container {
    background-color: #222;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 25px 40px;
    max-width: 800px;
    margin: 0 auto;
}
.notice-block {
    background-color: #1f2c3a;
    border-left: 5px solid #D4AF37;
}
.notice-block h4 { color: #D4AF37; }

/* ======= 9. ფუტერი ======= */
#mainFooter {
    text-align: center !important;
    padding: 40px 20px;
    border-top: 1px solid #D4AF37;
    margin-top: 50px;
    background-color: #111;
    color: #aaa;
}
#footerNav a {
    display: inline-block !important;
    margin: 0 15px !important;
    text-decoration: none;
    color: #EAEAEA;
    font-weight: 600;
    transition: color 0.2s ease;
}
#footerNav a:hover { color: #D4AF37; }
.footer-copyright p {
    font-size: 14px;
    color: #777;
    margin: 0;
    text-align: center !important;
}

/* ======= 10. მობილური ადაპტაცია (Responsive) ======= */
.hamburger-menu {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2001;
}
.hamburger-menu span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #EAEAEA;
  border-radius: 3px;
  left: 0;
  transition: all 0.25s ease-in-out;
}
.hamburger-menu span:nth-child(1) { top: 0px; }
.hamburger-menu span:nth-child(2) { top: 9px; }
.hamburger-menu span:nth-child(3) { top: 18px; }

.nav-open .hamburger-menu span:nth-child(1) { top: 9px; transform: rotate(135deg); }
.nav-open .hamburger-menu span:nth-child(2) { opacity: 0; left: -30px; }
.nav-open .hamburger-menu span:nth-child(3) { top: 9px; transform: rotate(-135deg); }

@media (max-width: 768px) {
    .tfoot-desktop { display: none; }
    .tfoot-mobile { display: table-footer-group; }
    
    .hero-section {
        flex-direction: column;
        height: auto;
    }
    .hero-media {
        width: 100%;
        height: 60vh;
    }
    .hero-content {
        width: 100%;
        padding: 50px 20px;
        text-align: center;
        align-items: center;
    }
    .hero-content h1 { font-size: 36px; }
    .hero-content p, .hero-content h1 { text-align: center; }
    .hero-content .hero-button { align-self: center; }

    .header-layout {
        position: relative;
        justify-content: space-between;
        padding: 0 20px;
    }
    .logo-img { height: 60px; }
    .top-header { height: 80px; }
    .hamburger-menu {
        display: block;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100%;
        background: #1f1f1f;
        padding-top: 100px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 2000;
        border-left: 1px solid #D4AF37;
    }
    .nav-open .main-nav { transform: translateX(0); }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }
    .main-nav a { font-size: 20px; }
    .cart-preview { order: -1; }
    
    .shop-page .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-wrapper { flex-direction: column; align-items: center; }
    .product-description { text-align: center; }
    
    .cart-table, .checkout-table { border: none; }
    .cart-table thead, .checkout-table thead { display: none; }
    .cart-table tr, .checkout-table tr {
        display: block;
        border: 1px solid #444;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 10px;
        background: #2a2a2a;
    }
    .cart-table td, .checkout-table td {
        display: block;
        text-align: right;
        border: none;
        border-bottom: 1px dotted #555;
        padding: 8px 5px 8px 140px;
        position: relative;
        min-height: 24px;
    }
    .cart-table td:last-child, .checkout-table td:last-child { border-bottom: none; }
    .cart-table td::before, .checkout-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 5px;
        font-weight: bold;
        text-align: left;
        color: #D4AF37;
    }
    .cart-table tfoot td, .checkout-table tfoot td {
        font-size: 18px;
        border: none;
        padding-top: 10px;
        padding-bottom: 10px;
        display: block;
    }
    #footerNav a {
        display: block !important;
        margin: 12px 0 !important;
    }
}

@media (max-width: 480px) {
    .shop-page .product-grid { grid-template-columns: 1fr; }
}

/* ======= 11. Swiper Slider Styles (პროდუქტებისთვის) ======= */
.swiper {
    width: 100%;
    height: 100%;
    padding: 0;
    position: relative;
}
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: auto;
}
.products-slider-section .swiper {
    padding: 10px 40px;
    height: auto;
}
.swiper-button-next, .swiper-button-prev {
    color: #D4AF37;
    width: 27px;
    height: 44px;
    transition: opacity 0.2s ease;
}
.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 28px !important;
    font-weight: bold;
}

/* ======= 12. დამატების Popup ======= */
.cart-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.cart-popup-content {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #D4AF37;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.cart-popup h3 {
  margin-bottom: 15px;
}
.cart-popup .items {
  margin-bottom: 15px;
}
.cart-popup .items .item {
  margin-bottom: 10px;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}
.cart-popup .items .item:last-child {
    border-bottom: none;
}
.cart-popup .footer {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}