/* ============================================
   AquaStyle – Czech Swimwear E-commerce Store
   Full redesign 2025
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #0077b6;
  --primary-dark: #005f8e;
  --secondary: #00b4d8;
  --accent: #ff6b35;
  --accent-dark: #e5551f;
  --bg: #f0f8ff;
  --bg-section: #f7fbff;
  --white: #ffffff;
  --text: #1a2b3c;
  --text-muted: #5a7080;
  --border: #d0e8f2;
  --shadow-sm: 0 2px 8px rgba(0, 119, 182, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 119, 182, 0.14);
  --shadow-lg: 0 8px 40px rgba(0, 119, 182, 0.18);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --transition: 0.25s ease;
  --header-h: 70px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
address {
  font-style: normal;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}
h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}
h4 {
  font-size: 1.1rem;
}
p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-accent,
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border: 2px solid var(--secondary);
}
.btn-secondary:hover {
  background: #009ab8;
  border-color: #009ab8;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
.btn-full {
  width: 100%;
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-light {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.badge-primary {
  background: rgba(0, 119, 182, 0.1);
  color: var(--primary);
}
.badge-accent {
  background: var(--accent);
  color: var(--white);
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: var(--white);
  z-index: 9999;
  display: none;
  padding: 18px 0;
}
#cookie-banner .cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
#cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
  min-width: 200px;
}
#cookie-banner a {
  color: var(--secondary);
  text-decoration: underline;
}
.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-buttons .btn-primary {
  padding: 9px 20px;
  font-size: 0.85rem;
}
.cookie-buttons .btn-outline {
  padding: 9px 20px;
  font-size: 0.85rem;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.cookie-buttons .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ===== HEADER ===== */
#main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#main-header.scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.logo-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.2px;
}
#main-nav {
  flex: 1;
}
#main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#main-nav a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
#main-nav a:hover {
  color: var(--primary);
  background: rgba(0, 119, 182, 0.07);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all var(--transition);
}
.icon-btn:hover {
  background: var(--bg);
  color: var(--primary);
}
.cart-icon-btn {
  position: relative;
}
.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: var(--white);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
}
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.open span:nth-child(2) {
  opacity: 0;
}
.burger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 80vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 119, 182, 0.5);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
  animation: fadeInUp 0.7s ease both;
}
.hero-content .badge {
  margin-bottom: 16px;
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.93;
  margin-bottom: 28px;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-badges span {
  font-size: 0.82rem;
  font-family: var(--font-heading);
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.2px;
}

/* ===== CATEGORIES STRIP ===== */
.categories-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--bg-section);
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  text-align: center;
}
.category-item:hover {
  border-color: var(--primary);
  background: rgba(0, 119, 182, 0.05);
  color: var(--primary);
  transform: translateY(-2px);
}
.category-icon {
  font-size: 1.8rem;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
  padding: 72px 0;
  background: var(--bg-section);
}
.products-section:nth-child(even) {
  background: var(--white);
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  margin-bottom: 10px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}
.product-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
}
.badge-bestseller {
  background: var(--accent);
  color: var(--white);
}
.badge-new {
  background: var(--primary);
  color: var(--white);
}
.badge-super {
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  padding: 5px 12px;
}
.product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.product-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 1px;
}
.rating-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.price-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-current {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}
.price-discount {
  background: rgba(255, 107, 53, 0.12);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 2px 7px;
  border-radius: 4px;
}
.price-large {
  font-size: 1.6rem;
}
.price-discount-large {
  font-size: 0.85rem;
  padding: 3px 10px;
}

/* Sizes */
.product-sizes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.size-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.sizes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.size-btn {
  width: 36px;
  height: 32px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
}
.size-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.size-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.btn-add-cart {
  margin-top: auto;
}

