/* components.css - Unified Navbar, Cart Drawer, Auth Modal, and Footer Styles for Ratnawali */

/* ── NAVBAR STYLING ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 12px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(42, 20, 10, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--ink, #2a140a);
  border-radius: 50%;
  width: 78px;
  height: 78px;
  padding: 8px;
  border: 2px solid var(--orange-1, #faae33);
  box-shadow: 0 4px 15px rgba(42, 20, 10, 0.15);
  transition: transform 0.3s ease, background 0.3s;
  flex-shrink: 0;
}

.logo:hover {
  transform: scale(1.05);
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--ink-soft, rgba(42, 20, 10, 0.7));
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
  letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink, #2a140a);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.7, 0, 0.2, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-right-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-cta {
  background: var(--ink, #2a140a);
  color: #fafaf7;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 20px -8px rgba(42, 20, 10, 0.3),
    0 4px 8px -2px rgba(42, 20, 10, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1), background 0.3s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--ink-soft, rgba(42, 20, 10, 0.8));
}

.nav-pill-cart {
  background: var(--ink, #2a140a);
  color: #fafaf7;
  border: none;
}

.cart-icon-svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.cart-badge {
  background: var(--orange-1, #faae33);
  color: var(--ink, #2a140a);
  font-size: 11px;
  font-weight: 800;
  border-radius: 50px;
  padding: 2px 7px;
  margin-left: 2px;
}

.nav-user-container {
  position: relative;
}

.nav-pill-login {
  background: transparent !important;
  border: 2px solid var(--ink, #2a140a) !important;
  color: var(--ink, #2a140a) !important;
  box-shadow: none !important;
}

.nav-pill-login:hover {
  background: rgba(42, 20, 10, 0.08) !important;
}

.login-icon-svg {
  width: 14px;
  height: 14px;
  stroke: var(--ink, #2a140a);
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  background: var(--white, #ffffff);
  border: 2px solid var(--ink, #2a140a);
  border-radius: 12px;
  width: 200px;
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(42, 20, 10, 0.15);
  z-index: 2000;
}

.account-dropdown.active {
  display: flex;
}

.account-dropdown-header {
  padding: 8px;
  border-bottom: 1.5px solid rgba(42, 20, 10, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-dropdown-email {
  font-size: 12px;
  color: var(--ink, #2a140a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.account-dropdown-role {
  font-size: 10px;
  color: var(--ink-soft, rgba(42, 20, 10, 0.7));
  text-transform: uppercase;
  font-weight: 750;
  letter-spacing: 0.5px;
}

.account-dropdown-item {
  background: transparent;
  border: none;
  color: var(--ink, #2a140a);
  padding: 8px;
  text-align: left;
  font-size: 12.5px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-weight: 700;
  transition: background 0.3s;
}

.account-dropdown-item:hover {
  background: rgba(42, 20, 10, 0.08);
  color: var(--ink, #2a140a);
}

/* HAMBURGER MENU & RESPONSIVE NAV */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.nav-hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--ink, #2a140a);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-only {
  display: none;
}

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

@media (max-width: 750px) {
  .nav {
    padding: 8px 20px;
    position: relative;
    min-height: 76px;
  }
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    padding: 6px;
  }
  .nav-hamburger {
    display: flex;
    margin-left: auto;
  }
  .nav-right-container {
    display: none !important;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 249, 237, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(42, 20, 10, 0.08);
    padding: 24px 24px 28px;
    gap: 18px;
    align-items: center;
    text-align: center;
    box-shadow: 0 15px 30px rgba(42, 20, 10, 0.1);
    z-index: 49;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 260px;
    padding-top: 10px;
    border-top: 1px solid rgba(42, 20, 10, 0.1);
  }
  .mobile-nav-actions .nav-cta {
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 12px 20px;
  }
  .mobile-only {
    display: block;
  }
  .nav-contact-btn {
    display: none !important;
  }
}

