/* Oreka V4.3 Unified Mobile-First Look */

/* --- Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Oswald:wght@500;700;800&display=swap');

:root {
  /* --- Palette --- */
  --color-bg: #FFFFFF;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-text-main: #121212;
  --color-text-muted: #666666;
  --color-accent: #C44D25;
  --color-border: #E5E5E5;

  /* --- Typography --- */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.5rem;
  --text-3xl: 4rem;
  --text-hero: clamp(2.5rem, 5vw, 5rem);

  /* --- Spacing --- */
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --header-height: 70px;
  --radius-sm: 0px;
}

/* --- Language Switcher --- */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  margin-right: 1rem;
}

/* Hide header language switcher by default (Mobile) */
.header-actions .lang-switcher {
  display: none;
}

/* Show header language switcher on larger screens */
@media (min-width: 900px) {
  .header-actions .lang-switcher {
    display: flex;
  }

  /* Hide mobile menu language switcher if desired, though mobile menu is usually hidden on desktop anyway */
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--color-black);
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 0.2rem;
}

.lang-btn:hover,
.lang-btn.active {
  opacity: 1;
  text-decoration: underline;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
}

a {
  text-decoration: none !important;
  /* Force removal of underlines */
  color: inherit;
  transition: opacity 0.2s ease;
  display: inline-block;
}

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

button {
  font-family: inherit;
}

ul {
  list-style: none;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 8%;
  /* Significantly increased padding */
}

/* ... existing code ... */

/* --- Color Options Styling (New) --- */
.color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--color-black);
  /* Ring effect */
  transform: scale(1.1);
}

.color-options {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

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

.uppercase {
  text-transform: uppercase;
}

/* Unisex Label */
.unisex-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-top: -0.2rem;
  margin-bottom: 1rem;
  font-weight: 500;
  opacity: 0.8;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-black);
  color: var(--color-white);
  border: 1px solid var(--color-black);
  cursor: pointer;
  border-radius: 0;
  transition: all 0.3s ease;
}

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-black);
  color: var(--color-black);
}

.btn-outline:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.active-tab {
  background-color: var(--color-primary, #000) !important;
  color: #fff !important;
}

/* --- Header --- */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  position: relative;
  /* Needed for absolute centering */
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--color-black);
  /* Absolute Center */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-icon {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  /* Larger touch target */
  color: var(--color-black);
  position: relative;
  /* Fix for badge positioning */
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-accent);
  color: white;
  font-size: 0.7rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-desktop {
  display: none !important;
}

/* --- Mobile Menu (Universal) --- */
#menu-toggle {
  display: block !important;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-white);
  z-index: 2000;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-black);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  width: 100%;
  display: block;
}

/* --- Hero --- */
.hero {
  min-height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 4rem 1rem;
  margin-top: 0;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--color-black);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-bg.active {
  opacity: 1;
}

.hero-content {
  z-index: 1;
  text-align: center;
  max-width: 1000px;
  width: 100%;
}

.hero-content h1 {
  font-size: var(--text-hero);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* --- Grids --- */
/* UNIFIED: We remove complex grid changes for desktop to keep it looking "like mobile" but just slightly wider */
.bento-section {
  padding: var(--space-lg) 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 500px;
  }

  .bento-item-large {
    grid-column: span 1;
    grid-row: span 2;
  }
}

.bento-item {
  position: relative;
  display: block;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
  background: #f0f0f0;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.bento-item:hover img {
  transform: scale(1.05);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.bento-text h3 {
  font-size: 2rem;
  color: white;
  margin-bottom: 0px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* --- Products --- */
.products-wrapper {
  padding: var(--space-lg) 0;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Kept max 3 columns for desktop to avoid it looking too stretched, but consistent */
@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-image-container {
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* --- Footer --- */
footer {
  background: #111;
  color: white;
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin: 0 auto;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  color: #fff;
  letter-spacing: 0.1em;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
  color: #999;
}

.footer-col a:hover {
  color: white;
  text-decoration: underline !important;
}

.footer-bottom {
  border-top: 1px solid #222;
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: #555;
}

/* --- Cart Sidebar --- */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background: white;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
}

.cart-items {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.cart-footer {
  padding: 1.5rem;
  background: #f9f9f9;
}

/* --- Cookie Banner --- */
#cookie-banner {
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

#three-bg {
  display: none;
}
/* --- Product Card Carousel Arrows --- */
.card-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-image-container:hover .card-nav {
  opacity: 1;
}

.card-nav.prev {
  left: 5px;
}

.card-nav.next {
  right: 5px;
}

.card-nav:hover {
  background: white;
  color: var(--color-accent);
}