/* ===== PROMO BANNER ===== */
.promo-banner {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.promo-bg {
  position: absolute;
  inset: 0;
}
.promo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 119, 182, 0.88) 0%,
    rgba(0, 119, 182, 0.3) 60%,
    transparent 100%
  );
}
.promo-content {
  position: relative;
  z-index: 2;
}
.promo-text {
  max-width: 480px;
}
.promo-text .badge {
  margin-bottom: 14px;
}
.promo-text h2 {
  color: var(--white);
  margin-bottom: 10px;
}
.promo-text p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
  font-size: 1.05rem;
}
.promo-text .btn-accent {
  font-size: 1rem;
  padding: 14px 32px;
}

/* ===== FEATURES BAR ===== */
.features-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-item div {
  display: flex;
  flex-direction: column;
}
.feature-item strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.feature-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 80px 0;
  background: var(--bg-section);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 480px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about-content .badge {
  margin-bottom: 14px;
}
.about-content h2 {
  margin-bottom: 18px;
}
.about-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}
.stat-item {
  padding: 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-item strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== REVIEWS ===== */
.reviews-section {
  padding: 80px 0;
  background: var(--white);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.review-card {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.review-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-header strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  display: block;
}
.review-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.review-stars {
  margin-bottom: 12px;
}
.review-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== SALE SECTION ===== */
.sale-section {
  padding: 80px 0;
  background: var(--bg-section);
}
.sale-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.sale-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border);
  display: flex;
  transition: all var(--transition);
}
.sale-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.sale-card-image {
  position: relative;
  width: 220px;
  flex-shrink: 0;
  overflow: hidden;
}
.sale-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.sale-card:hover .sale-card-image img {
  transform: scale(1.06);
}
.sale-card-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.sale-card-info h3 {
  font-size: 1.2rem;
}
.sale-card-info > p {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.sale-card-info .btn-accent {
  margin-top: auto;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 72px 0;
  color: var(--white);
  text-align: center;
}
.newsletter-content {
  max-width: 560px;
  margin: 0 auto;
}
.newsletter-section h2 {
  color: var(--white);
  margin-bottom: 12px;
}
.newsletter-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  font-size: 1.05rem;
}
.newsletter-input-group {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-input-group input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  background: rgba(255, 255, 255, 0.95);
}
.newsletter-input-group input::placeholder {
  color: #aaa;
}
.newsletter-success {
  display: none;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo {
  text-decoration: none;
  align-items: center;
  gap: 10px;
}
.footer-logo-name {
  color: var(--white) !important;
  font-size: 1.2rem;
}
.footer-desc {
  margin: 14px 0 18px;
  font-size: 0.88rem;
  line-height: 1.65;
}
.footer-contact {
  font-size: 0.85rem;
  line-height: 1.9;
}
.footer-contact a:hover {
  color: var(--secondary);
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--secondary);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.payment-methods {
  display: flex;
  align-items: center;
  gap: 10px;
}
.payment-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-radius: 4px;
  padding: 4px 10px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18);
}
.cart-sidebar.open {
  transform: translateX(0);
}
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
}
#close-cart {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition);
}
#close-cart:hover {
  background: var(--border);
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 0.95rem;
}
.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}
.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-item-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
}
.cart-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.cart-item-price {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px;
  transition: color var(--transition);
  align-self: flex-start;
}
.cart-item-remove:hover {
  color: var(--accent);
}
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-section);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-size: 1rem;
}
.cart-total strong {
  font-size: 1.2rem;
  color: var(--primary);
}

