
/* CRAFTLUX CREATIVE STUDIO - COMPLETE STYLES */

:root {
  --orange: #ed562b;
  --blue: #6fc3d4;
  --ink: #171820;
  --cream: #fffaf6;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px max(5vw, 22px);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #eee;
}

.brand { flex-shrink: 0; }

.brand img {
  display: block;
  width: 160px;
  height: 75px;
  object-fit: contain;
  object-position: left center;
}

.header nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}

.header nav a { white-space: nowrap; }

.nav-cta,
.btn.primary {
  background: var(--orange);
  color: #fff;
}

.nav-cta {
  padding: 13px 20px;
  border-radius: 30px;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 10px;
  min-width: 48px;
  min-height: 48px;
  font-size: 28px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

/* QUICK NAV - HIDDEN ON DESKTOP */

.mobile-quick-nav { display: none; }

/* HERO */

.hero {
  background:
    linear-gradient(
      95deg,
      rgba(16,18,24,.95) 0%,
      rgba(16,18,24,.88) 43%,
      rgba(16,18,24,.14) 100%
    ),
    url("../images/showcase.webp") center / cover;

  color: #fff;
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  padding: 70px 6vw;
  overflow: hidden;
}

.hero-inner {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--orange);
  text-transform: uppercase;
}

.hero .eyebrow { color: var(--blue); }

h1 {
  font-size: clamp(50px,7vw,100px);
  line-height: 1.02;
  letter-spacing: -4px;
  margin: 24px 0;
}

h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-inner > p:not(.eyebrow) {
  font-size: 19px;
  line-height: 1.7;
  color: #d9d9e1;
  max-width: 620px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  border: 0;
  border-radius: 32px;
  padding: 16px 25px;
  display: inline-block;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
}

.btn.outline {
  border: 1px solid #aaa;
  color: #fff;
}

.hero-art {
  height: 450px;
  position: relative;
  display: grid;
  place-items: center;
  opacity: .12;
}

.orbit {
  position: absolute;
  border: 28px solid var(--orange);
  width: 350px;
  height: 350px;
  border-radius: 46% 54% 58% 42%;
  transform: rotate(25deg);
}

.orbit2 {
  border-color: var(--blue);
  width: 275px;
  height: 275px;
  transform: rotate(-35deg);
  border-width: 18px;
}

.art-center {
  position: relative;
  z-index: 1;
  font-weight: 900;
  font-size: clamp(40px,5vw,74px);
  letter-spacing: -4px;
  transform: rotate(-8deg);
  text-shadow: 5px 6px 0 #111;
}

.art-center span { color: var(--orange); }

.art-center small {
  display: block;
  font-size: 13px;
  letter-spacing: 3px;
  transform: rotate(8deg);
  text-align: center;
  color: #fff;
}

/* GENERAL SECTIONS */

.section { padding: 95px max(6vw,24px); }
.section-heading { max-width: 720px; }

h2 {
  font-size: clamp(34px,4.4vw,60px);
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 15px 0 20px;
}

h2 span { color: var(--orange); }

.section-heading > p:last-child,
.about p,
.methods > p:last-child,
.contact p {
  line-height: 1.7;
  color: #62636c;
}

/* SERVICES */

.cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
  margin-top: 38px;
}

.service-card {
  border: 1px solid #e8e7e7;
  background: #fff;
  border-radius: 22px;
  padding: 30px;
  min-height: 270px;
  transition: transform .2s, box-shadow .2s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px #17182012;
}

.card-icon {
  display: grid;
  place-items: center;
  background: #fff0e8;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  font-size: 30px;
}

.service-card h3 { font-size: 22px; }

.service-card p {
  color: #686873;
  line-height: 1.6;
}

.service-card a {
  font-weight: 800;
  color: var(--orange);
}

/* ABOUT */

