/* ==========================================================
   AURA GALLERY DESIGN SYSTEM & CORE STYLES
   Style archetype: Premium, Warm-Minimalist, Curved, Elegant
   ========================================================== */

/* 1. CSS VARIABLES (Light Mode Default) */
:root {
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette */
  --bg-primary: #fbfaf6;
  --bg-secondary: #f4f2ea;
  --bg-card: #ffffff;
  --text-primary: #1e1e1c;
  --text-secondary: #6e6d67;
  --accent-gold: #c5a072;
  --accent-gold-hover: #b38e61;
  --accent-gold-light: #f6efe6;
  --border-color: #eae7df;
  --shadow-sm: 0 4px 12px rgba(220, 215, 200, 0.2);
  --shadow-md: 0 8px 24px rgba(220, 215, 200, 0.3);
  --shadow-lg: 0 16px 40px rgba(220, 215, 200, 0.45);
  
  /* UI Elements */
  --btn-radius: 30px;
  --card-radius: 24px;
  --input-radius: 16px;
  --glass-bg: rgba(251, 250, 246, 0.85);
  --glass-border: rgba(234, 231, 223, 0.6);
  
  /* Status Colors */
  --status-pending: #cba135;
  --status-pending-bg: #fdf6e2;
  --status-approved: #2d8a5b;
  --status-approved-bg: #e6f6ee;
  --status-shipped: #3b74b8;
  --status-shipped-bg: #eaf1fa;
  --status-cancelled: #cf4343;
  --status-cancelled-bg: #faeae8;
  
  /* System */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --max-width: 1440px;
}

/* 2. DARK MODE OVERRIDES */
body.dark-mode {
  --bg-primary: #0b0b0a;
  --bg-secondary: #141413;
  --bg-card: #1c1c1a;
  --text-primary: #f4f3ef;
  --text-secondary: #a3a199;
  --accent-gold: #dfbe99;
  --accent-gold-hover: #edd3b4;
  --accent-gold-light: #2b2721;
  --border-color: #2c2c29;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.65);
  
  --glass-bg: rgba(11, 11, 10, 0.85);
  --glass-border: rgba(44, 44, 41, 0.6);
  
  --status-pending-bg: #292415;
  --status-approved-bg: #14291e;
  --status-shipped-bg: #152233;
  --status-cancelled-bg: #2d1816;
  
  --status-pending: #f3c63f;
  --status-approved: #52c48a;
  --status-shipped: #5da2f0;
  --status-cancelled: #eb5e5e;
}

/* 3. BASE RESET & SCROLL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  overflow-x: clip;
  font-family: var(--font-family);
  background-color: transparent;
  color: var(--text-primary);
  transition: background-color 0.5s ease, color 0.3s ease;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* 4. UTILITIES & LAYOUT */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.curved-12 { border-radius: 12px; }
.curved-16 { border-radius: 16px; }
.curved-24 { border-radius: 24px; }
.curved-32 { border-radius: 32px; }

/* Grid / Flex */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }

/* Dynamic Sale & In/Out Stock Badges */
.badge {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 12px;
  display: inline-block;
}
.badge-sale {
  background-color: var(--accent-gold);
  color: #ffffff;
}
body.dark-mode .badge-sale {
  background-color: var(--accent-gold);
  color: #121212;
}
.badge-in-stock {
  background-color: var(--status-approved-bg);
  color: var(--status-approved);
}
.badge-out-of-stock {
  background-color: var(--status-cancelled-bg);
  color: var(--status-cancelled);
}

/* 5. APP HEADER (PC/Desktop) */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  white-space: nowrap; /* Prevents splitting into two lines */
}
.logo-text .accent {
  color: var(--accent-gold);
  font-weight: 400;
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 20px; /* Scales down logo text beautifully on small mobile screens */
  }
}

.desktop-nav {
  display: flex;
  gap: 32px;
}
.nav-item {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
  padding: 8px 0;
}
.nav-item:hover, .nav-item.active {
  color: var(--text-primary);
}
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-gold);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Header Action Buttons */
.icon-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}
.icon-btn:hover {
  background-color: var(--bg-secondary);
}
.icon-btn svg {
  width: 22px;
  height: 22px;
}

