﻿/* tasarım: can atay. */

@font-face {
  font-family: "Apotek";
  src: url("./fonts/apoteckfamily/Apotek_Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&display=swap&subset=latin-ext");
@import url("https://fonts.googleapis.com/css2?family=Jost:wght@400;500&display=swap&subset=latin-ext");

:root {
  --accent-color: #110a0c;
  --bg-color: #f8f6f7;
  --menu-bg: #f8f6f7;
  --menu-sep: #61412f;
  --category-bar-bg: #110a0c;
  
  --font-heading: "Apotek", "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", sans-serif;
  --font-ui: "Jost", var(--font-body);
}

@keyframes view-screen-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  background: #f8f6f7;
  color: #110a0c;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  background: #f8f6f7;
  overflow: hidden;
  isolation: isolate;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./images/kollekt-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.hero-content-layer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  position: relative;
  z-index: 1;
}

.top-app-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  box-shadow: none;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 35px 120px 17px;
}

#category-subnav[hidden] {
  display: none !important;
}

.category-subnav {
  width: 100%;
  background: var(--category-bar-bg);
  border-top: 1px solid rgba(248, 246, 247, 0.12);
}

.category-subnav-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 16px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-subnav-scroll::-webkit-scrollbar {
  display: none;
}

.category-subnav-link {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bg-color);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s ease, text-decoration-color 0.2s ease, background-color 0.2s ease;
  text-decoration: underline solid transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.category-subnav-link:hover,
.category-subnav-link:focus-visible {
  opacity: 0.95;
  outline: none;
}

.category-subnav-link.is-active {
  opacity: 1;
  text-decoration-color: var(--bg-color);
}

.brand {
  width: 187px;
  min-height: 25px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #110a0c;
  flex: 0 0 auto;
}

.brand-logo {
  max-height: 80px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.hero-copy-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 28px 24px 102px;
}

.hero-stack {
  width: min(100%, 1080px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}


#category-screen[hidden],
#product-screen[hidden] {
  display: none !important;
}

.view-screen--categories {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.view-screen--categories:not([hidden]) {
  animation: view-screen-fade-in 0.32s ease;
}

.view-screen--products {
  width: min(100%, 980px);
  margin: 0 auto;
  text-align: left;
}

.view-screen--products:not([hidden]) .product-screen-inner {
  animation: view-screen-fade-in 0.36s ease;
}

.product-screen-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 8px;
}

.product-screen-heading {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.125rem, 7vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #110a0c;
}

#product-category-note[hidden] {
  display: none !important;
}

.product-category-note {
  margin: 0 0 8px;
  padding: 15px;
  border: 1px dashed var(--menu-sep);
  border-radius: 4px;
  background: transparent;
  color: var(--accent-color);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  font-style: normal;
  text-align: left;
}

.product-category-note-line {
  margin: 0;
}

.product-category-note-line + .product-category-note-line {
  margin-top: 10px;
}

.product-category-note-line--strong {
  font-weight: 700;
}

.product-screen-heading + .product-category-note {
  margin-top: 10px;
}

.product-screen-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.dessert-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 220px));
  column-gap: 4px;
  row-gap: 8px;
  padding-top: 4px;
  justify-content: start;
}

.dessert-subcategory-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  max-width: 220px;
  border: none;
  border-radius: 12px;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  text-align: left;
}

.dessert-subcategory-card:hover,
.dessert-subcategory-card:focus-visible {
  outline: none;
  background: rgba(17, 10, 12, 0.03);
}

.dessert-subcategory-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(97, 65, 47, 0.08);
}

.dessert-subcategory-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: #110a0c;
  text-transform: uppercase;
}

.dessert-subcategory-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 6px;
}

