/* ==========================================================================
   Krist E-Commerce Theme Stylesheet
   ========================================================================== */

/* 1. Global Reset & Variables */
:root {
  --primary: #111111;
  --accent: #da3f3f;
  /* Coral red matching the blazer */
  --bg-main: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-card: #f5f6f7;
  --bg-dark: #111419;
  --text-color: #111111;
  --text-muted: #666666;
  --border-color: #e5e5e5;
  --font-headings: 'Jost', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --max-width: 1650px;
  --header-height: 80px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  outline: none;
}

/* Common Section Styles */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-headings);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}

.section-header .section-title {
  margin-bottom: 0;
}

.text-center {
  text-align: center;
}

.w-full {
  width: 100%;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-dark {
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
}

.btn-dark:hover {
  background-color: transparent;
  color: var(--primary);
}

.btn-dark i {
  transition: transform 0.3s ease;
}

.btn-dark:hover i {
  transform: translateX(4px);
}

/* 2. Header Styles */
.header {
  height: var(--header-height);
  background-color: #ffffff;
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.header.sticky {
  box-shadow: var(--shadow-sm);
  height: 70px;
}

.header-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  /* Anchor the absolute megamenu */
}

.logo {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.logo-k {
  color: var(--primary);
  font-weight: 800;
}

.logo.light .logo-k {
  color: #ffffff;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

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

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

.has-megamenu > .nav-link:hover::after,
.has-megamenu > .nav-link.active::after {
  width: calc(100% - 20px); /* Subtract space + margin + chevron width */
}

/* Shop Chevron Icon styling */
.nav-chevron {
  width: 14px;
  height: 14px;
  margin-left: 2px;
  vertical-align: middle;
  transition: transform 0.25s ease;
}

.has-megamenu:hover .nav-chevron {
  transform: rotate(180deg);
}

/* Mega Menu Container */
.megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 950px;
  background-color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-top: 1px solid var(--border-color);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

/* Hover gap bridge to prevent dropdown from disappearing */
.megamenu::before {
  content: '';
  position: absolute;
  top: -45px;
  left: 0;
  width: 100%;
  height: 45px;
  background-color: transparent;
}

/* Show State */
.has-megamenu:hover .megamenu,
.megamenu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Megamenu Columns & Separators */
.megamenu-column {
  padding: 0 30px;
}

.megamenu-column:not(:last-child) {
  border-right: 1px solid #f0f0f0;
}

/* Heading Styling */
.megamenu-heading {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 700;
  color: #111111;
  text-transform: uppercase;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.megamenu-heading.subheading {
  margin-top: 24px;
}

/* List & Links Styling */
.megamenu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.megamenu-link {
  font-size: 0.9rem;
  font-weight: 400;
  color: #555555;
  transition: var(--transition);
  display: inline-block;
  padding: 2px 0;
}

.megamenu-link:hover {
  color: #111111;
  text-decoration: underline;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.action-btn {
  color: var(--primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.action-btn:hover {
  color: var(--accent);
}

.action-btn .badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-btn {
  background-color: var(--primary);
  color: #ffffff;
  padding: 8px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--primary);
  transition: var(--transition);
}

.login-btn:hover {
  background-color: transparent;
  color: var(--primary);
}

/* Profile Dropdown */
.profile-container {
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  border: none;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background-color: #ffffff;
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.3s ease;
  z-index: 1000;
}

.profile-dropdown.active,
.profile-container:hover .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

.profile-dropdown li {
  padding: 0;
}

.profile-dropdown a,
.profile-dropdown .logout-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 20px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.profile-dropdown a:hover,
.profile-dropdown .logout-btn:hover {
  background-color: #f3f4f6;
}

.profile-dropdown .logout-btn {
  color: #ef4444;
  font-weight: 500;
  border-top: 1px solid #e5e7eb;
}

.menu-toggle {
  display: none;
  color: var(--primary);
}

/* Slider Arrow Buttons */
.slider-arrows {
  display: flex;
  gap: 12px;
}

.arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-color: var(--bg-card);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: var(--transition);
}

.arrow-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: #ffffff;
  z-index: 1001;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  box-shadow: var(--shadow-md);
  transition: right 0.4s ease;
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-header .close-btn {
  color: var(--primary);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--primary);
  padding-left: 8px;
}

/* Mobile Chevron */
.mobile-chevron {
  width: 14px;
  height: 14px;
  margin-left: 4px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.mobile-has-megamenu.active .mobile-chevron {
  transform: rotate(180deg);
}

/* Mobile Accordion Panel */
.mobile-megamenu-accordion {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, padding 0.35s ease;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-megamenu-accordion.open {
  max-height: 1500px;
  opacity: 1;
  padding: 15px 10px 5px 10px;
}

.mobile-accordion-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-accordion-heading {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 700;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.mobile-accordion-subheading {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-top: 10px;
  margin-bottom: 2px;
}

.mobile-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 12px;
  border-left: 1px solid #eaeaea;
}

.mobile-accordion-link {
  font-size: 0.85rem;
  font-weight: 400;
  color: #666666;
  transition: var(--transition);
}

.mobile-accordion-link:hover {
  color: var(--primary);
  padding-left: 4px;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* 3. Hero Section Styles */
.hero {
  background-color: #f3f4f6;
  position: relative;
  overflow: hidden;
  height: calc(100vh - var(--header-height) - 20px);
  min-height: 700px;
  display: flex;
  align-items: center;
  padding-bottom: 40px;
  margin: 20px 40px 0;
  border-radius: 16px;
}

.hero-bg-text {
  position: absolute;
  bottom: -40px;
  left: 12%;
  font-family: var(--font-headings);
  font-size: 17rem;
  font-weight: 900;
  color: rgba(17, 20, 25, 0.03);
  letter-spacing: 5px;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 100px;
  margin-top: -30px;
}

.hero-subtitle {
  font-family: var(--font-headings);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-headings);
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 16px;
  white-space: nowrap;
}

.hero-discount {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.hero-image-wrapper {
  position: relative;
  display: inline-flex;
  margin-top: 30px;
}

.hero-image {
  width: 100%;
  max-width: 570px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
}

.hero-image-bg {
  position: relative;
  z-index: 1;
}

.hero-image-fg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  clip-path: inset(0 0 73% 0);
  pointer-events: none;
}

.hero-frame {
  position: absolute;
  top: 13.58%;
  left: -3.7%;
  width: 85.18%;
  height: 69.13%;
  border: 10px solid #ffffff;
  z-index: 2;
  pointer-events: none;
}

/* 4. Shop by Categories Styles */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  transition: transform 0.5s ease;
}

.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  background-color: var(--bg-card);
  cursor: pointer;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.category-bg-label {
  position: absolute;
  top: 10%;
  left: 5%;
  width: 90%;
  text-align: center;
  font-family: var(--font-headings);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 2px;
  pointer-events: none;
  z-index: 1;
}

.category-btn-wrapper {
  position: absolute;
  bottom: 24px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.category-btn {
  background-color: #ffffff;
  color: var(--primary);
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.category-card:hover .category-btn {
  background-color: var(--primary);
  color: #ffffff;
}

/* 5. Our Bestseller Styles */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 24px;
}

/* Adjustments for Bestsellers specifically */
.bestsellers .section-title {
  font-size: 2.5rem;
}

.bestsellers .section-container {
  max-width: calc(var(--max-width) * 0.92);
}

.product-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  transition: var(--transition);
}

.product-img-container {
  position: relative;
  aspect-ratio: 3 / 4;
  background-color: var(--bg-card);
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 16px;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

/* Hover states for Bestseller Cards */
.product-card:hover .hover-actions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.product-card:hover .add-to-cart-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.hover-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 3;
}

.hover-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.hover-action-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.hover-action-btn i {
  width: 16px;
  height: 16px;
}

.add-to-cart-overlay {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 85%;
  background-color: #ffffff;
  color: var(--primary);
  border: none;
  padding: 10px 0;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 3;
}

.add-to-cart-overlay:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-brand {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-prices {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.sale-price {
  color: var(--accent);
}

.original-price {
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
}

/* 6. Deals of the Month Styles */
.deals {
  background-color: #f3f4f6;
  overflow: hidden;
}

.deals-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.deals-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 40px;
}

.deals-title {
  font-family: var(--font-headings);
  font-size: 3.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary);
}

.deals-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 650px;
}

.countdown {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.countdown-item {
  width: 84px;
  height: 84px;
  background-color: #ffffff;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.countdown-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.countdown-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.btn-deals {
  border-radius: 4px;
  padding: 14px 36px;
  font-size: 1.05rem;
}

.deals-image-container {
  display: flex;
  justify-content: flex-end;
}

.deals-image {
  width: 100%;
  max-width: 650px;
  height: 600px;
  object-fit: cover;
  border-radius: 4px;
}

/* 7. Testimonials Styles */
.testimonials {
  background-color: #ffffff;
}

.testimonials-slider-container {
  overflow: hidden;
}

.testimonials-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  transition: transform 0.5s ease;
}

.testimonial-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.stars {
  display: flex;
  gap: 4px;
}

.star-filled {
  fill: #ffb800;
  color: #ffb800;
  width: 16px;
  height: 16px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.author-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 8. Instagram Stories Styles */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.instagram-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.instagram-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.instagram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  color: #ffffff;
}

.instagram-overlay i {
  width: 32px;
  height: 32px;
}

.instagram-card:hover .instagram-img {
  transform: scale(1.06);
}

.instagram-card:hover .instagram-overlay,
.instagram-card.active-overlay .instagram-overlay {
  opacity: 1;
  visibility: visible;
}

/* 9. Features Strip Styles */
.features {
  border-bottom: 1px solid var(--border-color);
  background-color: #ffffff;
}

.features-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.feature-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  width: 28px;
  height: 28px;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 10. Footer Styles */
.footer {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding-top: 80px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-heading {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  position: relative;
  padding-bottom: 8px;
}

.logo.light a {
  color: #ffffff;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.9rem;
  color: #b3b3b3;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-info li i {
  color: #ffffff;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #b3b3b3;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.subscribe-col {
  max-width: 320px;
}

.subscribe-text {
  font-size: 0.9rem;
  color: #b3b3b3;
}

.subscribe-form {
  position: relative;
  width: 100%;
}

.subscribe-form input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 48px 12px 16px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: 4px;
  outline: none;
  transition: var(--transition);
}

.subscribe-form input::placeholder {
  color: #777777;
}

.subscribe-form input:focus {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.subscribe-form button {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transition: var(--transition);
}

.subscribe-form button:hover {
  color: var(--accent);
}

.footer-bottom {
  padding: 24px 0;
  background-color: #0d0f13;
}

.footer-bottom-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #777777;
  font-size: 0.85rem;
}

.copyright {
  text-align: center;
}

.footer-socials {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.social-link {
  color: #777777;
  transition: var(--transition);
}

.social-link:hover {
  color: #ffffff;
}

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

.payment-methods svg {
  width: 50px;
  height: 32px;
  background-color: #ffffff;
  border-radius: 4px;
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
}

/* 11. Responsive Layouts & Media Queries */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    gap: 40px;
  }

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

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .deals-container {
    gap: 40px;
  }

  .deals-title {
    font-size: 2.2rem;
  }

  .testimonials-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-wrapper .testimonial-card:last-child {
    display: none;
    /* Hide third card on tablet */
  }

  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* Mobile Portrait & Landscape (max-width: 768px) */
@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }

  .nav {
    display: none;
    /* Hide desktop nav */
  }

  .login-btn {
    display: none;
    /* Hide desktop login button */
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    height: auto;
    padding: 80px 0;
    margin: 12px 16px 0;
    border-radius: 12px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
    padding-left: 0;
    margin-top: 0;
  }

  .hero-title {
    font-size: 2.8rem;
    white-space: normal;
  }

  .hero-bg-text {
    font-size: 8rem;
    bottom: 0;
  }

  .hero-image-container {
    display: flex;
    justify-content: center;
  }

  .hero-frame {
    display: none;
    /* Hide framing on mobile for cleaner visual flow */
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .deals-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .deals-content {
    align-items: center;
    margin-left: 0;
  }

  .deals-image-container {
    justify-content: center;
  }

  .testimonials-wrapper {
    grid-template-columns: 1fr;
  }

  .testimonials-wrapper .testimonial-card:nth-child(2) {
    display: none;
    /* Hide second card on mobile */
  }

  .instagram-grid {
    grid-template-columns: 1fr;
  }

  .features-container {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-bottom-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .payment-methods {
    justify-content: center;
  }

  .footer-socials {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

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

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