/* ── CART DRAWER MODAL (GOLD DESIGN) ── */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 20, 10, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--gold, #ffb633);
  color: var(--brown-deep, #310F03);
  z-index: 3100;
  box-shadow: -10px 0 40px rgba(42, 20, 10, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 3px solid var(--brown-deep, #310F03);
}

.cart-drawer-overlay.active .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 2px solid var(--brown-deep, #310F03);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cart-close-btn {
  background: var(--brown-deep, #310F03);
  border: none;
  color: var(--gold, #ffb633);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.3s, background-color 0.3s;
}

.cart-close-btn:hover {
  background: #1f0802;
  transform: rotate(90deg);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-bottom: 2px solid rgba(42, 20, 10, 0.15);
  position: relative;
  background: var(--white, #ffffff);
  border: 2px solid var(--brown-deep, #310F03);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(42, 20, 10, 0.08);
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line, #e5e5e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--brown-deep, #310F03);
}

.cart-item-meta {
  font-size: 0.75rem;
  color: rgba(42, 20, 10, 0.7);
  margin-bottom: 0.5rem;
}

.cart-item-price {
  font-weight: 800;
  color: var(--brown-deep, #310F03);
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: rgba(42, 20, 10, 0.5);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  padding: 0;
  text-decoration: underline;
}

.cart-item-remove:hover {
  color: #e63946;
}

.cart-summary {
  padding: 1.5rem;
  border-top: 2px solid var(--brown-deep, #310F03);
  background: var(--cream, #fff9ed);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
}

.summary-row.total {
  font-size: 1.1rem;
  font-weight: 800;
  border-top: 1px solid rgba(42, 20, 10, 0.15);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  background: var(--brown-deep, #310F03);
  color: var(--gold, #ffb633);
  border: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-top: 0.5rem;
  box-shadow: 0 10px 20px rgba(42, 20, 10, 0.2);
  transition: background 0.3s, transform 0.2s;
}

.checkout-btn:hover {
  background: #1f0802;
  transform: translateY(-2px);
}

/* ── FOOTER STYLING ── */
footer {
  background: var(--ink, #2a140a);
  padding: 5rem 3rem 2rem;
  border-top: 3px solid var(--ink, #2a140a);
  color: #FFF9ED;
  position: relative;
  z-index: 2;
}

.ft-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.ft-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: .82rem;
  line-height: 1.85;
  max-width: 280px;
  margin-top: 15px;
}

.ft-col h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--orange-1, #faae33);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.ft-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ft-col ul li {
  margin-bottom: 0.6rem;
}

.ft-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.ft-col ul li a:hover {
  color: var(--orange-1, #faae33);
}

.ft-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 750px) {
  .ft-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ft-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* ── CUSTOMIZE ORDER MODAL ── */
.customize-modal {
  background: var(--white, #ffffff);
  border: 3px solid var(--brown-deep, #2a140a);
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 20px 60px rgba(42, 20, 10, 0.25);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid rgba(42, 20, 10, 0.15);
}

.modal-header h3 {
  font-size: 1.3rem;
  color: var(--brown-deep, #2a140a);
  font-weight: 800;
  text-transform: uppercase;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-prod-info {
  display: flex;
  gap: 16px;
  align-items: center;
}

.modal-prod-img-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF5E0, #FFE0A3);
  flex-shrink: 0;
  border: 1px solid var(--brown-deep, #2a140a);
}

.modal-prod-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-prod-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-prod-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--brown-deep, #2a140a);
  text-transform: uppercase;
}

.modal-prod-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--brown-deep, #2a140a);
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.size-options {
  display: flex;
  gap: 0.75rem;
}

.size-btn {
  background: var(--white, #ffffff);
  border: 2px solid var(--brown-deep, #2a140a);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  color: var(--brown-deep, #2a140a);
  font-size: 0.82rem;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s;
}

.size-btn.active {
  background: var(--brown-deep, #2a140a);
  color: var(--gold, #faae33);
  border-color: var(--brown-deep, #2a140a);
  font-weight: 700;
}

.size-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-style: dashed;
  border-color: rgba(42, 20, 10, 0.4);
}

.option-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brown-deep, #2a140a);
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 2px solid var(--brown-deep, #2a140a);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  background: var(--white, #ffffff);
}

.qty-selector .qty-btn {
  background: transparent;
  border: none;
  color: var(--brown-deep, #2a140a);
  width: 40px;
  height: 40px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-selector .qty-btn:hover {
  background: rgba(42, 20, 10, 0.08);
}

.qty-input {
  width: 55px;
  height: 40px;
  text-align: center;
  background: transparent;
  border: none;
  border-left: 2px solid var(--brown-deep, #2a140a);
  border-right: 2px solid var(--brown-deep, #2a140a);
  color: var(--brown-deep, #2a140a);
  font-size: 15px;
  font-weight: 700;
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.modal-footer {
  padding: 0 24px 24px;
}

.modal-submit-btn {
  width: 100%;
  background: var(--brown-deep, #2a140a);
  color: var(--gold, #faae33);
  border: none;
  border-radius: 8px;
  padding: 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  text-transform: uppercase;
}

.modal-submit-btn:hover {
  transform: translateY(-2px);
  background: #3d1b0c;
}