/* ===== CART PAGE ===== */
.cart-page {
  padding: 48px 0 80px;
  min-height: 60vh;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: var(--primary);
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.cart-page h1 {
  margin-bottom: 36px;
}
.cart-page-empty {
  text-align: center;
  padding: 80px 20px;
}
.cart-empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}
.cart-page-empty h2 {
  margin-bottom: 12px;
}
.cart-page-empty p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.cart-page-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}
.cart-table-wrapper {
  overflow-x: auto;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.cart-table th {
  text-align: left;
  padding: 12px 14px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.cart-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cart-product-img img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.cart-product-name {
  font-family: var(--font-heading);
  font-weight: 700;
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.qty-control button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text);
  transition: background var(--transition);
}
.qty-control button:hover {
  background: var(--bg);
}
.qty-control span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 28px;
  text-align: center;
}
.remove-btn {
  color: var(--text-muted);
  font-size: 1rem;
  padding: 6px;
  border-radius: 4px;
  transition: all var(--transition);
}
.remove-btn:hover {
  color: var(--accent);
  background: rgba(255, 107, 53, 0.1);
}
.cart-summary-box {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.cart-summary-box h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.summary-row:last-of-type {
  border-bottom: none;
}
.summary-total {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 2px solid var(--border);
  border-bottom: none;
}
.summary-total strong {
  color: var(--primary);
  font-size: 1.2rem;
}
.shipping-notice {
  display: none;
  font-size: 0.82rem;
  color: var(--primary);
  background: rgba(0, 119, 182, 0.07);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 12px 0;
  text-align: center;
}
.btn-checkout {
  margin-top: 16px;
  font-size: 1rem;
  padding: 15px;
}

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

/* ===== RESPONSIVE 1024px ===== */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid .footer-col:first-child {
    grid-column: 1 / -1;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-image img {
    height: 340px;
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sale-grid {
    grid-template-columns: 1fr;
  }
  .cart-page-content {
    grid-template-columns: 1fr;
  }
  .cart-summary-box {
    position: static;
  }
}

/* ===== RESPONSIVE 768px ===== */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }
  .burger-btn {
    display: flex;
  }
  #main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  #main-nav.open {
    display: block;
  }
  #main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 0 20px;
  }
  #main-nav a {
    display: block;
    padding: 13px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }
  #main-nav li:last-child a {
    border-bottom: none;
  }
  .hero {
    height: 65vh;
    min-height: 460px;
  }
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn-primary,
  .hero-cta .btn-outline-white {
    text-align: center;
    justify-content: center;
  }
  .hero-badges {
    gap: 10px;
  }
  .hero-badges span {
    font-size: 0.77rem;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .products-grid {
    gap: 16px;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .sale-card {
    flex-direction: column;
  }
  .sale-card-image {
    width: 100%;
    height: 200px;
  }
  .newsletter-input-group {
    flex-direction: column;
  }
  .newsletter-input-group input {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .cart-sidebar {
    width: 100%;
  }
  .promo-banner {
    height: 280px;
  }
  .promo-text h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
  .sale-grid {
    gap: 16px;
  }
  .hero {
    height: 85vh;
  }
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.4rem;
  }
}

/* ===========================
   INNER PAGES (contact, policy, etc.)
   =========================== */

.page-hero-inner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 100px 0 48px;
  text-align: center;
}
.page-hero-inner h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-hero-inner p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 16px;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.8;
}
.breadcrumb a {
  color: #fff;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.page-inner {
  padding: 64px 0 80px;
  background: var(--bg);
}

/* Contact grid: 2 columns */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form-wrap h2,
.contact-info-wrap h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.contact-form-desc {
  color: #666;
  margin-bottom: 28px;
  font-size: 0.95rem;
}

/* Form styles */
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.contact-form label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border: 1.5px solid #d0d8e4;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}
.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 4px;
}
.form-success-msg {
  background: #e8f8f0;
  border: 1px solid #4caf84;
  border-radius: 10px;
  padding: 18px 20px;
  color: #1a6640;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Contact info card */
.contact-info-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  margin-bottom: 28px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f4f8;
}
.contact-info-item:last-child {
  border-bottom: none;
}
.contact-info-icon {
  font-size: 1.4rem;
  min-width: 32px;
  text-align: center;
}
.contact-info-item strong {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.contact-info-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}
.contact-info-item a {
  color: var(--primary);
  text-decoration: none;
}
.contact-info-item a:hover {
  text-decoration: underline;
}

/* FAQ block */
.contact-faq h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.faq-item {
  padding: 14px 0;
  border-bottom: 1px solid #e8edf2;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-item strong {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.95rem;
}
.faq-item p {
  margin: 0;
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
}

/* Active nav link */
#main-nav ul li a.active {
  color: var(--primary);
  font-weight: 700;
}

/* Responsive contact */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
  .page-hero-inner {
    padding: 90px 0 36px;
  }
  .page-hero-inner h1 {
    font-size: 1.8rem;
  }
}
