/* Collection 02 — extends theme.css */

/* ── Navigation ─────────────────────────────────────────────────────────── */
.coll-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-light);
}

.coll-nav .nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--navy);
  text-decoration: none;
}

.nav-center {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
}

.nav-right .nav-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.coll-hero {
  background: var(--navy);
  padding: 100px 48px 80px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.coll-hero-inner {
  max-width: 640px;
}

.coll-overline {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.coll-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 32px;
}

.coll-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--grey-mid);
  font-weight: 300;
  line-height: 1.6;
}

.coll-hero-rule {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 48px 0 32px;
  max-width: 480px;
}

.coll-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.coll-meta-item {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.coll-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--grey-mid);
  opacity: 0.5;
}

/* ── Product Grid ─────────────────────────────────────────────────────────── */
.coll-grid-section {
  padding: 80px 48px 120px;
  background: var(--cream);
}

.coll-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--grey-light);
}

.coll-grid-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.05em;
}

.coll-grid-count {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.coll-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

/* ── Product Card ─────────────────────────────────────────────────────────── */
.coll-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.coll-card-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background: var(--cream-dark);
}

.coll-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.coll-card:hover .coll-card-image img,
.coll-card:hover .coll-placeholder {
  transform: scale(1.03);
}

.coll-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 42, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.coll-card:hover .coll-card-overlay {
  opacity: 1;
}

.coll-card-cta {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--navy);
  padding: 12px 28px;
  border: 1px solid rgba(255,255,255,0.2);
}

.coll-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.coll-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.coll-card-prices {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.coll-card-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
}

.coll-card-sizes {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--grey-mid);
  text-transform: uppercase;
}

/* ── Editorial Placeholder ────────────────────────────────────────────────── */
.coll-placeholder {
  width: 100%;
  height: 100%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s ease;
}

.ph-inner {
  width: 55%;
  height: 70%;
  position: relative;
  background: var(--cream);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.ph-stripe-1 {
  position: absolute;
  left: 30%;
  top: 0;
  height: 100%;
  width: 10%;
  background: var(--navy);
  opacity: 0.85;
}

.ph-stripe-2 {
  position: absolute;
  left: 40%;
  top: 0;
  height: 100%;
  width: 20%;
  background: var(--red);
  opacity: 0.8;
}

.ph-circle {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  aspect-ratio: 1;
  border: 2px solid var(--navy);
  opacity: 0.15;
  border-radius: 50%;
}

.ph-number {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--navy);
  opacity: 0.4;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ── Editorial Description ────────────────────────────────────────────────── */
.editorial-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.75;
  color: var(--navy);
  margin-bottom: 32px;
  border-top: 1px solid var(--grey-light);
  padding-top: 24px;
}

.editorial-desc p {
  margin: 0 0 1.2em;
  padding: 0;
}

.editorial-desc p:last-child {
  margin-bottom: 0;
}

/* ── Detail Drawer ────────────────────────────────────────────────────────── */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.5);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.detail-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(640px, 100vw);
  background: var(--cream);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.detail-drawer.open {
  transform: translateX(0);
}

.detail-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--grey-light);
  font-size: 1.2rem;
  color: var(--navy);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.detail-close:hover {
  background: var(--cream-dark);
}

.detail-inner {
  padding: 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
}

.detail-visuals {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--cream-dark);
  overflow: hidden;
}

.detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-placeholder {
  width: 100%;
  height: 100%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-content {
  padding: 40px 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-collection-tag {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.detail-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.1;
}

.detail-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}

.detail-sizes-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 16px;
}

.detail-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.size-btn {
  padding: 10px 20px;
  border: 1px solid var(--grey-light);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s;
}

.size-btn:hover:not(:disabled):not(.selected) {
  border-color: var(--navy);
  background: var(--cream-dark);
}

.size-btn.selected {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.size-btn.sold-out,
.size-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.detail-selected {
  font-size: 0.8rem;
  color: var(--grey-mid);
  margin-bottom: 16px;
}

.detail-add-btn {
  background: var(--navy);
  color: var(--cream);
  border: none;
  padding: 16px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 32px;
}

.detail-add-btn:hover:not(:disabled) {
  background: var(--navy-mid);
}

.detail-add-btn:disabled {
  background: var(--grey-light);
  color: var(--grey-mid);
  cursor: not-allowed;
}

.detail-desc {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--grey-mid);
  font-weight: 300;
  margin-bottom: 32px;
  border-top: 1px solid var(--grey-light);
  padding-top: 24px;
}