.dessert-subcategory-back {
  border: 1px solid rgba(97, 65, 47, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(17, 10, 12, 0.02);
  color: #3a2720;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dessert-subcategory-back:hover,
.dessert-subcategory-back:focus-visible {
  outline: none;
  border-color: rgba(97, 65, 47, 0.55);
  background: rgba(17, 10, 12, 0.05);
}


.product-section-header-wrap {
  width: 100%;
  margin: 0;
  padding: 40px 0 18px;
  box-sizing: border-box;
}

.product-screen-list > .product-section-header-wrap:first-child {
  padding-top: 20px;
}

.product-section-header {
  margin: 0 auto;
  max-width: 28rem;
  padding: 0 8px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(0.9375rem, 3.8vw, 1.1875rem);
  line-height: 1.42;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  color: var(--menu-sep);
}

.product-section-header--strong {
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  letter-spacing: 0.05em;
}

@media (min-width: 480px) {
  .product-section-header {
    text-align: left;
    margin: 0;
    padding-left: 2px;
    padding-right: 0;
    max-width: none;
  }
}


.product-row--no-photo .product-head {
  width: 100%;
  align-items: baseline;
}

.product-row--no-photo .product-name {
  flex: 1;
  min-width: 0;
  padding-right: 12px;
}

.product-row--no-photo .product-price {
  flex-shrink: 0;
  margin: 0;
}

.product-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--menu-sep);
  background: transparent;
}

.product-row:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}


.product-row--with-media {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 14px;
}

.product-thumb-btn {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 12px;
  line-height: 0;
}

.product-thumb-btn:focus-visible {
  outline: 2px solid var(--menu-sep);
  outline-offset: 3px;
}

.product-thumb-frame {
  display: block;
  width: 80px;
  height: 80px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(97, 65, 47, 0.08);
  border: 1px solid rgba(97, 65, 47, 0.2);
}

.product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: top;
}

.product-text-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  text-align: left;
}

.product-row--with-media .item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.product-row--with-media .item-header .product-name {
  margin: 0;
  flex: 1;
  min-width: 0;
  align-self: flex-start;
}

.product-row--with-media .item-header .product-price {
  margin: 0;
  flex-shrink: 0;
  align-self: flex-start;
  font-family: var(--font-ui);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--accent-color);
  white-space: nowrap;
  text-align: right;
}

.product-row--with-media .product-description {
  margin: 8px 0 0;
}

body.image-lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.image-lightbox[hidden] {
  display: none !important;
}

.image-lightbox-overlay {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(17, 10, 12, 0.52);
  cursor: pointer;
}

.image-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 960px);
  max-height: min(88vh, 900px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(17, 10, 12, 0.25);
}

.image-lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 960px);
  max-height: min(88vh, 900px);
  object-fit: contain;
  background: #f8f6f7;
}

.hero-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text-group p {
  margin: 0;
  max-width: 560px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #110a0c;
  font-family: var(--font-ui);
}

.view-screen--categories .category-grid {
  width: min(100%, 980px);
}

