/* =========================
   Meet Neo. Let's follow the white rabbit :)
   Author: Qbit
   Build Date: 25/11/2025
   Version: 1.0.0

   File path: /uploads/
========================= */

/* =========================
   Import fonts
========================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

/* =========================
   Root styles
========================= */

:root {
   --primary-color: #ead7b5; /* Primary colour */
   --secondary-color: #fdeed3; /* Secondary colour */
}

/* =========================
   Global styles
========================= */

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

html {
   font-size: 100%;
   scroll-behavior: smooth;
}

body {
   min-height: 100dvh;
   font-size: 1rem;
   font-family: 'Quicksand', sans-serif;
   color: #333;
   line-height: 1.6;
   background-color: #f7f3eb;
   padding-top: 50px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
   margin-bottom: 20px;
   font-size: 1.2em;
   font-family: 'Playfair Display', serif;
   text-transform: uppercase;
   color: #333;
   line-height: 1.5;
}

p {
   margin-bottom: 20px;
}

a {
   color: #333;
   text-decoration: none;
   transition: color 0.3s ease, transform 0.5s ease-in-out;
   white-space: nowrap;
}

ul {
   margin-bottom: 20px;
   list-style: none;
}

img {
   width: 100%;
   border-radius: 5px;
   vertical-align: bottom;
}

/* =========================
   Main styles
========================= */

.main {
   width: 100%;
}

/* =========================
   Header styles
========================= */

header {
   position: fixed;
   top: 0;
   left: 0;
   z-index: 1000;
   width: 100%;
   height: 90px;
   background-color: #333;
}

.logo {
   display: block;
   width: 200px;
   height: 65px;
   background: url('/uploads/svg/logo.png') no-repeat center / contain;
   text-indent: -9999px;
}

header nav li {
   display: inline;
   margin-left: 5px;
}

/* =========================
   Carousel styles
========================= */

#carousel {
   position: relative;
   display: flex;
   align-items: center;
   justify-content: center;
   width: 100%;
   height: 600px;
   margin-bottom: 30px;
   padding: 0 20px;
   overflow: hidden;
   color: #fff;
}

#carousel picture,
#carousel picture img {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
}

#carousel picture img {
   object-fit: cover;
}

#carousel::after {
   content: "";
   position: absolute;
   z-index: 1;
   inset: 0;
   /* background: rgba(0, 0, 0, 0.4); */
}

#carousel main {
   position: relative;
   z-index: 2;
   width: 100%;
   max-width: 1200px;
}

#carousel h1 {
   font-size: 1.6em;
   color: #fff;
}

#carousel .col-1 {
   background: rgba(0, 0, 0, 0.3);
}

/* =========================
   Button styles
========================= */

header .btns {
   margin-top: 8px;
}

.btns li {
   display: inline;
   margin-left: 5px;
}

.btn {
   padding: 10px;
   border: 1px solid #a28433;
   border-radius: 5px;
   background-color: #a28433;
   font-family: 'Playfair Display', serif;
   text-transform: uppercase;
   color: #333;
   transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
   text-decoration: none;
   background-color: #333;
   color: #fff;
}

.more-btn {
   padding: 10px 15px;
   border: 1px solid #333;
   border-radius: 5px;
   font-size: 0.8em;
   color: #333;
}

.more-btn:hover {
   background-color: #333;
   color: #ccc;
}

/* =========================
   Form styles
========================= */

#signup {
   border-radius: 5px;
   border: solid 1px #ccc;
   padding: 20px;
}

input[type="text"],
input[type="search"],
input[type="password"] {
   width: 100%;
   margin-bottom: 15px;
   padding: 15px;
   border: 1px solid #f0f0f0;
   border-radius: 5px;
   background-color: #f0f0f0;
   font-family: inherit;
   font-size: inherit;
   font-weight: 600;
   color: #333;
   -webkit-appearance: none;
   appearance: none;
}

.required {
   color: red;
}

label {
   font-weight: 600;   
}

::placeholder {
   color: #ccc;
}

/* =========================
   Consent checkbox
========================= */

.consent-checkbox {
  --checkbox-size: 25px;
  --checkbox-bg: #ead7b5;
  --checkbox-hover-bg: #dfc79d;
  --checkbox-tick: #333;
  --focus-color: #725b33;

  position: relative;
  display: grid;
  grid-template-columns: var(--checkbox-size) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 10px 0 20px;
  text-align: left;
}

