/* ===================================
   Modern Theme CSS - Apple Herbal Corner
   ================================== === */

/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===================================
   Root Variables
   =================================== */
:root {
  --primary-color: #042504;
  --secondary-color: #105810;
  --accent-color: #4CAF50;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --border-color: #e0e0e0;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

/* ===================================
   Base Styles
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

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

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

/* ===================================
   Hero Slider Section
   =================================== */
.hero-slider-section {
  margin-bottom: 50px;
}

.hero-slide {
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  padding: 100px 0;
}

.hero-text {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.btn-hero {
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50px;
  transition: var(--transition);
  display: inline-block;
}

.btn-hero:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(4, 37, 4, 0.8);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  padding: 10px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

/* ===================================
   Section Styles
   =================================== */
.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: 15px;
}

/* ===================================
   Category Cards
   =================================== */
.category-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-card-image {
  position: relative;
  overflow: hidden;
  padding-top: 100%;
}

.category-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.category-card:hover .category-card-image img {
  transform: scale(1.1);
}

.category-card-title {
  padding: 20px;
  text-align: center;
}

.category-card-title h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-dark);
}

/* ===================================
   Mega Menu
   =================================== */
.mega-menu {
  background-color: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mega-menu-wrapper {
  position: relative;
}

.mega-menu-toggle {
  background-color: transparent;
  border: none;
  color: var(--white);
  font-size: 18px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mega-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.mega-menu-item {
  position: relative;
}

.mega-menu-link {
  display: block;
  padding: 18px 20px;
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}

.mega-menu-link:hover,
.mega-menu-item:hover > .mega-menu-link {
  background-color: var(--secondary-color);
  color: var(--white);
}

.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  background-color: var(--white);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.mega-menu-item:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
}

.mega-dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-dropdown-link {
  display: block;
  padding: 8px 15px;
  color: var(--text-dark);
  font-size: 14px;
  transition: var(--transition);
}

.mega-dropdown-link:hover {
  color: var(--primary-color);
  padding-left: 20px;
}

.mega-dropdown-view-all {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 5px;
  font-weight: 500;
  transition: var(--transition);
}

.mega-dropdown-view-all:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

/* ===================================
   Product Card
   =================================== */
.product-thumb {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-thumb:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-thumb .image {
  position: relative;
  overflow: hidden;
  background-color: #f8f8f8;
  flex-shrink: 0;
}

.product-thumb .image img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

.product-thumb:hover .image img {
  transform: scale(1.1);
}

.product-thumb .content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-thumb h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0px 15px;
  min-height: 45px;
}

.product-thumb h4 a {
  color: var(--text-dark);
}

.product-thumb h4 a:hover {
  color: var(--primary-color);
}

.product-thumb .description {
  padding: 0 15px;
  flex-grow: 1;
}

.product-thumb .product-description {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 1px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-thumb form {
  margin-top: auto;
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 3px 15px;
}

.price-old {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 1rem;
  margin-right: 10px;
}

.product-thumb .button-group {
  border-top: 1px solid var(--border-color);
  display: flex;
}

.product-thumb .button-group button {
  flex: 1;
  padding: 12px;
  border: none;
  background-color: transparent;
  color: var(--text-dark);
  transition: var(--transition);
  font-size: 14px;
}

.product-thumb .button-group button:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ===================================
   Promotional Banners
   =================================== */
.promo-banner {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.promo-banner:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.promo-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.promo-banner:hover img {
  transform: scale(1.05);
}

/* ===================================
   Newsletter Section
   =================================== */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.newsletter-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.newsletter-form .input-group {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border-radius: 50px;
  overflow: hidden;
}

.newsletter-form .form-control {
  border: none;
  padding: 15px 25px;
}

.newsletter-form .btn {
  padding: 15px 35px;
  font-weight: 600;
  border-radius: 0;
}

/* ===================================
   Footer
   =================================== */
.modern-footer {
  background-color: var(--text-dark);
  color: #ecf0f1;
}

.footer-main {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-text {
  font-size: 14px;
  line-height: 1.8;
  color: #bdc3c7;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.footer-social-link:hover {
  background-color: var(--accent-color);
  color: var(--white);
  transform: translateY(-3px);
}

/* Instagram Icon - Colorful and Bigger */
.footer-social-link.instagram-link {
  width: auto;
  height: 60px;
  padding: 0 25px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  font-size: 28px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-social-link.instagram-link .instagram-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
}

.footer-social-link.instagram-link:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(188, 24, 136, 0.4);
}

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

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

.footer-links a {
  color: #bdc3c7;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  color: #bdc3c7;
  font-size: 14px;
}

.footer-contact i {
  color: var(--accent-color);
  margin-top: 3px;
}

.footer-contact a {
  color: #bdc3c7;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
  color: #bdc3c7;
  margin: 0;
  font-size: 14px;
}

.footer-payment {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.payment-icon {
  height: 30px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.payment-icon:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ===================================
   Responsive Design
   =================================== */

/* Mobile Devices */
@media (max-width: 767.98px) {
  /* Hide menu on mobile */
  .mega-menu,
  #menu-modern {
    display: none !important;
  }

  /* Limit product description to half length on mobile */
  .product-thumb .product-description {
    -webkit-line-clamp: 2;
    font-size: 13px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

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

  .mega-menu-list {
    flex-direction: column;
  }

  .mega-dropdown {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 15px 20px;
    display: none;
  }

  .mega-menu-item:hover .mega-dropdown {
    display: block;
  }

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

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-payment {
    justify-content: center;
    margin-top: 15px;
  }
}

/* Tablet Devices */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

/* Large Devices */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* Extra Large Devices */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ===================================
   Utility Classes
   =================================== */
.bg-light {
  background-color: var(--bg-light) !important;
}

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

.text-primary {
  color: var(--primary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

/* ===================================
   Remove Borders from Header Icons
   =================================== */
.btn-language,
.btn-account,
.btn-menu,
.lang-btn,
header .btn,
header .btn-lg,
header .language-switcher .btn,
header .language-switcher a,
header .dropdown .btn,
header .dropdown button,
header .dropdown-toggle,
header button {
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.btn-language:hover,
.btn-account:hover,
.btn-menu:hover,
.lang-btn:hover,
.btn-language:focus,
.btn-account:focus,
.btn-menu:focus,
.lang-btn:focus,
.btn-language:active,
.btn-account:active,
.btn-menu:active,
.lang-btn:active,
header .btn:hover,
header .btn-lg:hover,
header .btn:focus,
header .btn-lg:focus,
header .btn:active,
header .btn-lg:active,
header .language-switcher .btn:hover,
header .language-switcher a:hover,
header .dropdown .btn:hover,
header .dropdown button:hover,
header .dropdown-toggle:hover,
header button:hover,
header .language-switcher .btn:focus,
header .language-switcher a:focus,
header .dropdown .btn:focus,
header .dropdown button:focus,
header .dropdown-toggle:focus,
header button:focus {
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