/* Badge count on cart icon */
.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--accent-gold);
  color: white;
  font-size: 9px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
  transition: var(--transition-smooth);
}
body.dark-mode .cart-badge {
  color: #121212;
}
.badge-hidden {
  transform: scale(0);
  opacity: 0;
}

/* User Widget */
.user-avatar-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background-color: var(--bg-secondary);
  border-radius: 30px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  transition: var(--transition-fast);
}
.user-avatar-btn:hover {
  background-color: var(--border-color);
}
.user-avatar-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.user-initials-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #edd3b4 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}
body.dark-mode .user-initials-avatar {
  color: #121212;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Scheduled Maintenance Mode Animations */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
}

/* Premium User Profile Dropdown Menu */
.user-dropdown-container {
  position: relative;
  display: inline-block;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  background-color: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 12px;
  display: none; /* Controlled via show-menu toggling class */
  z-index: 1000;
  animation: dropdownFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: top right;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.user-dropdown-menu.show-menu {
  display: block;
}

.user-dropdown-header {
  padding: 8px 12px;
}

.user-dropdown-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.user-dropdown-info .user-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-info .user-email {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 10px 0;
}

.user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
  box-sizing: border-box;
}

.user-dropdown-item:hover {
  background-color: var(--accent-gold-light);
  color: var(--accent-gold);
}

.user-dropdown-item.logout-btn {
  color: var(--status-cancelled);
}

.user-dropdown-item.logout-btn:hover {
  background-color: var(--status-cancelled-bg);
  color: var(--status-cancelled);
}

/* Light / Dark Mode Toggle Visibility */
body.light-mode .moon-icon { display: block; }
body.light-mode .sun-icon { display: none; }
body.dark-mode .moon-icon { display: none; }
body.dark-mode .sun-icon { display: block; }

/* 6. MOBILE BOTTOM TAB NAVIGATION */
.mobile-tab-bar {
  display: none; /* Hidden on PC */
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  will-change: transform;
  width: calc(100% - 32px);
  max-width: 450px;
  height: 70px;
  background-color: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  border-radius: 35px;
  z-index: 100;
  justify-content: space-around;
  align-items: center;
  transition: var(--transition-smooth);
  padding: 0 10px;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 600;
  transition: var(--transition-fast);
  flex: 1;
  max-width: 85px;
  text-align: center;
  height: 100%;
  cursor: pointer;
}
.tab-item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 3px;
  transition: var(--transition-fast);
}
.tab-item:hover, .tab-item.active {
  color: var(--accent-gold);
}
.tab-item.active svg {
  transform: translateY(-2px);
  color: var(--accent-gold);
}

.tab-cart-container {
  position: relative;
}
.tab-cart-container .cart-badge {
  top: -8px;
  right: -8px;
  border-color: var(--glass-bg);
}

/* 7. GENERAL COMPONENTS (Buttons, Forms) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  gap: 8px;
}
.btn-primary {
  background-color: var(--accent-gold);
  color: #ffffff;
}
body.dark-mode .btn-primary {
  color: #121212;
}
.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
}
.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--border-color);
  transform: translateY(-2px);
}
.btn-block {
  display: flex;
  width: 100%;
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 20px;
}
.btn:disabled {
  background-color: var(--border-color);
  color: var(--text-secondary);
  cursor: not-allowed;
  transform: none !important;
}

/* Form Styling */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-control {
  width: 100%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--input-radius);
  padding: 14px 18px;
  font-size: 15px;
  transition: var(--transition-fast);
}
.form-control:focus {
  border-color: var(--accent-gold);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 4px var(--accent-gold-light);
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Divider styling */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
  margin: 20px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}
.divider:not(:empty)::before { margin-right: 12px; }
.divider:not(:empty)::after { margin-left: 12px; }