.category-grid {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  border: 0;
  border-radius: 12px;
  padding: 4px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.category-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: none;
  border-radius: 10px;
  background-color: rgba(97, 65, 47, 0.08);
  background-image: url("./images/category-placeholder.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.category-card h3 {
  margin: 0;
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.25;
  color: #110a0c;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.category-card:hover,
.category-card:focus-visible {
  outline: none;
  background: rgba(17, 10, 12, 0.03);
}

.category-card.is-active .category-media {
  box-shadow: inset 0 0 0 1px rgba(17, 10, 12, 0.32);
}

.product-screen-list .product-head {
  gap: 12px;
}

.product-screen-list .product-name {
  font-size: clamp(1rem, 2.8vw, 1.125rem);
}

.product-screen-list .product-description {
  color: rgba(17, 10, 12, 0.88);
}

.product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.product-name {
  margin: 0;
  font-size: 16px;
  color: #110a0c;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.product-coming-soon-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid #61412f;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(97, 65, 47, 0.9);
  text-transform: none;
  vertical-align: baseline;
  position: relative;
  top: -1px;
}

.product-price {
  margin: 0;
  font-size: 13px;
  color: #110a0c;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.product-description {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #110a0c;
  font-family: var(--font-ui);
}

.product-allergens {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(17, 10, 12, 0.45);
  font-family: var(--font-ui);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.product-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(17, 10, 12, 0.45);
  font-family: var(--font-ui);
}

.product-meta-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: rgba(17, 10, 12, 0.45);
}

.product-meta-icon svg {
  display: block;
}

.product-meta-icon-img {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.45;
}

.product-meta-text {
  white-space: nowrap;
}

.mobile-category-promo {
  display: none;
}

.product-thumb-btn--disabled {
  cursor: default;
}

.mobile-bottom-bar {
  display: none;
}

.menu-icon-button {
  border: 0;
  background: transparent;
  color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.menu-icon-button:hover,
.menu-icon-button:focus-visible {
  background: rgba(17, 10, 12, 0.1);
}

.menu-icon-image {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.desktop-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 42px;
  background: #f8f6f7;
  border-top: 1px solid #110a0c;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.desktop-footer p {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #110a0c;
  font-family: var(--font-heading);
}

@media (max-width: 1024px) {
  .navbar {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (max-width: 768px) {
  .hero-section::before {
    position: fixed;
    inset: 0;
    background-image: url("./images/bg.png");
    background-position: center center;
    background-size: cover;
  }

  .hero-section::before {
    opacity: 0.05;
  }

  .top-app-bar {
    box-sizing: border-box;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .brand {
    width: auto;
    min-height: 25px;
  }

  .brand-logo {
    max-height: 38px;
  }

  .navbar {
    padding-top: max(21px, calc(13px + env(safe-area-inset-top, 0px)));
    padding-bottom: 21px;
    padding-left: 0;
    padding-right: 0;
  }

  .category-subnav {
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
    box-sizing: border-box;
  }

  .hero-copy-wrap {
    padding-top: 12px;
    padding-bottom: 100px;
  }

  .category-subnav-scroll {
    padding: 10px 16px 10px;
  }

  .category-subnav-link {
    font-size: 0.8125rem;
    padding: 8px 14px;
  }

  .hero-text-group p {
    max-width: 320px;
    font-size: 13px;
    line-height: 1.5;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .dessert-subcategory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 6px;
    row-gap: 8px;
    justify-content: stretch;
  }

  .dessert-subcategory-card {
    max-width: none;
  }

  .category-card {
    padding: 8px;
    border-radius: 14px;
  }

  .category-card h3 {
    font-size: 19px;
  }

  .product-screen-inner {
    gap: 8px;
    padding-top: 18px;
  }

  .product-screen-heading + .product-category-note {
    margin-top: 12px;
  }

  .product-category-note {
    font-size: 11px;
  }

  .product-screen-heading {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .product-row {
    padding: 16px 0;
  }

  .product-section-header-wrap {
    padding: 32px 0 14px;
  }

  .product-screen-list > .product-section-header-wrap:first-child {
    padding-top: 14px;
  }

  .product-row--with-media {
    gap: 12px;
  }

  .mobile-category-promo {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding-top: 8px;
  }

  .mobile-category-promo-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
  }

  .product-thumb-frame {
    width: 80px;
    height: 80px;
  }

  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 62px;
    border-top: 1px solid #110a0c;
    background: #f8f6f7;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
    padding: 0 10px;
    z-index: 30;
  }

  .mobile-bottom-bar .menu-icon-button {
    width: 40px;
    height: 40px;
    border-radius: 999px;
  }

  .mobile-bottom-bar .menu-icon-button:hover,
  .mobile-bottom-bar .menu-icon-button:focus-visible,
  .mobile-bottom-bar .menu-icon-button:active {
    background: rgba(17, 10, 12, 0.05);
  }

  .nav-arrow-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #110a0c;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .desktop-footer {
    display: none;
  }
}

