/* ============================================
   CUPERUS KOFFIEBRANDERIJ - Website Clone
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============================================
   HEADER
   ============================================ */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-top {
  padding: 12px 0;
}

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

.header-left {
  flex: 1;
}

.search-toggle {
  color: #555;
  font-size: 16px;
  transition: color 0.2s;
}

.search-toggle:hover { color: #c8a97e; }

.header-mobile-menu,
.header-mobile-search {
  display: none;
}

.hamburger { color: #333; }

.header-center {
  flex: 2;
  text-align: center;
}

.logo img {
  max-height: 55px;
  margin: 0 auto;
  transition: opacity 0.2s;
}

.logo:hover { opacity: 0.8; }

.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-link {
  color: #555;
  font-size: 16px;
  position: relative;
  transition: color 0.2s;
}

.icon-link:hover { color: #c8a97e; }

.cart-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-amount {
  font-size: 13px;
  font-weight: 500;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #c8a97e;
  color: #fff;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
  background: #2c2c2c;
}

.nav-list {
  display: flex;
  justify-content: center;
}

.nav-item > a {
  display: block;
  padding: 14px 18px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-item > a:hover {
  background: #3a3a3a;
  color: #c8a97e;
}

.nav-item > a i {
  margin-left: 4px;
  font-size: 10px;
}

.nav-item {
  position: relative;
}

/* Standard Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 200;
  border-top: 3px solid #c8a97e;
}

.nav-item:hover > .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: #444;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s, padding-left 0.2s, color 0.2s;
}

.dropdown li a:hover {
  background: #faf7f2;
  padding-left: 25px;
  color: #c8a97e;
}

/* Mega Dropdown (Toebehoren) */
.dropdown.mega {
  min-width: 300px;
  padding: 10px 0;
}

.dropdown-title {
  font-weight: 600 !important;
  color: #2c2c2c !important;
  font-size: 13px !important;
}

.sub-dropdown {
  padding-left: 15px;
}

.sub-dropdown li a {
  font-size: 12px !important;
  color: #777 !important;
  padding: 7px 20px !important;
}

.sub-dropdown li a i {
  font-size: 5px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  height: 480px;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active { opacity: 1; }

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 100%);
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  width: 90%;
  max-width: 600px;
}

.slide-content h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.slide-content p {
  font-size: 16px;
  margin-bottom: 24px;
  opacity: 0.9;
  line-height: 1.5;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  font-size: 22px;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}

.slider-nav:hover { background: rgba(255,255,255,0.35); }
.slider-prev { left: 20px; border-radius: 4px; }
.slider-next { right: 20px; border-radius: 4px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active { background: #c8a97e; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Roboto', sans-serif;
}

.btn-primary {
  background: #c8a97e;
  color: #fff;
  border-radius: 3px;
}

.btn-primary:hover {
  background: #b8996e;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(200,169,126,0.4);
}

.btn-add-cart {
  display: block;
  width: 100%;
  background: #f8f8f8;
  color: #444;
  text-align: center;
  padding: 10px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  letter-spacing: 0.3px;
}

.btn-add-cart:hover {
  background: #c8a97e;
  color: #fff;
  border-color: #c8a97e;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header .subtitle {
  font-size: 12px;
  color: #c8a97e;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 500;
  margin-bottom: 8px;
}

.section-header .title {
  font-size: 26px;
  font-weight: 700;
  color: #2c2c2c;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #fafafa;
}

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

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

.product-info {
  padding: 14px;
}

.product-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.4;
  transition: color 0.2s;
}

.product-title:hover { color: #c8a97e; }

.product-rating {
  color: #c8a97e;
  font-size: 11px;
  margin-bottom: 8px;
}

.product-rating i { margin-right: 1px; }

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 12px;
}

/* ============================================
   FEATURED COURSES
   ============================================ */
.featured-section {
  background: #fafafa;
}

.featured-carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.carousel-track::-webkit-scrollbar { display: none; }

.featured-card {
  min-width: 360px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #eee;
  transition: box-shadow 0.3s;
  overflow: hidden;
}

.featured-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); }

.featured-image {
  overflow: hidden;
  height: 220px;
}

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

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

.featured-info {
  padding: 18px;
}

.featured-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.featured-title:hover { color: #c8a97e; }

.featured-rating {
  color: #c8a97e;
  font-size: 12px;
  margin-bottom: 10px;
}

.featured-price {
  font-size: 18px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 14px;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  font-size: 18px;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}

.carousel-btn:hover {
  background: #c8a97e;
  color: #fff;
  border-color: #c8a97e;
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.category-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

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

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 50px 20px 20px;
  text-align: center;
}

.category-name {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
  background: #3a3a3a;
  padding: 28px 0;
}

.newsletter-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.newsletter-label {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.newsletter-input {
  padding: 10px 16px;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  width: 280px;
  font-family: 'Roboto', sans-serif;
}

.newsletter-input:focus {
  outline: 2px solid #c8a97e;
}

.btn-newsletter {
  background: #c8a97e;
  color: #fff;
  padding: 10px 24px;
  border: none;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-newsletter:hover { background: #b8996e; }

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: #2c2c2c;
  color: #ccc;
}

.footer-main {
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  max-height: 50px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-addresses p {
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.8;
}

.footer-addresses strong {
  color: #fff;
}

.footer-contact ul li {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  flex-wrap: wrap;
}

.footer-contact .label {
  color: #c8a97e;
  font-weight: 500;
  min-width: 70px;
}

.footer-contact a {
  color: #ccc;
  transition: color 0.2s;
}

.footer-contact a:hover { color: #c8a97e; }

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

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3a3a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s;
}

.social-link:hover {
  background: #c8a97e;
  transform: translateY(-2px);
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-links li a {
  font-size: 13px;
  color: #999;
  transition: color 0.2s, padding-left 0.2s;
}

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

.footer-bottom {
  background: #222;
  padding: 16px 0;
}

.footer-bottom-inner {
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #777;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: #c8a97e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 4px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #b8996e;
  transform: translateY(-3px);
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: right 0.35s ease;
  overflow-y: auto;
}

.cart-sidebar.open { right: 0; }

.cart-header {
  padding: 20px;
  background: #f8f8f8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  font-size: 15px;
}

.cart-header small {
  font-weight: 400;
  color: #999;
}

.close-cart {
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
}

.close-cart:hover { color: #333; }

.cart-body {
  padding: 20px;
}

.empty-cart {
  text-align: center;
  color: #999;
  padding: 40px 0;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

/* ============================================
   MOBILE MENU
   ============================================ */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

.mobile-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: #2c2c2c;
  z-index: 1002;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}

.mobile-menu.open { left: 0; }

.close-menu {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.mobile-menu-logo {
  text-align: center;
  margin-bottom: 25px;
}

.mobile-menu-logo img {
  max-height: 45px;
  margin: 0 auto;
}

.mobile-nav > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #3a3a3a;
}

.toggle-sub {
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-menu {
  display: none;
  padding-left: 15px;
}

.has-sub.open .sub-menu { display: block; }

.sub-menu li a {
  display: block;
  padding: 8px 0;
  color: #aaa;
  font-size: 13px;
  border-bottom: 1px solid #353535;
}

.sub-menu li a:hover { color: #c8a97e; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-mobile-menu,
  .header-mobile-search { display: block; }
  .header-left { display: none; }
  .main-nav { display: none; }
  
  .logo img { max-height: 42px; }
  
  .hero-slider { height: 340px; }
  .slide-content h2 { font-size: 26px; }
  .slide-content p { font-size: 14px; }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .featured-card { min-width: 280px; }
  
  .newsletter-form {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-input {
    width: 100%;
    max-width: 300px;
  }
  
  .section { padding: 40px 0; }
  .section-header .title { font-size: 22px; }
  
  .slider-nav { width: 40px; height: 40px; font-size: 18px; }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .product-info { padding: 10px; }
  .product-title { font-size: 12px; }
  .product-price { font-size: 14px; }
  .btn-add-cart { font-size: 10px; padding: 8px; }
  
  .hero-slider { height: 280px; }
  .slide-content h2 { font-size: 20px; }
  
  .cart-sidebar { width: 100%; right: -100%; }
}