/* 8. MAIN CONTENT WRAPPER & PAGE LOADING */
.main-content {
  padding-top: 110px; /* Offset for header */
  padding-bottom: 40px;
  min-height: 80vh;
}
@media (max-width: 768px) {
  .main-content {
    padding-top: 90px;
    padding-bottom: 110px; /* Offset for Mobile floating tab-bar */
  }
  .desktop-nav {
    display: none;
  }
  .app-header .cart-trigger {
    display: none; /* Accessible via mobile bottom tab-bar instead */
  }
  .mobile-tab-bar {
    display: flex; /* Show floating modern bottom tab-bar on mobile */
  }
}

.page-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================
   PAGE SPECIFIC LAYOUTS (SPA VIEWS)
   ========================================================== */

/* --- VIEW 1: HOME PAGE HERO & HIGHLIGHTS --- */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  margin-bottom: 60px;
}
.hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.hero-content h1 span {
  color: var(--accent-gold);
  font-weight: 300;
}
.hero-content p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 32px;
}

.hero-visual {
  position: relative;
}
.hero-img-card {
  width: 100%;
  height: 450px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--bg-card);
  transform: rotate(-2deg);
  transition: var(--transition-smooth);
}
.hero-visual:hover .hero-img-card {
  transform: rotate(0deg) scale(1.02);
}

@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
    margin-bottom: 40px;
  }
  .hero-content h1 {
    font-size: 38px;
    letter-spacing: -0.5px;
  }
  .hero-content p {
    font-size: 15px;
  }
  .hero-img-card {
    height: 300px;
    transform: none !important;
  }
}

/* Feature categories grid */
.category-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 0 24px 0;
  margin-bottom: 40px;
  scrollbar-width: none; /* Hide scrollbar for clean visual */
}
.category-strip::-webkit-scrollbar { display: none; }
.category-pill {
  padding: 10px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.category-pill:hover, .category-pill.active {
  background-color: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}
body.dark-mode .category-pill.active {
  color: #121212;
}

/* Section Title styling */
.section-header {
  margin-bottom: 32px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.section-header p {
  color: var(--text-secondary);
}

/* --- VIEW 2: SHOP PRODUCTS GRID & FILTERS --- */
.shop-filters-bar {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: var(--card-radius);
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.filter-search-input {
  max-width: 300px;
  padding: 10px 16px;
}
.filter-options {
  display: flex;
  gap: 12px;
  align-items: center;
}
.filter-select {
  padding: 10px 16px;
  border-radius: var(--input-radius);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

/* Shop Page Specific 4-Column Compact Grid & Beautiful Proportions */
#catalog-products-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 32px;
}
#catalog-products-grid .product-img-wrapper {
  height: 290px; /* Perfectly proportioned for the expanded wide viewport */
}
#catalog-products-grid .product-info {
  padding: 20px;
}
#catalog-products-grid .product-title {
  font-size: 17px;
  margin-bottom: 6px;
}
#catalog-products-grid .product-desc {
  font-size: 12px;
  margin-bottom: 12px;
}

/* Premium Wall Art Product Card */
.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}
.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}