.about {
  background: #fff5ee;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about strong { color: var(--orange); }

/* CUSTOMIZATION */

.methods { text-align: center; }

.methods h2 {
  max-width: 750px;
  margin: 20px auto;
}

.chips {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 35px auto;
}

.chips span {
  background: #dff6fa;
  padding: 16px 22px;
  border-radius: 50px;
  font-weight: 800;
}

/* PROCESS */

.process { background: #f7f8fa; }

.steps {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 18px;
  margin-top: 45px;
}

.steps > div {
  background: #fff;
  border-radius: 18px;
  padding: 23px;
}

.steps b {
  font-size: 34px;
  color: var(--orange);
}

.steps p {
  line-height: 1.5;
  color: #666;
}

/* CONTACT */

.contact {
  background: var(--ink);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.contact p { color: #d0d0d8; }
.contact a { color: var(--blue); }

form {
  background: #fff;
  color: var(--ink);
  padding: 30px;
  border-radius: 24px;
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d4d5da;
  border-radius: 10px;
  padding: 13px;
  font: inherit;
}

textarea { resize: vertical; }

.form-note {
  font-size: 12px !important;
  color: #666 !important;
  margin: 0;
}

/* FOOTER */

footer {
  text-align: center;
  padding: 45px 20px;
  background: #fff;
}

footer img {
  width: 170px;
  height: 100px;
  object-fit: contain;
}

footer small { color: #777; }

/* CATALOG */

.cart-nav {
  border: 1px solid var(--orange);
  border-radius: 25px;
  background: #fff;
  color: var(--ink);
  padding: 11px 14px;
  font-weight: 800;
  cursor: pointer;
}

.cart-nav span {
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  padding: 4px 8px;
  margin-left: 4px;
}

.catalog { background: #f9fafb; }

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.filter {
  border: 1px solid #e2e2e2;
  background: #fff;
  border-radius: 24px;
  padding: 11px 17px;
  cursor: pointer;
  font-weight: 700;
}

.filter.active {
  background: var(--ink);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 22px;
  overflow: hidden;
  min-width: 0;
  transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px #0001;
}

.product-art {
  height: 240px;
  background: #f8f9fa;
  cursor: zoom-in;
  position: relative;
  padding: 8px;
  overflow: hidden;
}

.product-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-art::after {
  content: "🔍 View full image";
  position: absolute;
  bottom: 9px;
  right: 9px;
  background: rgba(17,24,39,.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 16px;
}

.product-art:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -4px;
}

.product-info { padding: 22px; }

.product-info h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.product-info p {
  font-size: 14px;
  line-height: 1.5;
  color: #686873;
  min-height: 64px;
}

.product-info label {
  font-size: 12px;
  margin: 12px 0;
}

.product-info input { max-width: 110px; }

.add-btn {
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 25px;
  padding: 13px 15px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
}

.catalog-note {
  font-size: 13px;
  color: #686873;
}

/* QUOTE SUMMARY */

.quote-summary {
  background: #f0f9fb;
  padding: 12px;
  border-radius: 12px;
}

.quote-summary:empty { display: none; }

.quote-summary p {
  color: #333 !important;
  font-size: 13px;
}

/* CART DRAWER */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: #0009;
  z-index: 110;
}

.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100dvh;
  width: min(440px,100%);
  z-index: 111;
  background: #fff;
  box-shadow: -12px 0 30px #0003;
  padding: 26px;
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform .25s;
}

.cart-drawer.open { transform: translateX(0); }
.drawer-open { overflow: hidden; }

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.drawer-header h2 {
  font-size: 30px;
  margin: 0;
}

.drawer-header button {
  border: 0;
  background: #eee;
  border-radius: 50%;
  padding: 12px;
  cursor: pointer;
}

.cart-drawer > p {
  color: #666;
  line-height: 1.5;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) 90px auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #eee;
  padding: 16px 0;
}

.cart-item label { font-size: 12px; }
.cart-item input { padding: 8px; }

.cart-item button,
.clear-cart {
  border: 0;
  background: transparent;
  color: #ba421d;
  cursor: pointer;
  font-weight: 700;
}

.drawer-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

/* TOAST */

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%,20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  z-index: 140;
  transition: .2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%,0);
}

/* IMAGE VIEWER */

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(7,12,20,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: auto;
}

.viewer-open { overflow: hidden; }

.viewer-panel {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  max-width: min(1000px,96vw);
  width: 100%;
  max-height: 94dvh;
  overflow: auto;
  text-align: center;
  box-shadow: 0 25px 70px #0007;
}

.viewer-panel img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70dvh;
  object-fit: contain;
  border-radius: 12px;
  background: #f8f9fa;
}

.viewer-panel h2 {
  margin: 12px 0 4px;
  font-size: 23px;
}

.viewer-panel p { margin: 5px 0; }

.viewer-hint {
  font-size: 12px;
  color: #666;
}

.viewer-close {
  position: sticky;
  top: 0;
  float: right;
  margin-bottom: -48px;
  z-index: 2;
  background: #111827;
  color: #fff;
  border: 0;
  border-radius: 50%;
  height: 42px;
  width: 42px;
  cursor: pointer;
  font-size: 18px;
}

/* ADMIN STYLES */