/* Visually hide the native checkbox while keeping it accessible */
.consent-checkbox__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Label containing only the custom checkbox */
.consent-checkbox__label {
  display: block;
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  cursor: pointer;
  user-select: none;
}

/* Custom checkbox */
.consent-checkbox__checkmark {
  position: relative;
  display: block;
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  background-color: var(--checkbox-bg);
  border: 1px solid transparent;
  box-sizing: border-box;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    outline-color 0.15s ease;
}

/* Hover state */
.consent-checkbox__label:hover .consent-checkbox__checkmark {
  background-color: var(--checkbox-hover-bg);
}

/* Keyboard focus */
.consent-checkbox__input:focus-visible
  + .consent-checkbox__label
  .consent-checkbox__checkmark {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}

/* Checkmark indicator */
.consent-checkbox__checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 8px;
  top: 4px;
  width: 5px;
  height: 11px;
  border: solid var(--checkbox-tick);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* Display tick when checked */
.consent-checkbox__input:checked
  + .consent-checkbox__label
  .consent-checkbox__checkmark::after {
  display: block;
}

/* Consent text */
.consent-checkbox__text {
  min-width: 0;
  font-weight: 400;
  line-height: 1.5;
}

/* Links */
.consent-checkbox__text a {
  color: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.consent-checkbox__text a:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Optional disabled state */
.consent-checkbox__input:disabled
  + .consent-checkbox__label {
  cursor: not-allowed;
  opacity: 0.6;
}

.consent-checkbox__input:disabled
  ~ .consent-checkbox__text {
  opacity: 0.6;
}

/* Optional error styling */
.consent-checkbox--error .consent-checkbox__checkmark {
  border-color: #b42318;
}

/* Reduce animations when requested */
@media (prefers-reduced-motion: reduce) {
  .consent-checkbox__checkmark {
    transition: none;
  }
}

/* =========================
   Password styles
========================= */

.password {
   position: relative;
}

.password button {
   position: absolute;
   top: 13px;
   right: 10px;
   height: 30px;
   border: none;
   background: transparent;
   cursor: pointer;
}

#passwordRequirements {
   margin: 10px 0 20px;
   font-size: 0.8em;
   color: red;
}

#matchMessage {
   font-family: 'Quicksand', sans-serif;
   font-size: 0.8em;
   font-style: normal;
   color: red;
}

/* =========================
   Social styles
========================= */

.social li {
   display: inline-block;
}

.social a {
   display: inline-block;
   width: 35px;
   height: 35px;
   border-radius: 50%;
   background-color: #a28433;
   background-position: center;
   background-size: 30px;
   background-repeat: no-repeat;
}

.social a.facebook {
   background-image: url('/uploads/svg/facebook.svg');
}

.social a.twitter {
   background-image: url('/uploads/svg/twitter.svg');
}

.social a.instagram {
   background-image: url('/uploads/svg/instagram.svg');
}

.social a.linkedin {
   background-image: url('/uploads/svg/linkedin.svg');
}

.social a.youtube {
   background-image: url('/uploads/svg/youtube.svg');
}

.social a.tiktok {
   background-image: url('/uploads/svg/tiktok.svg');
}

.social a.threads {
   background-image: url('/uploads/svg/threads.svg');
}

.social a.pinterest {
   background-image: url('/uploads/svg/pinterest.svg');
}

.social a.google {
   background-image: url('/uploads/svg/google.svg');
}

/* =========================
   Message bar styles
========================= */

#message-bar {
   width: 1200px;
   border-radius: 5px;
   background-color: #ead7b5;
   text-align: center;
   margin: auto;
   padding: 20px;
}

#message-bar p {
   margin-bottom: 0;
}

/* =========================
   Categories styles
========================= */

.categories a {
   border-radius: 50px;
   border: solid 1px #333;
   display: inline-block;
   transition: background-color 0.3s ease, color 0.3s ease, transform 0.5s ease-in-out;
   margin-bottom: 5px;
   padding: 7px 15px;
}

.categories a:hover {
   border: solid 1px #a28433;
   background-color: #a28433;
}

#categories {
   width: 100%;
   padding: 50px 20px 10px;
   background-color: #ead7b5;
   z-index: 1;
}

#categories nav {
   display: flex;
   align-items: center;
   gap: 10px;
   width: 100%;
}