.detail-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-feat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-light);
}

.feat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.feat-value {
  font-size: 0.8rem;
  color: var(--navy);
}

/* ── Cart Sidebar ─────────────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.5);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  background: var(--cream);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,0.1);
}

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

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  border-bottom: 1px solid var(--grey-light);
}

.cart-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--navy);
}

.cart-close {
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--grey-light);
  font-size: 1.1rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cart-close:hover {
  background: var(--cream-dark);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
}

.cart-empty {
  font-size: 0.85rem;
  color: var(--grey-mid);
  line-height: 1.7;
  text-align: center;
  padding-top: 40px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--grey-light);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--navy);
}

.cart-item-meta {
  font-size: 0.75rem;
  color: var(--grey-mid);
  letter-spacing: 0.05em;
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--grey-mid);
  cursor: pointer;
  transition: color 0.2s;
}

.cart-item-remove:hover {
  color: var(--navy);
}

.cart-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--grey-light);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.cart-total span:first-child {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

#cart-total-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--navy);
}

.cart-checkout-btn {
  width: 100%;
  background: var(--navy);
  color: var(--cream);
  border: none;
  padding: 16px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.cart-checkout-btn:hover:not(:disabled) {
  background: var(--navy-mid);
}

.cart-checkout-btn:disabled {
  background: var(--grey-light);
  color: var(--grey-mid);
  cursor: not-allowed;
}

/* ── Global Cart Button ────────────────────────────────────────────────────── */
.cart-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--navy);
  color: var(--cream);
  border: none;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  z-index: 40;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: transform 0.2s, background 0.2s;
}

.cart-btn:hover {
  transform: translateY(-2px);
  background: var(--navy-mid);
}

.cart-btn-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cart-btn-count {
  background: var(--red);
  color: white;
  font-size: 0.7rem;
  font-weight: 500;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .coll-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .coll-nav { padding: 20px 24px; }
  .coll-hero { padding: 60px 24px 48px; }
  .coll-grid-section { padding: 60px 24px 80px; }
  .coll-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nav-center { display: none; }
  .nav-right .nav-tagline { display: none; }

  .detail-content { padding: 28px 24px 48px; }
  .detail-name { font-size: 1.8rem; }
  .detail-price { font-size: 1.5rem; }

  .cart-btn { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .coll-title { font-size: 3rem; }
}

/* Newsletter Section */
.newsletter-section {
  background-color: var(--navy, #1d2b4a);
  padding: 100px 24px;
  text-align: center;
}

.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #f6c65b);
  margin-bottom: 20px;
}

.newsletter-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--cream, #f9f4e8);
  line-height: 1.1;
  margin: 0 0 16px;
}

.newsletter-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(249, 244, 232, 0.7);
  line-height: 1.6;
  margin: 0 0 40px;
}

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

.newsletter-fields {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 480px;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--navy, #1d2b4a);
  background: var(--cream, #f9f4e8);
  border: 2px solid var(--cream, #f9f4e8);
  outline: none;
  border-right: none;
  transition: border-color 0.2s;
}

.newsletter-input::placeholder {
  color: rgba(29, 43, 74, 0.45);
}

.newsletter-input:focus {
  border-color: var(--accent, #f6c65b);
}

.newsletter-btn {
  padding: 14px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy, #1d2b4a);
  background: var(--cream, #f9f4e8);
  border: 2px solid var(--cream, #f9f4e8);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.newsletter-btn:hover:not(:disabled) {
  background: var(--accent, #f6c65b);
  border-color: var(--accent, #f6c65b);
}

.newsletter-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter-msg {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  min-height: 20px;
}

.newsletter-msg.success {
  color: var(--accent, #f6c65b);
}

.newsletter-msg.error {
  color: #e57373;
}

.newsletter-fine {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: rgba(249, 244, 232, 0.4);
  margin-top: 4px;
}

.newsletter-form.subscribed .newsletter-fields {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 600px) {
  .newsletter-section { padding: 72px 24px; }
  .newsletter-headline { font-size: 2.6rem; }
  .newsletter-fields { flex-direction: column; }
  .newsletter-input { border-right: 2px solid var(--cream, #f9f4e8); border-bottom: none; }
  .newsletter-btn { border-top: none; }
}