/*
Theme Name: Collective Division
Theme URI: https://collectivedivision.com
Author: Collective Division
Author URI: https://collectivedivision.com
Description: A minimalist custom theme for Collective Division fashion brand with WooCommerce support
Version: 1.1.6
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: collective-division
Tags: fashion, woocommerce, minimalist, custom

This theme, like WordPress, is licensed under the GPL.
*/

:root {
  --bg: #121212;
  --fg: #f6f1eb;
  --muted: rgba(246, 241, 235, 0.75);
  --accent: #f0c674;
  --card: #1d1d1d;
  --border: rgba(246, 241, 235, 0.1);
  font-family: "Georgia", serif;
}

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

body {
  min-height: 100vh;
  background: #000;
  color: var(--fg);
  font-family: "Georgia", serif;
  line-height: 1.6;
}

.background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.9);
}

.overlay-title,
.overlay-menu {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  color: var(--fg);
}

.overlay-title {
  top: 32px;
}

.overlay-menu {
  bottom: 32px;
}

.menu-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.menu-link:hover {
  color: #cfcfcf;
}

.products-body.light {
  background: rgb(255, 255, 255);
  color: #000;
  font-family: "Georgia", serif;
}

.products-page {
  background: rgb(255, 255, 255);
  color: #000;
}

/* Single product page */
body.single-product {
  background: rgb(255, 255, 255) !important;
  color: #000 !important;
}

body.single-product .site-main {
  background: rgb(255, 255, 255);
  color: #000;
}

.products-header.yeezy {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 28px clamp(20px, 6vw, 120px) 28px 5%;
  letter-spacing: 0.35rem;
  text-transform: uppercase;
  column-gap: 24px;
}

.products-header.yeezy .brand {
  font-size: 0.95rem;
  text-decoration: none;
  color: inherit;
}

.products-nav {
  justify-self: center;
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 60px);
  letter-spacing: 0.15rem;
  font-size: 0.85rem;
}

.nav-link {
  text-decoration: none;
  color: inherit;
  font-weight: 300;
}

.nav-link:hover {
  font-weight: 600;
}

.icon,
.cart {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  color: inherit;
}

.bag-icon {
  width: 18px;
  height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 4px 4px 6px 6px;
  display: inline-block;
  position: relative;
}

.bag-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 12px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  transform: translateX(-50%);
}

.cart {
  justify-self: flex-end;
  margin-right: -8px;
  position: relative;
}

.cart-count {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
}

.products-page.yeezy {
  padding: 40px clamp(20px, 10vw, 220px) 120px;
}

.product-sheet.tight {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: clamp(40px, 6vw, 120px);
  margin: 0;
  padding: 0;
  justify-items: center;
}

.product {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.product-link:focus-visible {
  outline: 1px solid #ccc;
  outline-offset: 6px;
}

.product img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
}

.product-caption {
  font-size: 0.85rem;
  letter-spacing: 0.1rem;
  margin: 4px 0 0;
  font-weight: 300;
}

@media (max-width: 600px) {
  .products-header.yeezy {
    grid-template-columns: auto 1fr auto;
    letter-spacing: 0.2rem;
  }

  .product-sheet.tight {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

.product-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(255, 255, 255);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.product-modal[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
}

.modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 700px;
  padding: clamp(24px, 5vw, 48px);
}

.modal-stage {
  width: min(540px, 70vw);
}

.modal-img {
  width: 100%;
  max-height: 60vh;
  height: auto;
  object-fit: contain;
}

.modal-meta {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #cfcfcf;
  cursor: pointer;
}

.modal-dot.is-active {
  background: #000;
}

.modal-name {
  letter-spacing: 0.25rem;
}

.modal-price {
  letter-spacing: 0.2rem;
}

.modal-plus {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.modal-plus:hover {
  transform: scale(1.2);
}

.modal-close {
  position: absolute;
  top: 24px;
  left: 24px;
  border: none;
  background: transparent;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: clamp(2rem, 4vw, 3rem);
  cursor: pointer;
  color: #000;
  z-index: 3;
  padding: 20px;
  transition: opacity 0.2s ease;
}

.modal-nav.prev {
  left: clamp(10px, 5vw, 80px);
}

.modal-nav.next {
  right: clamp(10px, 5vw, 80px);
}

.modal-open {
  overflow: hidden;
}

.woocommerce-message {
  background: #f0f0f0;
  padding: 16px 24px;
  margin: 20px 0;
  border-left: 3px solid #000;
  letter-spacing: 0.1rem;
  font-size: 0.9rem;
}

.woocommerce .price {
  letter-spacing: 0.15rem;
  font-size: 1rem;
}

body.woocommerce-cart,
body.woocommerce-checkout {
  background: rgb(255, 255, 255);
  color: #000;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.woocommerce-breadcrumb {
  display: none !important;
}

.woocommerce-result-count,
.woocommerce-ordering {
  display: none !important;
}

.woocommerce .page-title {
  display: none !important;
}

.woocommerce nav.woocommerce-pagination {
  display: none !important;
}

.woocommerce ul.products {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-message {
  display: none !important;
}

.single-product .woocommerce-breadcrumb,
.single-product .posted_in,
.single-product .tagged_as {
  display: none !important;
}

.woocommerce div.product {
  background: #000;
  color: #fff;
  min-height: 100vh;
  padding: 60px 20px;
}

.woocommerce-page .woocommerce-cart-form__contents,
.woocommerce-page .shop_table {
  border: none !important;
}

.woocommerce .checkout-button {
  background: #000 !important;
  color: #fff !important;
  padding: 16px 48px !important;
  letter-spacing: 0.2rem !important;
  text-transform: uppercase !important;
  border: none !important;
  font-family: Georgia, serif !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  transition: background 0.3s ease !important;
}

.woocommerce .checkout-button:hover {
  background: #333 !important;
}

.woocommerce-page #primary {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.woocommerce .quantity input.qty {
  width: 60px;
  padding: 8px;
  text-align: center;
  border: 1px solid #ddd;
  font-family: Georgia, serif;
}

.site-footer {
  padding: 24px 20px;
  text-align: center;
  background: rgb(255, 255, 255);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
}

.footer-link {
  text-decoration: none;
  color: #000;
  font-size: 0.85rem;
  letter-spacing: 0.1rem;
  transition: font-weight 0.2s ease, font-size 0.2s ease;
}

.nav-link:hover {
  font-weight: 600;
  font-size: 0.88rem;
}

.nav-link.nav-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}

/* Disable product links in WooCommerce block cart */
.wc-block-cart-items__row .wc-block-components-product-name a,
.wc-block-cart-item__image a,
.wc-block-components-product-image a,
.wc-block-components-product-name a,
.wc-block-cart-item__wrap a {
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
  color: inherit !important;
}

.wc-block-cart-items__row .wc-block-components-product-name a:hover,
.wc-block-cart-item__image a:hover,
.wc-block-components-product-image a:hover,
.wc-block-components-product-name a:hover,
.wc-block-cart-item__wrap a:hover {
  color: inherit !important;
  text-decoration: none !important;
}

/* Additional cart link blocking */
.wp-block-woocommerce-cart a[href*="product"],
.wc-block-cart a[href*="product"] {
  pointer-events: none !important;
  cursor: default !important;
}

/* Disable product links on order received / thank you page */
.woocommerce-order-details .woocommerce-table__product-name a,
.woocommerce-thankyou-order-details .woocommerce-table__product-name a,
.woocommerce-order-received .woocommerce-table__product-name a,
body.woocommerce-order-received a[href*="product"] {
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
  color: inherit !important;
}