#category-nav {
   flex: 1;
   min-width: 0;
   padding: 10px 20px;
   overflow-x: auto;
   overflow-y: hidden;
   scroll-behavior: auto;
   scrollbar-width: none;
   -webkit-overflow-scrolling: touch;
}

#category-nav::-webkit-scrollbar {
   display: none;
}

#categories ul {
   display: flex;
   align-items: center;
   gap: 10px;
   width: max-content;
   margin: 0 auto;
   padding: 0;
   list-style: none;
}

#categories li {
   flex: 0 0 auto;
}

#categories a {
   display: block;
   padding: 7px 15px;
   border: 1px solid #a28433;
   border-radius: 50px;
   color: #5d4816;
   text-decoration: none;
   white-space: nowrap;
   transition: background-color 0.3s ease, color 0.3s ease, transform 0.5s ease-in-out;
}

#categories a:hover,
#categories a:focus-visible {
   background-color: #a28433;
   color: #333;
}

.category-arrow {
   display: none;
   align-items: center;
   justify-content: center;
   flex: 0 0 auto;
   width: auto;
   height: auto;
   padding: 0;
   border: 0;
   background: transparent;
   color: #a28433;
   font-size: 28px;
   line-height: 1;
   cursor: pointer;
   transition:
      color 0.3s ease,
      opacity 0.3s ease;
}

.category-arrow.visible {
   display: flex;
}

.category-arrow:hover:not(:disabled) {
   color: #5d4816;
}

.category-arrow:focus-visible {
   outline: 2px solid #a28433;
   outline-offset: 2px;
}

.category-arrow:disabled {
   opacity: 0.35;
   cursor: default;
}

#categories.categories-hidden {
   display: none;
}

#categories.site-header {
   position: sticky;
   top: 50px;
   z-index: 900;
   transform: translate3d(0, 0, 0);
   opacity: 1;
   visibility: visible;
   transition:
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.5s ease,
      visibility 0s linear 0s;
   will-change: transform, opacity;
   backface-visibility: hidden;
}

#categories.site-header.header-hidden {
   transform: translate3d(0, -105%, 0);
   opacity: 0;
   visibility: hidden;
   pointer-events: none;
   transition:
      transform 0.3s cubic-bezier(0.4, 0, 1, 1),
      opacity 0.45s ease,
      visibility 0s linear 0.65s;
}

/* =========================
   Featured styles
========================= */

#featured {
   display: flex;
   flex-wrap: wrap;
   width: 100%;
}

.featured img {
   margin-bottom: 10px;
}

/* =========================
   Item styles
========================= */

.details .btn {
   display: inline-block;
   margin-top: 20px;
}

.item {
   font-size: 1.4em;
   font-weight: 600;
}

.price {
   font-size: 1.4em;
   font-weight: 600;
}

.story {
   padding: 10px;
   border-radius: 5px;
   background-color: #ead7b5;
}

/* =========================
   Footer styles
========================= */

footer {
   margin-top: 20px;
   background-color: #ead7b5;
}

/* =========================
   Seller styles
========================= */

.seller {
    display: inline-block;
    padding-right: 20px;
    background: url('/uploads/svg/verified.svg') no-repeat right center / 17px 17px;
}

/* =========================
   Responsive styles
========================= */

@media (max-width: 768px) {

   /* =========================
      Header styles
   ========================= */

   body {
      padding-top: 80px;
   }

   header {
      min-height: 270px;
   }

   /* =========================
      Button styles
   ========================= */

   .btn {
      width: 100%;
   }

   /* =========================
      Categories styles
   ========================= */

   #categories {
      padding-top: 200px;
   }

   #categories.site-header {
      top: 80px;
   }

   #categories nav {
      gap: 10px;
   }

   #category-nav {
      padding: 10px 0;
   }

   #categories ul {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: calc((100% - 20px) / 3);
      gap: 10px;
      width: 100%;
      margin: 0;
   }

   #categories li {
      width: 100%;
      min-width: 0;
   }

   #categories li a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-width: 0;
      box-sizing: border-box;
      padding: 7px 5px;
      overflow: hidden;
      text-align: center;
      text-overflow: ellipsis;
      white-space: nowrap;
   }

   .category-arrow {
      flex: 0 0 auto;
      width: auto;
      height: auto;
      padding: 0;
      font-size: 24px;
   }
}

@media (prefers-reduced-motion: reduce) {
   #categories.site-header {
      transition: none;
   }

   #categories.site-header.header-hidden {
      transition: none;
   }
}