.product-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-category {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.product-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.product-price-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.price-container {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-discount {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.price-original {
  font-size: 14px;
  text-decoration: line-through;
  color: var(--text-secondary);
  font-weight: 400;
}
.price-label-starting {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

/* Detail overlay/view buttons */
.product-actions {
  display: grid;
  grid-template-columns: 1fr;
}

/* --- VIEW 3: PRODUCT DETAIL MODAL/BOTTOM SHEET --- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}
@media (max-width: 768px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.detail-img-container {
  border: 6px solid var(--bg-card);
  box-shadow: var(--shadow-md);
  border-radius: var(--card-radius);
  overflow: hidden;
  height: auto;
  max-height: 550px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  justify-self: center;
  align-self: center;
}
.detail-img-container img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 538px;
  display: block;
}

@media (max-width: 768px) {
  .detail-img-container {
    max-height: 400px;
  }
  .detail-img-container img {
    max-height: 388px;
  }
}

.detail-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.detail-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.detail-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 15px;
}

/* Variations Selector list */
.size-variations-container {
  margin-bottom: 24px;
}
.size-variation-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  border-radius: var(--input-radius);
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.size-variation-pill:hover {
  border-color: var(--accent-gold);
  background-color: var(--bg-secondary);
}
.size-variation-pill.active {
  border-color: var(--accent-gold);
  background-color: var(--accent-gold-light);
  box-shadow: 0 0 0 3px var(--accent-gold-light);
}
.variation-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  margin-right: 16px;
}
.variation-name {
  font-weight: 600;
  font-size: 15px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.variation-stock {
  font-size: 11px;
  color: var(--text-secondary);
}
.variation-price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  text-align: right;
}

/* --- VIEW 4: SHOPPING CART VIEW --- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 32px;
}
@media (max-width: 992px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-items-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 24px;
}
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
}
.cart-item-info h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.cart-item-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qty-adjust-btn {
  background-color: var(--bg-secondary);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition-fast);
}
.qty-adjust-btn:hover {
  background-color: var(--border-color);
}
.qty-val {
  font-weight: 600;
  font-size: 15px;
}

.cart-item-actions {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.cart-item-price {
  font-size: 18px;
  font-weight: 700;
}
.cart-remove-btn {
  background: none;
  border: none;
  color: var(--status-cancelled);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Order Summary card */
.cart-summary-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 110px;
}
.summary-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}
.summary-row.total {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* --- VIEW 5: CHECKOUT FLOW & PAYMENT gateway --- */
.payment-selector-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--bg-secondary);
  border-radius: var(--input-radius);
  padding: 6px;
  gap: 6px;
  margin-bottom: 24px;
}
.payment-tab-btn {
  background: none;
  border: none;
  padding: 12px;
  text-align: center;
  border-radius: calc(var(--input-radius) - 4px);
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}
.payment-tab-btn.active {
  background-color: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.payment-details-container {
  border: 1px dashed var(--border-color);
  background-color: var(--bg-secondary);
  border-radius: var(--card-radius);
  padding: 24px;
  margin-bottom: 24px;
}
.bank-details-box {
  margin-bottom: 16px;
}
.bank-field {
  display: grid;
  grid-template-columns: 120px 1fr;
  margin-bottom: 8px;
  font-size: 14px;
}
.bank-field span:first-child {
  font-weight: 600;
  color: var(--text-secondary);
}

.file-upload-dragzone {
  border: 2px dashed var(--accent-gold);
  background-color: var(--bg-card);
  border-radius: var(--input-radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.file-upload-dragzone:hover {
  background-color: var(--accent-gold-light);
}
.file-upload-dragzone svg {
  width: 32px;
  height: 32px;
  color: var(--accent-gold);
  margin-bottom: 8px;
}
.slip-preview-container {
  margin-top: 12px;
}
.slip-preview-img {
  max-width: 100%;
  max-height: 120px;
  border-radius: 8px;
  object-fit: contain;
}

/* PayPal container */
.paypal-button-outer {
  min-height: 50px;
  margin-top: 12px;
}

/* --- VIEW 6: MY ORDERS LOG & DETAILS --- */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.order-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.order-header-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.order-id-label {
  font-weight: 700;
  font-size: 18px;
}
.order-date {
  font-size: 13px;
  color: var(--text-secondary);
}
.order-status-tag {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 12px;
}
.order-status-tag.pending { background-color: var(--status-pending-bg); color: var(--status-pending); }
.order-status-tag.approved { background-color: var(--status-approved-bg); color: var(--status-approved); }
.order-status-tag.shipped { background-color: var(--status-shipped-bg); color: var(--status-shipped); }
.order-status-tag.cancelled { background-color: var(--status-cancelled-bg); color: var(--status-cancelled); }

.order-items-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.order-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.order-item-thumbnail {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}
.order-item-title {
  font-weight: 600;
  font-size: 14px;
  flex-grow: 1;
}
.order-item-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

.order-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

/* --- VIEW 7: HIDDEN ADMIN PANEL DASHBOARD --- */
.admin-dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.admin-stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.stat-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.stat-val {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
}

/* Admin Tabs */
.admin-tabs-row {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1px;
  margin-bottom: 24px;
}
.admin-tab-btn {
  background: none;
  border: none;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}
.admin-tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-gold);
}

/* Admin Data Table Layout */
.admin-table-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.admin-table th, .admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}
.admin-table th {
  background-color: var(--bg-secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}
.admin-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-table tbody tr:hover td {
  background-color: var(--bg-secondary);
}

/* Slip pop trigger button */
.slip-view-trigger-btn {
  background-color: var(--accent-gold-light);
  color: var(--accent-gold);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}
.slip-view-trigger-btn:hover {
  background-color: var(--accent-gold);
  color: white;
}
body.dark-mode .slip-view-trigger-btn:hover {
  color: #121212;
}

/* Admin inline stock adjustments */
.admin-stock-adjuster {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stock-adjust-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition-fast);
}
.stock-adjust-btn:hover {
  background-color: var(--accent-gold-light);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Admin Action Dialog / Inline Forms */
.admin-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.variation-row-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
@media (max-width: 600px) {
  .variation-row-item {
    grid-template-columns: 1fr;
    border: 1px dashed var(--border-color);
    padding: 12px;
    border-radius: 12px;
  }
}

/* ==========================================================
   MODAL DIALOG LAYOUT & ANIMATIONS (Curved & Frosted)
   ========================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.hidden-modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.hidden-modal .modal-card {
  transform: scale(0.9);
}
.max-width-400 { max-width: 400px; }
.max-width-600 { max-width: 600px; }

.modal-header {
  padding: 24px 24px 16px 24px;
  position: relative;
  text-align: center;
}
.modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}
.close-modal-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.close-modal-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-body {
  padding: 0 24px 24px 24px;
  overflow-y: auto;
  max-height: 70vh;
}

/* Google Account Row selection item */
.google-account-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.google-account-option:hover {
  background-color: var(--bg-secondary);
  border-color: var(--accent-gold);
}
.google-account-option img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.google-account-info {
  display: flex;
  flex-direction: column;
}
.google-account-name {
  font-weight: 600;
  font-size: 14px;
}
.google-account-email {
  font-size: 12px;
  color: var(--text-secondary);
}

.google-logo-wrapper {
  margin: 0 auto 12px auto;
  background-color: var(--bg-secondary);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

/* Lightbox specific styling */
.slip-lightbox-card {
  border: none;
  background: none;
  box-shadow: none;
  max-width: 1100px !important;
  width: 95% !important;
}
.slip-lightbox-card .modal-body {
  padding: 0 !important;
  max-height: 90vh !important;
  overflow: hidden !important;
}
.slip-lightbox-card .modal-title {
  color: white;
  text-align: left;
}
.slip-lightbox-card .close-modal-btn {
  color: white;
}
.slip-zoom-container {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 12px;
  border-radius: 20px;
}
.slip-zoom-container img {
  max-width: 100%;
  max-height: 82vh !important;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* --- TOAST NOTIFICATIONS --- */
.notification-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 320px;
  width: 100%;
}
.toast {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}
.toast.toast-show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success {
  border-left: 5px solid var(--status-approved);
}
.toast.error {
  border-left: 5px solid var(--status-cancelled);
}
.toast.info {
  border-left: 5px solid var(--status-shipped);
}

/* Mobile responsive fixes */
@media (max-width: 576px) {
  .notification-container {
    top: auto;
    bottom: 100px; /* Floating above mobile bottom tab-bar */
    right: 50%;
    transform: translateX(50%);
    padding: 0 20px;
  }
}

@media (max-width: 600px) {
  .products-grid, #catalog-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .product-card {
    border-radius: 16px;
  }
  .product-img-wrapper, #catalog-products-grid .product-img-wrapper {
    height: 170px !important;
  }
  .product-info, #catalog-products-grid .product-info {
    padding: 12px !important;
  }
  .product-category {
    font-size: 9px;
    margin-bottom: 2px;
  }
  .product-title, #catalog-products-grid .product-title {
    font-size: 14px !important;
    margin-bottom: 4px;
    line-height: 1.2;
    height: 34px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-desc, #catalog-products-grid .product-desc {
    display: none !important;
  }
  .price-discount {
    font-size: 15px;
  }
  .price-original {
    font-size: 11px;
  }
  .price-label-starting {
    font-size: 8px;
    margin-bottom: 0;
  }
  .product-badges {
    top: 8px;
    left: 8px;
    gap: 4px;
  }
  .badge {
    padding: 2px 6px;
    font-size: 8px;
  }
  .product-info .btn {
    padding: 8px 12px;
    font-size: 11px;
    border-radius: 20px;
  }
  .container {
    padding: 0 12px;
  }
  .main-content {
    padding-bottom: 90px;
  }
}

