/* ==========================================================================
   PARTNER — ფეხსაცმელის საწარმოს ვებსაიტი
   Kaira შაბლონის სტილზე დაფუძნებული მთავარი CSS
   ========================================================================== */

/* ---------- CSS ცვლადები (Deep Heritage პალიტრა) ---------- */
:root {
  --primary-color: #210b04;       /* Deep Mahogany / Dark Leather */
  --accent-color: #B8860B;        /* Rich Gold / Dark Goldenrod - უფრო მკვეთრი */
  --accent-hover: #D4AF37;        /* Metallic Gold */
  --accent-glow: rgba(184, 134, 11, 0.25);
  --bg-light: #F5F5DC;           /* Cream / Off-White */
  --bg-white: #FFFFFF;
  --text-dark: #333333;           /* Charcoal Black */
  --text-muted: #555555;
  --border-color: #E2E2C0;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 6px 30px rgba(33, 11, 4, 0.15); /* უფრო მკვეთრი ჩრდილი */
  --shadow-lg: 0 12px 50px rgba(0,0,0,0.12);
}

/* ---------- ძირითადი სტილები ---------- */
body {
  font-family: "Jost", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light); /* ძირითადი ფონი კრემისფერი */
  overflow-x: hidden;
  line-height: 1.7; /* მეტი ჰაერი ტექსტში */
  padding-top: 85px; /* ფიქსირებული მენიუსთვის */
}

section {
  scroll-margin-top: 100px; /* რომ სათაური არ დაიმალოს მენიუს ქვეშ კლიკისას */
}

/* Bootstrap Overrides */
.bg-light {
  background-color: var(--bg-light) !important;
}

.bg-white {
  background-color: var(--bg-white) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.element-title {
  font-family: "Marcellus", serif;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
}

.accent-text {
  color: var(--accent-color) !important;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 3px;
}

/* ---------- პრელოადერი ---------- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #210b04; /* ახალი მუქი ტყავისფერი */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.preloader .spinner-border {
  color: #F5F5DC !important; /* კრემისფერი კონტრასტისთვის */
}

.preloader p {
  color: #F5F5DC !important; /* კრემისფერი ტექსტი */
}

.preloader.hide {
  opacity: 0;
  pointer-events: none;
}

/* ---------- ნავიგაცია ---------- */
.navbar {
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-family: "Marcellus", serif;
  font-size: 1.8rem;
  letter-spacing: 3px;
  color: var(--primary-color) !important;
  font-weight: 700;
}

.navbar .nav-link {
  color: var(--primary-color);
  font-weight: 400;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

.navbar .nav-link:hover {
  color: var(--accent-color);
}

/* ---------- Hero სექცია ---------- */
#hero {
  position: relative;
  background: var(--bg-light);
  overflow: hidden;
  min-height: 85vh; /* ოდნავ მეტი სიმაღლე */
  display: flex;
  align-items: center;
  padding: 100px 0; /* მეტი ჰაერი */
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  letter-spacing: 2px;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
}

/* Hero Swiper სლაიდერი */
.hero-swiper .swiper-slide {
  overflow: hidden;
}

.hero-swiper .swiper-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 4px;
}

/* ---------- ღილაკები ---------- */
.btn-accent {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  padding: 14px 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 600; /* ოდნავ გავამუქოთ */
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--accent-glow); /* ნაზი განათება */
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-dark-custom {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 14px 40px; /* მეტი ჰაერი */
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  transition: var(--transition);
}

.btn-dark-custom:hover {
  background-color: #5a1212; /* ოდნავ ღია შინდისფერი */
  color: #fff;
  transform: translateY(-3px); /* მეტი დინამიკა */
  box-shadow: var(--shadow-md);
}

.btn-outline-dark-custom {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  padding: 12px 38px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  transition: var(--transition);
}

.btn-outline-dark-custom:hover {
  background: var(--primary-color);
  color: #fff;
}

/* ---------- ფილტრის ღილაკები (მინიმალისტური) ---------- */
.filter-btn {
  background: transparent;
  color: var(--primary-color);
  border: none;
  padding: 5px 0;
  margin: 0 15px;
  font-size: 0.75rem; /* ოდნავ პატარა შრიფტი */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  opacity: 0.6;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  opacity: 1;
  color: var(--primary-color);
}

.filter-btn:hover::after, .filter-btn.active::after {
  width: 100%;
}

.filter-btn.active {
  font-weight: 700;
}

/* ---------- სექციის სათაურები ---------- */
.section-title {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  position: relative;
  display: inline-block;
  color: var(--primary-color);
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px; /* ცოტა უფრო სქელი */
  background: var(--accent-color); /* ოქროსფერი აქცენტი აქ უკეთესია */
  margin: 20px auto 0;
}