.admin-layout {
  max-width: 1150px;
  margin: 40px auto;
  padding: 0 22px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.admin-note {
  background: #fff5eb;
  padding: 18px;
  border-radius: 14px;
  line-height: 1.5;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
  background: #f8f9fa;
  border-radius: 20px;
  padding: 24px;
  margin: 25px 0;
}

.admin-form .wide { grid-column: 1/-1; }
.admin-form button { justify-self: start; }

.admin-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}

.admin-item {
  display: flex;
  gap: 15px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 15px;
  align-items: center;
}

.admin-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 9px;
}

.admin-item > div { flex: 1; }

.admin-item button {
  padding: 8px;
  margin: 5px 5px 0 0;
  cursor: pointer;
}

.admin-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.admin-controls button {
  cursor: pointer;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
}

/* TABLETS */

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media (max-width: 900px) {
  .cards,
  .steps {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .hero { grid-template-columns: 1fr; }
  .hero-art { height: 290px; }

  .orbit {
    width: 250px;
    height: 250px;
  }

  .orbit2 {
    width: 190px;
    height: 190px;
  }

  .about,
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .product-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

/* MOBILE MENU AND QUICK NAVIGATION */

@media (max-width: 1000px) {
  .header {
    z-index: 100;
    gap: 12px;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
  }

  .header #nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100dvh - 75px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    padding: 12px max(5vw,18px) 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 15px 25px #0002;
    border-top: 1px solid #eee;
  }

  .header #nav.open { display: flex; }

  .header #nav a,
  .header #nav .cart-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    width: 100%;
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    text-align: left;
    white-space: normal;
    border-radius: 0;
  }

  .header #nav .nav-cta {
    justify-content: center;
    border-radius: 25px;
    margin-top: 12px;
    border: 0;
    color: #fff;
  }

  .header #nav .cart-nav {
    background: #fff;
    color: var(--ink);
    border-left: 0;
    border-right: 0;
    border-top: 0;
  }

  .header #nav .cart-nav span {
    margin-left: auto;
  }

  /* REAL CLICKABLE QUICK NAVIGATION */

  .mobile-quick-nav {
    display: flex;
    position: sticky;
    top: 95px;
    z-index: 95;
    width: 100%;
    gap: 9px;
    padding: 10px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 3px 12px #0001;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-quick-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-quick-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 24px;
    background: #f4f5f7;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    touch-action: manipulation;
  }

  .mobile-quick-nav a:hover,
  .mobile-quick-nav a:focus-visible {
    background: var(--orange);
    color: #fff;
  }

  .menu-toggle:focus-visible,
  .header nav a:focus-visible,
  .header nav button:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
  }

  html { scroll-padding-top: 155px; }
}

/* SMALL PHONES */

@media (max-width: 600px) {
  .header { padding: 7px 18px; }

  .brand img {
    width: 125px;
    height: 60px;
  }

  .header #nav {
    max-height: calc(100dvh - 74px);
  }

  .mobile-quick-nav {
    top: 74px;
    padding: 10px 12px;
    gap: 8px;
  }

  .mobile-quick-nav a {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 12px;
  }

  html { scroll-padding-top: 140px; }

  /* REMOVE THE OLD IMAGE WITH FAKE MENU */

  .hero {
    padding: 48px 22px 32px;
    min-height: auto;
    grid-template-columns: minmax(0,1fr);
    background-image: linear-gradient(
      135deg,
      #171820 0%,
      #242735 55%,
      #343044 100%
    );
    background-color: #171820;
    background-position: center;
    background-size: cover;
  }

  .hero h1 {
    font-size: clamp(42px,11vw,64px);
    letter-spacing: -2px;
  }

  .hero-inner > p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-art { display: none; }

  .actions { gap: 10px; }

  .actions .btn {
    width: 100%;
    text-align: center;
  }

  .section { padding: 58px 20px; }

  .section h2 {
    font-size: clamp(30px,8vw,42px);
    letter-spacing: -1px;
  }

  .cards,
  .steps,
  .product-grid,
  .admin-form,
  .admin-list {
    grid-template-columns: minmax(0,1fr);
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .filters .filter { flex: 0 0 auto; }

  .contact { gap: 25px; }
  form { padding: 20px; }

  .cart-item {
    grid-template-columns: minmax(0,1fr) 75px auto;
  }

  .cart-drawer {
    padding: 20px;
    max-width: 100vw;
  }

  .product-art { height: 260px; }
  .viewer-panel { padding: 10px; }
  .viewer-panel img { max-height: 66dvh; }
}