/* 9. INTERACTIVE PARTICLES CANVAS STYLE */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  background-color: var(--bg-primary);
  transition: background-color 0.5s ease;
}

/* ==========================================================
   10. CUSTOM WALL ART VISUALIZER & SPLICER STYLES
   ========================================================== */

.custom-art-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 992px) {
  .custom-art-split-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }
}

.visualizer-container {
  background: rgba(255,255,255,0.02) !important;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 520px;
  position: sticky;
  top: 110px;
  overflow: hidden;
  transition: all 0.3s ease;
}

@media (max-width: 992px) {
  .visualizer-container {
    position: sticky;
    top: 70px; /* below mobile header */
    z-index: 10;
    min-height: unset;
    height: 200px;
    padding: 12px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-radius: 24px;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  }
  /* Expanded preview image on mobile - 1/4 screen height scale */
  .visualizer-container .preview-frame-wrapper {
    width: 55% !important;
    max-width: 220px !important;
    height: 176px !important;
    flex-shrink: 0;
    margin: 0 !important;
  }
  .visualizer-container .preview-frame-wrapper img {
    height: 176px !important;
    width: 100% !important;
    border-radius: 12px !important;
    object-fit: contain !important;
  }
  /* Hide preview heading on mobile - space is too tight */
  .visualizer-container > h3 {
    display: none;
  }
  /* Layout name & specs become compact inline text */
  .visualizer-container > div:last-child {
    margin-top: 0 !important;
    text-align: left !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .visualizer-container > div:last-child p {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
  }
  .visualizer-container > div:last-child span {
    font-size: 11px !important;
    line-height: 1.4;
  }
}

/* Mobile: JS-toggled fixed pill when user scrolls past the preview */
@media (max-width: 992px) {
  .visualizer-container.is-fixed-mobile {
    position: fixed !important;
    top: 70px;
    left: 16px;
    right: 16px;
    width: auto;
    z-index: 100;
    animation: slideDownPill 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.28);
  }

  /* Spacer to prevent content jump when pill goes fixed */
  .visualizer-container.is-fixed-mobile ~ * {
    padding-top: 0;
  }
}

@keyframes slideDownPill {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.visualizer-mock-wall {
  position: relative;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?w=1200') no-repeat center;
  background-size: cover;
}

.custom-art-uploader:hover {
  border-color: var(--accent-gold) !important;
  background-color: rgba(212, 175, 55, 0.05) !important;
}

.layout-preset-card:hover {
  border-color: var(--accent-gold) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.layout-preset-card.active {
  box-shadow: 0 0 0 4px var(--accent-gold-transparent);
}

.payment-method-card:hover {
  border-color: var(--accent-gold) !important;
}

.payment-method-card.active {
  box-shadow: 0 0 0 3px var(--accent-gold-transparent);
}

/* Responsive layout styling for Select Premium Canvas Style */
.layout-presets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.layout-preset-card {
  padding: 24px 20px;
  border-radius: 20px;
}

.layout-mini-preview {
  height: 240px;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .layout-preset-card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .layout-mini-preview {
    height: 180px;
    border-radius: 8px;
  }
}