/* ---------- პროდუქციის ბარათები ---------- */
.product-card {
  background: var(--bg-white);
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.product-card .image-holder {
  overflow: hidden;
  position: relative;
}

.product-card .image-holder img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .image-holder img {
  transform: scale(1.08);
}

.product-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card:hover .overlay {
  opacity: 1;
}

.product-card .overlay .btn {
  transform: translateY(20px);
  transition: var(--transition);
}

.product-card:hover .overlay .btn {
  transform: translateY(0);
}

.product-card .product-info {
  padding: 20px;
}

.product-card .product-info h5 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.product-card .product-info .price {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.product-card .product-info .category-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* პროდუქציის placeholder (როცა ცარიელია) */
.products-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.products-empty svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  opacity: 0.3;
}

/* ---------- Swiper კარუსელი (პროდუქცია) ---------- */
.product-swiper .swiper-slide {
  height: auto;
}

.product-swiper .swiper-pagination-bullet-active {
  background: var(--accent-color);
}

/* ---------- პროდუქცია სექცია ---------- */
#products {
  padding: 120px 0; /* მეტი ჰაერი */
}

/* ---------- თვისებები სექცია ---------- */
.features-section {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 40px 0; /* მეტი ჰაერი */
}

.feature-item {
  text-align: center;
  padding: 60px 30px; /* მეტი ჰაერი */
  transition: var(--transition);
}

.feature-item:hover {
  background: #fbfbf0; /* კრემისფერის ოდნავ ღია ვარიანტი */
}

.feature-item svg {
  width: 48px;
  height: 48px;
  color: var(--primary-color); /* შინდისფერი აქცენტი */
  margin-bottom: 25px;
}

.feature-item h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---------- ჩვენს შესახებ ---------- */
#about {
  position: relative;
  padding: 120px 0; /* მეტი ჰაერი */
}

.about-content h3 {
  font-size: 2.4rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary-color);
}

.about-content p {
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 1.05rem;
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
}

.stat-item .stat-number {
  font-family: "Marcellus", serif;
  font-size: 3.5rem;
  color: var(--primary-color); /* შინდისფერი */
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 1rem; /* გაიზარდა 0.9-დან */
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-color); /* ოქროსფერი */
  margin-top: 15px;
  font-weight: 700; /* Bold */
}

/* ---------- კონტაქტი ---------- */
#contact {
  position: relative;
  padding: 120px 0; /* მეტი ჰაერი */
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 35px;
}

.contact-info-item svg {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 5px;
}

.contact-form .form-control {
  border: none;
  border-bottom: 2px solid var(--border-color);
  border-radius: 0;
  padding: 15px 5px;
  font-size: 1rem;
  transition: var(--transition);
  background: transparent;
}

.contact-form .form-control:focus {
  box-shadow: none;
  border-bottom-color: var(--primary-color);
}

.contact-form textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ---------- ფუტერი ---------- */
#footer {
  background: #111; /* დაბრუნდა შავზე */
  color: #fff;
}

#footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

#footer a:hover {
  color: var(--accent-color);
}

#footer .footer-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  color: #fff;
}

#footer .footer-links {
  list-style: none;
  padding: 0;
}

#footer .footer-links li {
  margin-bottom: 10px;
}

#footer .footer-links a {
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

#footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin-right: 8px;
  transition: var(--transition);
}

#footer .social-links a:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

#footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- მოდალური ფანჯარა ---------- */
.product-modal .modal-content {
  border: none;
  border-radius: 0;
}

.product-modal .modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 30px;
}

.product-modal .modal-title {
  font-family: "Marcellus", serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.product-modal .modal-body {
  padding: 30px;
}

.product-modal .modal-body img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 25px;
}

.product-modal .modal-body .price {
  font-size: 1.5rem;
  color: var(--accent-color);
  font-weight: 600;
}

.product-modal .modal-body .category-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.product-modal .modal-body .description {
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 20px;
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--accent-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

/* ---------- AOS ანიმაციები (დამატებითი) ---------- */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="zoom-in"] {
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-aos="zoom-in"].aos-animate {
  opacity: 1;
  transform: scale(1);
}

[data-aos="fade-in"] {
  opacity: 0;
  transition: opacity 0.6s ease;
}

[data-aos="fade-in"].aos-animate {
  opacity: 1;
}

/* ---------- Image Zoom ეფექტი ---------- */
.image-zoom-effect .image-holder {
  overflow: hidden;
}

.image-zoom-effect .image-holder img {
  transition: transform 0.6s ease;
}

.image-zoom-effect:hover .image-holder img {
  transform: scale(1.08);
}

/* ---------- Placeholder სურათი ---------- */
.placeholder-img {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 3rem;
}

/* ---------- რესპონსიულობა ---------- */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-swiper .swiper-slide img {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
    text-align: center;
  }

  .hero-content p {
    text-align: center;
    margin: 0 auto;
  }

  .hero-content .btn {
    display: block;
    text-align: center;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .product-card .image-holder img {
    height: 280px;
  }

  .product-modal .modal-body img {
    height: 250px;
  }

  .stat-item .stat-number {
    font-size: 2.2rem;
  }

  #hero {
    min-height: 60vh;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.4rem;
  }

  .hero-content h1 {
    font-size: 1.7rem;
  }

  .product-card .image-holder img {
    height: 220px;
  }

  .stat-item .stat-number {
    font-size: 1.8rem;
  }
}

/* ---------- სმუთ სქროლ ---------- */
html {
  scroll-behavior: smooth;
}

/* ---------- ტექსტის სელექცია ---------- */
::selection {
  background: var(--accent-color);
  color: #fff;
}
