/*
Theme Name: Bear Sized Storefront
Theme URI: https://bearsized.com/
Author: Styles Portfolio
Author URI: https://stylesvazquez.com/
Description: Custom responsive theme built for the Bear Sized apparel shop, art gallery, and custom design studio. Celebrating trans, indigenous, and queer representation.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bear-sized
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&display=swap');

/* =========================================================================
   1. DESIGN TOKENS & PALETTES
   ========================================================================= */

/* Default: Bear Sized Official Brand Palette */
:root {
  --font-display: 'Barlow', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --bg-primary: #092533;       /* Deep Blue */
  --bg-secondary: #0d3c59;     /* Bear Sized Blue */
  --card-bg: rgba(13, 60, 89, 0.45); /* Translucent Blue */
  --card-hover-bg: rgba(13, 60, 89, 0.7);
  --border-color: rgba(39, 184, 184, 0.25); /* Teal Outline */
  --border-hover: rgba(39, 184, 184, 0.5);
  
  --text-primary: #f2fcfb;     /* Foam */
  --text-secondary: rgba(242, 252, 251, 0.7);
  --text-muted: rgba(242, 252, 251, 0.45);

  /* Accents */
  --accent-color: #27b8b8;     /* Teal */
  --accent-rgb: 39, 184, 184;
  --accent-secondary: #ffc817; /* Gold */
  --accent-gradient: var(--accent-color);
  --accent-glow: transparent;
  
  --badge-ecommerce-bg: rgba(255, 200, 23, 0.15);
  --badge-ecommerce-color: #ffc817;
  --badge-community-bg: rgba(39, 184, 184, 0.15);
  --badge-community-color: #27b8b8;
  --badge-studio-bg: rgba(242, 252, 251, 0.12);
  --badge-studio-color: #f2fcfb;

  --shadow-sm: 0 4px 12px rgba(9, 37, 51, 0.3);
  --shadow-md: 0 8px 30px rgba(9, 37, 51, 0.5);
  --shadow-lg: 0 16px 45px rgba(0, 0, 0, 0.6);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 80px;
}

/* Trans & Queer Pride Theme */
[data-theme="trans-queer"] {
  --bg-primary: #0d080e;
  --bg-secondary: #190f1d;
  --card-bg: rgba(25, 15, 29, 0.5);
  --card-hover-bg: rgba(25, 15, 29, 0.75);
  --border-color: rgba(244, 114, 182, 0.2);
  --border-hover: rgba(244, 114, 182, 0.45);
  
  --text-primary: #fff2f7;
  --text-secondary: rgba(255, 242, 247, 0.7);
  --text-muted: rgba(255, 242, 247, 0.45);

  --accent-color: #db2777;     /* Magenta */
  --accent-secondary: #38bdf8; /* Trans Cyan */
  --accent-gradient: var(--accent-color);
  --accent-glow: transparent;

  --badge-ecommerce-bg: rgba(219, 39, 119, 0.15);
  --badge-ecommerce-color: #f472b6;
  --badge-community-bg: rgba(56, 189, 248, 0.15);
  --badge-community-color: #38bdf8;
  --badge-studio-bg: rgba(168, 85, 247, 0.15);
  --badge-studio-color: #c084fc;
}

/* Cyber Bear Theme */
[data-theme="cyber-bear"] {
  --bg-primary: #050b12;
  --bg-secondary: #0b1524;
  --card-bg: rgba(11, 21, 36, 0.55);
  --card-hover-bg: rgba(11, 21, 36, 0.8);
  --border-color: rgba(6, 182, 212, 0.25);
  --border-hover: rgba(6, 182, 212, 0.5);
  
  --text-primary: #f2f6fc;
  --text-secondary: rgba(242, 246, 252, 0.7);
  --text-muted: rgba(242, 246, 252, 0.45);

  --accent-color: #ff5722;     /* Neon Orange */
  --accent-secondary: #a855f7; /* Purple */
  --accent-gradient: var(--accent-color);
  --accent-glow: transparent;

  --badge-ecommerce-bg: rgba(255, 87, 34, 0.15);
  --badge-ecommerce-color: #ff7a50;
  --badge-community-bg: rgba(168, 85, 247, 0.15);
  --badge-community-color: #d8b4fe;
  --badge-studio-bg: rgba(6, 182, 212, 0.15);
  --badge-studio-color: #22d3ee;
}

/* =========================================================================
   2. BASE STYLING & GENERAL UTILITIES
   ========================================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.3s ease;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 6px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover, a:focus {
  color: var(--accent-secondary);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .section-container {
    padding: 0 1.25rem;
  }
}

/* Typography elements */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
}

.paragraph-lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.highlight-text {
  color: var(--accent-color);
}

/* Styled Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border-radius: 30px;
  padding: 12px 28px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--bg-primary);
  border: none;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--accent-secondary);
  color: var(--bg-primary);
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

.text-link-btn {
  background: transparent;
  border: none;
  color: var(--accent-color);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  transition: var(--transition-smooth);
}

.text-link-btn:hover {
  color: var(--accent-secondary);
}

/* =========================================================================
   3. HEADER STYLING
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: rgba(9, 37, 51, 0.85); /* Semitransparent Deep Blue */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: background-color 0.5s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  transform: translateY(0);
  opacity: 1;
}

[data-theme="trans-queer"] .site-header {
  background: rgba(13, 8, 14, 0.85);
}

[data-theme="cyber-bear"] .site-header {
  background: rgba(5, 11, 18, 0.85);
}

.empty-bag-message {
  text-align: center;
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* =========================================================================
   8. FLOATING NAVIGATION PILL
   ========================================================================= */

.floating-nav-pill {
  position: fixed;
  bottom: calc(32px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(130px); /* Start hidden below viewport */
  background: rgba(9, 37, 51, 0.85); /* Clean dark background */
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 10px 22px;
  display: flex;
  flex-direction: row;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  height: 56px;
  overflow: hidden;
  box-sizing: border-box;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.4s ease, 
              background-color 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.4s ease;
  max-width: 94vw;
}

/* Expand layout on Hover */
.floating-nav-pill:hover,
.floating-nav-pill.expanded {
  background: rgba(9, 37, 51, 0.95);
  border-color: var(--accent-color);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

/* Scrolled body state hides header, shows floating pill */
body.scrolled .site-header {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

body.scrolled .floating-nav-pill {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.at-bottom .floating-nav-pill {
  transform: translateX(-50%) translateY(130px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 900px) {
  .floating-nav-pill {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Collapsed content container */
.pill-collapsed-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.pill-logo {
  background: var(--accent-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.pill-logo:has(img) {
  background: transparent !important;
}

.pill-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

.pill-menu-toggle {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  outline: none;
  transition: color 0.3s ease;
}

.pill-menu-toggle:hover {
  color: var(--accent-secondary);
}

.hamburger-icon {
  font-size: 1.1rem;
  color: var(--accent-color);
}

.pill-cart-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.pill-cart-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-primary);
  transform: scale(1.05);
}

.pill-cart-icon {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pill-cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--accent-color);
  color: var(--bg-primary);
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

/* Expanded state container */
.pill-expanded-content {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  scrollbar-width: none; /* Hide scrollbar for clean look */
  display: flex;
  align-items: center;
  transition: max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.pill-expanded-content::-webkit-scrollbar {
  display: none;
}

.floating-nav-pill:hover .pill-expanded-content,
.floating-nav-pill.expanded .pill-expanded-content {
  max-width: 1000px;
  opacity: 1;
  transition-delay: 0s, 0.1s;
}

.pill-nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding: 0 10px 0 20px;
  white-space: nowrap;
  flex-wrap: nowrap;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  margin-left: 10px;
  align-items: center;
}

.pill-nav-menu a,
.pill-nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.pill-nav-menu a:hover,
.pill-nav-link:hover {
  color: var(--accent-color);
}

/* Mobile responsive pill styling (stacking content) */
@media (max-width: 768px) {
  .floating-nav-pill {
    flex-direction: column !important;
    align-items: center !important;
    padding: 10px 20px !important;
    height: 56px !important; /* Fixed collapsed height */
    width: 240px !important; /* Compact collapsed width */
    border-radius: 30px !important;
    transform: translateX(-50%) translateY(0) !important; /* Ensure visibility */
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  .pill-collapsed-content {
    width: 100% !important;
    justify-content: space-between !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
  }
  
  /* When expanded: grow taller and wider */
  .floating-nav-pill.expanded {
    height: auto !important;
    min-height: 220px !important;
    max-height: 350px !important;
    width: 280px !important;
    border-radius: 20px !important;
  }
  
  /* Expanded block vertical stack */
  .pill-expanded-content {
    max-width: 100% !important;
    max-height: 0;
    opacity: 0;
    width: 100% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
  }
  
  .floating-nav-pill.expanded .pill-expanded-content {
    max-height: 260px !important;
    opacity: 1 !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    overflow-y: auto !important; /* In case menu is long */
  }
  
  .pill-nav-menu {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-left: none !important;
    width: 100% !important;
    white-space: normal !important;
    flex-wrap: wrap !important;
  }
  
  .pill-nav-menu li {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  
  .pill-nav-menu a,
  .pill-nav-link {
    display: inline-block !important;
    width: auto !important;
    max-width: calc(100% - 40px) !important;
    font-size: 0.95rem !important;
    padding: 2px 0 !important;
  }
}

/* Adapt backgrounds on Theme Swaps */
[data-theme="trans-queer"] .floating-nav-pill {
  background: rgba(25, 15, 29, 0.85);
  border-color: var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

[data-theme="trans-queer"] .floating-nav-pill:hover,
[data-theme="trans-queer"] .floating-nav-pill.expanded {
  background: rgba(25, 15, 29, 0.95);
  border-color: var(--accent-color);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

[data-theme="cyber-bear"] .floating-nav-pill {
  background: rgba(11, 21, 36, 0.85);
  border-color: var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

[data-theme="cyber-bear"] .floating-nav-pill:hover,
[data-theme="cyber-bear"] .floating-nav-pill.expanded {
  background: rgba(11, 21, 36, 0.95);
  border-color: var(--accent-color);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.header-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 1.25rem;
  }
}

.brand-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo-area .custom-logo-link {
  display: flex;
  align-items: center;
}

.brand-logo-area .custom-logo {
  max-height: 48px;
  width: auto;
  display: block;
}

.logo-mark {
  background: var(--accent-color);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-weight: 800;
  font-family: var(--font-display);
  box-shadow: none;
  font-size: 1.2rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--accent-color);
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-top: 1px;
}

/* Navigation Links */
.main-navigation {
  display: flex;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

@media (max-width: 900px) {
  .main-navigation {
    display: none; /* Hide navigation on tablets/mobile for mock purposes */
  }
  .main-navigation.mobile-active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
  }
  .main-navigation.mobile-active .nav-menu {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  .main-navigation.mobile-active .nav-menu li {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .main-navigation.mobile-active .nav-menu li a {
    display: inline-block !important;
    width: auto !important;
    max-width: calc(100% - 40px) !important;
  }
}

.header-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .header-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.nav-menu a,
.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.nav-menu a:hover,
.nav-link:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Cart Button */
.header-cart-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.header-cart-btn:hover {
  border-color: var(--text-primary);
  background: var(--card-hover-bg);
  transform: scale(1.05);
}

.cart-icon {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.outline-bag-icon {
  stroke: var(--accent-color);
  fill: none;
  display: block;
  transition: stroke 0.3s ease;
}

.header-cart-btn:hover .outline-bag-icon,
.pill-cart-btn:hover .outline-bag-icon {
  stroke: var(--text-primary);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-color);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

/* =========================================================================
   4. HOME/MAIN CONTENT SECTIONS
   ========================================================================= */

/* Cover Banner Section */
.cover-banner-section {
  padding: 4rem 0 2rem 0;
  background-color: var(--bg-primary);
}

.cover-banner {
  position: relative;
  border-radius: 20px !important;
  min-height: 480px !important;
  display: flex !important;
  align-items: center !important;
  padding: 4rem 5rem !important;
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
  overflow: hidden !important;
  border: 1px solid var(--border-color) !important;
}

.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.05) 100%) !important;
  z-index: 1;
}

.cover-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  text-align: left;
}

.cover-title {
  font-family: var(--font-display);
  font-size: 3.8rem !important;
  font-weight: 800;
  color: #ffffff !important;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cover-subtitle {
  font-family: var(--font-body);
  font-size: 2.2rem !important;
  font-weight: 400;
  color: #ffffff !important;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.cover-cta .btn {
  padding: 14px 32px !important;
  font-size: 1.05rem !important;
  border-radius: 30px !important;
}

@media (max-width: 768px) {
  .cover-banner {
    padding: 3rem 2rem !important;
    min-height: 380px !important;
  }
  .cover-title {
    font-size: 2.5rem !important;
  }
  .cover-subtitle {
    font-size: 1.6rem !important;
  }
}

/* Mission/About Section */
.mission-section {
  padding: 8rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.5s ease;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.mission-image-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
}

.mission-graphic-box {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2rem;
  width: 320px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

.mission-graphic-box:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.art-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--badge-ecommerce-bg);
  color: var(--badge-ecommerce-color);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.mini-art-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.mission-graphic-box h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.mission-graphic-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.mission-text-area {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mission-quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--accent-secondary);
  border-left: 3px solid var(--accent-color);
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.mission-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.5rem;
}

.m-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Shop Section */
.shop-section {
  padding: 2rem 0 !important;
}

.shop-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  gap: 2rem;
}

@media (max-width: 900px) {
  .shop-header-row {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2.5rem;
  }
}


/* Product Grid */
.products-grid {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: 280px !important;
  gap: 2.5rem !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important; /* Premium kinetic scroll on iOS */
  padding: 0.5rem 0.5rem 1.5rem 0.5rem !important;
  margin: -0.5rem -0.5rem 0 -0.5rem !important;
  scrollbar-width: thin !important;
  scrollbar-color: var(--border-color) transparent !important;
}

.products-grid::-webkit-scrollbar {
  height: 6px;
}

.products-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.products-grid::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

.products-grid::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

.product-card {
  background: var(--card-bg) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  transition: var(--transition-smooth) !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  scroll-snap-align: start !important;
  flex-shrink: 0 !important; /* Crucial to prevent cards from shrinking in a flex container */
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
  background: var(--card-hover-bg);
}

.product-img-wrapper {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  transition: var(--transition-smooth);
}

.product-card:hover .product-img-wrapper {
  background: rgba(255, 255, 255, 0.05);
}

.product-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
}

.product-tag.apparel { background: var(--badge-ecommerce-bg); color: var(--badge-ecommerce-color); }
.product-tag.accessories { background: var(--badge-community-bg); color: var(--badge-community-color); }
.product-tag.art { background: var(--badge-studio-bg); color: var(--badge-studio-color); }

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-sizes-hint {
  font-size: 0.75rem;
  color: var(--accent-color);
  font-weight: 700;
}

/* Gallery Section */
.gallery-section {
  padding: 8rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.5s ease;
}

.gallery-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

.gallery-intro {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gallery-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 550px) {
  .gallery-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-photo-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.gallery-photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.gallery-photo-placeholder {
  height: 240px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-bottom: 1px solid var(--border-color);
}

.photo-card-info {
  padding: 1.25rem;
}

.photo-card-info h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.photo-card-info span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Studio Section */
.studio-section {
  padding: 8rem 0;
}

.studio-box {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 4rem 3.5rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .studio-box {
    padding: 2.5rem 1.75rem;
  }
}

.studio-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: var(--accent-color);
}

.studio-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.studio-title {
  font-size: 2.2rem;
  letter-spacing: -0.5px;
}

.studio-desc {
  max-width: 900px;
  font-size: 1.1rem;
}

.services-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.service-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-icon {
  font-size: 2rem;
  color: var(--accent-color);
}

.service-item h6 {
  font-size: 1.1rem;
  font-weight: 700;
}

.service-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.studio-actions {
  display: flex;
  margin-top: 1rem;
}

/* =========================================================================
   5. FOOTER STYLING
   ========================================================================= */

.site-footer {
  background: #061922; /* Rich darker deep blue */
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2.5rem;
  transition: background-color 0.5s ease;
}

[data-theme="trans-queer"] .site-footer {
  background: #09050a;
}

[data-theme="cyber-bear"] .site-footer {
  background: #03070c;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 650px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  background: var(--accent-color);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: none;
}

.footer-logo-area .custom-logo-link {
  display: inline-block;
}

.footer-logo-area .custom-logo {
  max-height: 40px;
  width: auto;
  display: block;
}

.footer-about-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.social-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  transition: var(--transition-smooth);
}

.social-link:hover {
  color: var(--accent-color);
}

.footer-col h6 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 6px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-col ul a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.newsletter-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.newsletter-form {
  display: flex;
  width: 100%;
}

.newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: 20px 0 0 20px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.newsletter-form input:focus {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.06);
}

.newsletter-submit {
  background: var(--accent-color);
  color: var(--bg-primary);
  border: none;
  padding: 0 20px;
  border-radius: 0 20px 20px 0;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.9rem;
}

.newsletter-submit:hover {
  background: var(--accent-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================================================================
   6. DIALOG OVERLAYS (MODALS & DRAWERS)
   ========================================================================= */

/* Backdrop overlay styling */
dialog::backdrop {
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition: display 0.4s allow-discrete, overlay 0.4s allow-discrete, background-color 0.4s ease, backdrop-filter 0.4s ease;
}

dialog[open]::backdrop {
  background-color: rgba(5, 12, 18, 0.8);
  backdrop-filter: blur(6px);

  @starting-style {
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
  }
}

/* A. Center Popover Modals */
dialog.modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  border: none;
  background: transparent;
  width: 90%;
  max-width: 900px;
  margin: 0;
  padding: 0;
  outline: none;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              display 0.35s allow-discrete, 
              overlay 0.35s allow-discrete;
}

dialog.modal-dialog.text-modal-content {
  max-width: 600px;
}

dialog.modal-dialog[open] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);

  @starting-style {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  position: relative;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--accent-color);
  color: var(--bg-primary);
  border-color: transparent;
  transform: rotate(90deg);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* B. Right Slide-over Cart Drawer */
dialog.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  margin: 0;
  border: none;
  border-left: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Transitions */
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), display 0.4s allow-discrete, overlay 0.4s allow-discrete;
}

dialog.drawer[open] {
  opacity: 1;
  transform: translateX(0);

  @starting-style {
    opacity: 0;
    transform: translateX(100%);
  }
}

.drawer-header {
  padding: 2rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-header-title h4 {
  font-size: 1.25rem;
}

.cart-count-badge {
  background: var(--badge-ecommerce-bg);
  color: var(--badge-ecommerce-color);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
  background: var(--accent-color);
  color: var(--bg-primary);
  border-color: transparent;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.drawer-footer {
  padding: 2rem 1.75rem;
  border-top: 1px solid var(--border-color);
  background: rgba(9, 37, 51, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.subtotal-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-secondary);
}

.shipping-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  dialog.modal-dialog, dialog.modal-dialog[open] {
    transform: translate(-50%, -50%);
    transition-duration: 0.15s;
  }
  dialog.drawer, dialog.drawer[open] {
    transform: none;
    transition-duration: 0.15s;
  }
}

/* =========================================================================
   7. SPECIFIC MODAL & DRAWER SUB-COMPONENTS
   ========================================================================= */

/* Product Detail Page (PDP) Layout */
.pdp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .pdp-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.pdp-media-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pdp-hero-image {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}

.pdp-thumbnails {
  display: flex;
  gap: 8px;
}

.pdp-thumb {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pdp-thumb:hover {
  border-color: var(--text-primary);
}

.pdp-thumb.active {
  border-color: var(--accent-color);
  background: rgba(39, 184, 184, 0.08);
}

.pdp-spec-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pdp-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-color);
}

.pdp-name {
  font-size: 2rem;
  line-height: 1.2;
}

.pdp-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-secondary);
}

.pdp-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdp-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.pdp-sizes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdp-size-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.pdp-size-btn:hover {
  border-color: var(--text-primary);
}

.pdp-size-btn.active {
  background: var(--accent-color);
  color: var(--bg-primary);
  border-color: transparent;
  box-shadow: none;
}

.pdp-size-btn.extended-size {
  width: auto;
  padding: 0 10px;
}

.size-disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.pdp-details-desc {
  font-size: 0.95rem;
  line-height: 1.5;
}

.pdp-actions {
  margin-top: 1rem;
}

/* Sizing Table Styles */
.size-table-container {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.size-table th, .size-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
}

.size-table th {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 700;
}

.size-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.extended-size-row {
  color: var(--accent-secondary);
}

.size-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Inquiry Form Styles */
.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .form-group-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.05);
}

/* Cart Items List */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

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

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.cart-item-qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.cart-item-qty-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 6px;
}

.qty-val {
  font-size: 0.85rem;
  font-weight: 600;
  width: 16px;
  text-align: center;
}

.cart-item-price {
  font-weight: 700;
  color: var(--accent-secondary);
  font-size: 0.95rem;
}

.remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.remove-btn:hover {
  color: #ef4444;
}

.empty-bag-message {
  text-align: center;
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* =========================================================================
   8.5. CATEGORY TILES SELECTOR SECTIONS
   ========================================================================= */

.category-tiles-section {
  padding: 2rem 0 4rem 0;
  background-color: var(--bg-primary);
}

.category-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .category-tiles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.category-tile {
  background: var(--card-bg);
  border: 1px solid var(--bg-primary);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  height: 440px !important;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background-size: cover;
  background-position: center bottom !important;
  background-repeat: no-repeat;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
}

.tile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%) !important;
  z-index: 1;
  transition: var(--transition-smooth);
}

.category-tile:hover .tile-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%) !important;
}

.tile-icon-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.2rem;
  z-index: 2;
  opacity: 0.85;
}

.tile-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

.tile-content h4 {
  font-family: var(--font-display);
  font-size: 1.8rem !important;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.tile-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  max-width: 90%;
  line-height: 1.4;
}

.tile-btn {
  margin-top: 0.5rem;
  padding: 10px 24px !important;
  font-size: 0.9rem !important;
  border-radius: 30px !important;
  background: var(--accent-color) !important;
  color: var(--bg-primary) !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: inline-flex;
  transition: var(--transition-smooth);
}

.tile-btn:hover {
  background: var(--accent-secondary) !important;
  transform: translateY(-1px);
}

/* =========================================================================
   TRADITIONAL SHOP ARCHIVE (archive-product.php)
   ========================================================================= */

.shop-page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  align-items: flex-start;
}

/* Inline Search Form */
.shop-inline-search-input {
  padding: 0.75rem 1.5rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  width: 250px;
}

.shop-inline-search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 196, 179, 0.15);
}

/* Main Shop Content */
.shop-main-content {
  flex: 1;
  min-width: 0; /* Prevents flex overflow */
}

.woocommerce-products-header {
  margin-bottom: 3rem;
  text-align: left;
}

.woocommerce-products-header__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Traditional Grid */
.traditional-shop-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.product-card.traditional-card {
  /* Override homepage min-widths if necessary to fit exactly 3 columns nicely */
  min-width: 0; 
  width: 100%;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 196, 179, 0.2);
  border-left-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .traditional-shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .shop-page-container {
    padding: 2rem 1.5rem;
  }
  
  .woocommerce-products-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
  
  .shop-inline-search-input {
    width: 100%;
  }

  .traditional-shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .traditional-shop-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   About Page Cover & Column Layouts
   ========================================================================= */
.about-cover-banner-section {
  background-color: var(--accent-color) !important; /* Make the background of this section teal */
}

.about-cover-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  background: var(--bg-secondary); /* Dark blue card background */
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 4rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-cover-content {
  position: relative;
  z-index: 2;
}

.about-cover-title {
  font-family: var(--font-display);
  font-size: 3.5rem !important;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 1rem 0 !important; /* Reset margins to ensure equal padding */
  color: var(--text-primary) !important; /* Light text for readability on dark card background */
  text-transform: uppercase;
  letter-spacing: -1px;
}

.about-cover-subtitle {
  font-family: var(--font-body);
  font-size: 1.35rem !important;
  line-height: 1.6;
  color: var(--text-secondary) !important; /* Light secondary text */
  margin: 0 !important;
  max-width: 580px;
}

.about-cover-image-container {
  width: 100%;
  aspect-ratio: 4 / 3; /* Automatic responsive height to prevent overflow and ensure equal padding */
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

.about-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.about-cover-image-container:hover .about-cover-image {
  transform: scale(1.03);
}

@media (max-width: 991px) {
  .about-cover-grid {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
    gap: 2.5rem;
  }
  
  .about-cover-title {
    font-size: 2.5rem !important;
  }
  
  .about-cover-subtitle {
    font-size: 1.15rem !important;
  }
  
  .about-cover-image-container {
    min-height: auto;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-grid.reverse {
  grid-template-columns: 1fr 1.2fr;
}

@media (max-width: 1024px) {
  .about-grid,
  .about-grid.reverse {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .about-grid.reverse {
    /* Stack elements such that the text stays on top on mobile/tablet */
    display: flex;
    flex-direction: column-reverse;
  }
}

.about-image-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
  background: var(--card-bg);
}

.about-image-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(9, 37, 51, 0.7), 0 0 30px rgba(39, 184, 184, 0.2);
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.about-image-card:hover .about-image {
  transform: scale(1.05);
}

.about-image-glow {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(39, 184, 184, 0.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.about-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  background: linear-gradient(to top, rgba(9, 37, 51, 0.95) 0%, rgba(9, 37, 51, 0.5) 60%, transparent 100%);
  z-index: 2;
  display: flex;
  align-items: flex-end;
}

.about-image-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-secondary);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* =========================================================================
   WooCommerce Single Product Page Overrides
   ========================================================================= */
.single-product div.product {
  margin-top: 2rem;
}

.woocommerce-variation-add-to-cart {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.woocommerce div.product form.cart .variations {
  margin-bottom: 2rem;
  width: 100%;
}

.woocommerce div.product form.cart .variations td {
  padding: 0.75rem 0;
  vertical-align: middle;
  border: none !important;
}

.woocommerce div.product form.cart .variations td.label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 120px;
}

.woocommerce div.product form.cart .variations select {
  width: 100%;
  max-width: 320px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(13, 60, 89, 0.3) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body);
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.woocommerce div.product form.cart .variations select:focus {
  border-color: var(--accent-color);
  background: rgba(13, 60, 89, 0.6) !important;
  box-shadow: 0 0 10px rgba(39, 184, 184, 0.2);
}

/* Quantity Field Styling */
.woocommerce div.product form.cart .quantity input.qty {
  width: 65px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(13, 60, 89, 0.3);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  outline: none;
  transition: var(--transition-smooth);
}

.woocommerce div.product form.cart .quantity input.qty:focus {
  border-color: var(--accent-color);
  background: rgba(13, 60, 89, 0.6);
}

/* Single Add to Cart Button Styling */
.woocommerce div.product form.cart .button {
  background-color: var(--accent-color) !important;
  color: var(--bg-primary) !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  border-radius: 30px !important;
  padding: 14px 32px !important;
  border: none !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: var(--transition-smooth) !important;
  box-shadow: var(--shadow-sm) !important;
}

.woocommerce div.product form.cart .button:hover {
  background-color: var(--accent-secondary) !important;
  color: var(--bg-primary) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Disabled State for Variations Form Button */
.woocommerce div.product form.cart .button.disabled,
.woocommerce div.product form.cart .button:disabled,
.woocommerce div.product form.cart .button.disabled:hover,
.woocommerce div.product form.cart .button:disabled:hover {
  background-color: var(--text-muted) !important;
  color: var(--text-primary) !important;
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* =========================================================================
   WooCommerce Global Branding Overrides (Cart, Checkout, My Account, etc.)
   ========================================================================= */

/* 1. Container Cleanses (Wipe out default storefront white borders and white boxes) */
.woocommerce-page #primary,
.woocommerce-page #main,
.woocommerce-page article,
.woocommerce-page .hentry,
.woocommerce-page .entry-content {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

/* 2. Global WooCommerce Typography & Structure */
.woocommerce-page h1.page-title,
.woocommerce-page .entry-title,
.woocommerce-page h2,
.woocommerce-page h3 {
  font-family: var(--font-display) !important;
  color: var(--text-primary) !important;
  text-transform: uppercase !important;
  letter-spacing: -0.5px !important;
}

/* 3. WooCommerce Shop Tables (Cart Page Table, Order details, etc.) */
.woocommerce-page table.shop_table {
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  background: var(--card-bg) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
}

.woocommerce-page table.shop_table th {
  font-family: var(--font-display) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  background-color: rgba(9, 37, 51, 0.6) !important;
  color: var(--text-primary) !important;
  border: none !important;
  padding: 1.25rem 1rem !important;
}

.woocommerce-page table.shop_table td {
  border-top: 1px solid var(--border-color) !important;
  color: var(--text-secondary) !important;
  padding: 1.25rem 1rem !important;
  background: transparent !important;
}

.woocommerce-page table.shop_table tr:hover td {
  background: rgba(255, 255, 255, 0.01) !important;
}

.woocommerce-page table.shop_table td a {
  color: var(--text-primary) !important;
}

.woocommerce-page table.shop_table td a:hover {
  color: var(--accent-color) !important;
}

/* 4. Cart Totals Box */
.woocommerce-page .cart-collaterals .cart_totals {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  box-shadow: var(--shadow-sm) !important;
  float: none !important;
  width: 100% !important;
  margin-top: 2rem !important;
}

.woocommerce-page .cart_totals h2 {
  font-size: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding-bottom: 0.75rem !important;
}

.woocommerce-page .cart_totals table.shop_table {
  background: transparent !important;
  border: none !important;
}

.woocommerce-page .cart_totals table.shop_table tr th,
.woocommerce-page .cart_totals table.shop_table tr td {
  background: transparent !important;
  border: none !important;
  padding: 0.75rem 0 !important;
  color: var(--text-secondary) !important;
}

.woocommerce-page .cart_totals table.shop_table tr.order-total th,
.woocommerce-page .cart_totals table.shop_table tr.order-total td {
  color: var(--text-primary) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
}

/* 5. Checkout Billing/Shipping & Payment Box */
.woocommerce-page #customer_details h3,
.woocommerce-page #order_review_heading {
  font-size: 1.6rem !important;
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding-bottom: 0.5rem !important;
}

.woocommerce-page form.checkout {
  gap: 3rem;
  margin-top: 2rem;
}

.woocommerce-page #order_review {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  box-shadow: var(--shadow-sm) !important;
}

/* 6. Form Field Styling (Checkout & Account Forms) */
.woocommerce-page input.input-text,
.woocommerce-page select,
.woocommerce-page textarea {
  background: rgba(13, 60, 89, 0.3) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  outline: none !important;
  transition: var(--transition-smooth) !important;
}

.woocommerce-page input.input-text:focus,
.woocommerce-page select:focus,
.woocommerce-page textarea:focus {
  border-color: var(--accent-color) !important;
  background: rgba(13, 60, 89, 0.6) !important;
  box-shadow: 0 0 10px rgba(39, 184, 184, 0.2) !important;
}

.woocommerce-page .form-row label {
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
}

/* 7. Button Overrides (WOOCOMMERCE GLOBAL CLASS OVERRIDES) */
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button,
.woocommerce-page #respond input#submit {
  background-color: var(--accent-color) !important;
  color: var(--bg-primary) !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  border-radius: 30px !important;
  padding: 12px 28px !important;
  border: none !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: var(--transition-smooth) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: var(--shadow-sm) !important;
  line-height: 1.2 !important;
}

.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input.button:hover,
.woocommerce-page #respond input#submit:hover {
  background-color: var(--accent-secondary) !important;
  color: var(--bg-primary) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Primary checkout / place-order button variations */
.woocommerce-page a.button.alt,
.woocommerce-page button.button.alt,
.woocommerce-page input.button.alt,
.woocommerce-page #respond input#submit.alt {
  background-color: var(--accent-color) !important;
  color: var(--bg-primary) !important;
}

.woocommerce-page a.button.alt:hover,
.woocommerce-page button.button.alt:hover,
.woocommerce-page input.button.alt:hover,
.woocommerce-page #respond input#submit.alt:hover {
  background-color: var(--accent-secondary) !important;
  color: var(--bg-primary) !important;
}

/* Secondary / Coupon / Update Cart buttons */
.woocommerce-page button.button:disabled,
.woocommerce-page button.button:disabled[disabled],
.woocommerce-page button.button:disabled:hover,
.woocommerce-page button.button:disabled[disabled]:hover {
  background-color: var(--text-muted) !important;
  color: var(--text-primary) !important;
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* 8. My Account Navigation & Structure */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block !important;
  padding: 10px 16px !important;
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: var(--transition-smooth) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--card-hover-bg) !important;
  border-color: var(--accent-color) !important;
  color: var(--accent-color) !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
}

/* 9. Payment Gateways list overrides */
.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid var(--border-color) !important;
  padding-bottom: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.woocommerce-checkout #payment div.payment_box {
  background: rgba(13, 60, 89, 0.4) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: rgba(13, 60, 89, 0.4) !important;
}

/* 10. WooCommerce message/info banners styling */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background-color: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-top-color: var(--accent-color) !important;
  border-top-width: 3px !important;
  border-radius: 8px !important;
  color: var(--text-primary) !important;
  padding: 1.25rem 2rem !important;
  margin-bottom: 2rem !important;
  box-shadow: var(--shadow-sm) !important;
}

.woocommerce-error {
  border-top-color: #ff334b !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--accent-color) !important;
}

/* Ensure WooCommerce checkout columns align nicely on desktop */
@media (min-width: 769px) {
  .woocommerce-checkout {
    display: flex;
    flex-wrap: wrap;
  }
  
  .woocommerce-checkout #customer_details {
    flex: 1 1 55%;
  }
  
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review {
    flex: 1 1 35%;
    margin-left: 5%;
  }
  
  .woocommerce-checkout #order_review_heading {
    margin-top: 0 !important;
  }
}

/* =========================================================================
   WooCommerce Blocks (Gutenberg Cart & Checkout Blocks) Modernized Overrides
   ========================================================================= */

/* Product Link styling in Cart Block (No more bright blue links) */
.wc-block-cart-items a,
.wc-block-components-product-name a,
.wc-block-components-product-name,
.wc-block-cart-item__wrap a,
.wc-block-cart-item__name a {
  color: var(--text-primary) !important;
  text-decoration: none !important;
  font-family: var(--font-display) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  transition: var(--transition-smooth) !important;
}

.wc-block-cart-items a:hover,
.wc-block-components-product-name a:hover,
.wc-block-components-product-name:hover,
.wc-block-cart-item__wrap a:hover,
.wc-block-cart-item__name a:hover {
  color: var(--accent-color) !important;
  text-decoration: none !important;
}

/* Product metadata (Sizes, colors, options description) */
.wc-block-components-product-metadata,
.wc-block-components-product-metadata__description,
.wc-block-cart-item__metadata,
.wc-block-components-product-details__metadata {
  color: var(--text-secondary) !important;
  font-size: 0.85rem !important;
  margin-top: 6px !important;
}

/* Gutenberg Cart Table Headers styling */
.wc-block-cart__table-header,
.wc-block-cart-items__header,
.wc-block-cart__product-table th,
.wc-block-cart__table-row th,
.wc-block-cart__table th {
  color: var(--text-muted) !important;
  font-family: var(--font-display) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  border-bottom: 2px solid var(--border-color) !important;
  padding-bottom: 1rem !important;
}

/* Price & Total values */
.wc-block-cart-item__price,
.wc-block-cart-item__total,
.wc-block-cart-item__total-price,
.wc-block-cart-item__price-price {
  font-family: var(--font-display) !important;
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
}

/* Checkout Login & General Accent Links */
.wc-block-checkout__login-prompt a,
.wc-block-checkout__login-prompt a:link,
.wc-block-components-checkout-step a,
.wc-block-components-checkout-step a:link,
.woocommerce-error a,
.woocommerce-info a,
.woocommerce-message a {
  color: var(--accent-color) !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
  transition: var(--transition-smooth) !important;
}

.wc-block-checkout__login-prompt a:hover,
.wc-block-components-checkout-step a:hover,
.woocommerce-error a:hover,
.woocommerce-info a:hover,
.woocommerce-message a:hover {
  color: var(--accent-secondary) !important;
}

/* Empty Cart Screen */
.wc-block-cart__empty-cart,
.wc-block-cart-empty {
  text-align: center !important;
  padding: 4rem 2rem !important;
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px !important;
  margin: 2rem 0 !important;
}

.wc-block-cart__empty-cart__title,
.wc-block-cart-empty__title {
  font-size: 2rem !important;
  color: var(--text-primary) !important;
  margin-bottom: 1rem !important;
}

.wc-block-cart__empty-cart__description,
.wc-block-cart-empty__description {
  color: var(--text-secondary) !important;
  margin-bottom: 2rem !important;
}

.wc-block-cart__empty-cart__button a,
.wc-block-cart-empty__button a {
  background-color: var(--accent-color) !important;
  color: var(--bg-primary) !important;
  padding: 12px 28px !important;
  border-radius: 30px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: inline-block !important;
  transition: var(--transition-smooth) !important;
}

.wc-block-cart__empty-cart__button a:hover,
.wc-block-cart-empty__button a:hover {
  background-color: var(--accent-secondary) !important;
  color: var(--bg-primary) !important;
  transform: translateY(-1px) !important;
}

/* Cart Item Row borders & top-alignment */
.wc-block-cart-item {
  border-bottom: 1px solid rgba(39, 184, 184, 0.15) !important;
  padding: 1.5rem 0 !important;
}

/* Ensure default Gutenberg cells top-align correctly */
.wc-block-cart-item__image,
.wc-block-components-product-image,
.wc-block-cart-item__info,
.wc-block-components-product-details,
.wc-block-cart-item__total {
  align-self: start !important;
}

/* Force details text inside info block to align left */
.wc-block-cart-item__info,
.wc-block-components-product-details,
.wc-block-components-product-name,
.wc-block-components-product-name a,
.wc-block-components-product-price,
.wc-block-components-product-metadata,
.wc-block-cart-item__quantity {
  text-align: left !important;
}

/* Style product images in Cart Block (Standard size & layout) */
.wc-block-cart-item__image,
.wc-block-components-product-image {
  width: 90px !important;
  max-width: 90px !important;
  height: auto !important;
  margin-right: 1.5rem !important;
  display: block !important;
}

.wc-block-cart-item__image img,
.wc-block-components-product-image img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  border: 1px solid var(--border-color) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  padding: 4px !important;
}

/* Top align total column content and keep right-aligned */
.wc-block-cart-item__total {
  text-align: right !important;
  align-self: start !important;
  display: flex !important;
  align-items: flex-start !important; /* Top-align the inner price tag */
  justify-content: flex-end !important; /* Keep it right-aligned */
  vertical-align: top !important;
}

/* Modern Quantity Selector Box styling */
.wc-block-components-quantity-selector {
  border: 1px solid var(--border-color) !important;
  background: rgba(13, 60, 89, 0.4) !important;
  border-radius: 8px !important;
  padding: 2px !important;
  max-width: 120px !important;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
  color: var(--text-primary) !important;
  background: transparent !important;
  font-weight: 700 !important;
  border: none !important;
}

.wc-block-components-quantity-selector button {
  color: var(--text-secondary) !important;
  border: none !important;
}

.wc-block-components-quantity-selector button:hover {
  color: var(--accent-color) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 6px !important;
}

/* Cart Item Remove / Trash Button styling */
.wc-block-cart-item__remove,
.wc-block-cart-item__remove-num-items {
  color: var(--text-muted) !important;
  transition: var(--transition-smooth) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
}

.wc-block-cart-item__remove:hover,
.wc-block-cart-item__remove-num-items:hover {
  color: #ff334b !important;
}

/* Cart Totals Sidebar Panel */
.wc-block-cart__sidebar,
.wc-block-components-totals-wrapper,
.wc-block-checkout__sidebar {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px !important;
  padding: 2.25rem !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Prevent double-nesting backgrounds and borders inside Cart/Checkout Sidebars */
.wc-block-cart__sidebar .wc-block-components-totals-wrapper,
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.wc-block-components-totals-wrapper > div,
.wc-block-components-totals-wrapper > section,
.wc-block-components-totals-wrapper > ul,
.wc-block-components-totals-wrapper .wc-block-components-totals-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.5rem 0 !important;
  margin-bottom: 0 !important;
}

/* Totals Items descriptions */
.wc-block-components-totals-item,
.wc-block-components-totals-shipping,
.wc-block-components-totals-taxes,
.wc-block-components-totals-discount {
  color: var(--text-secondary) !important;
  font-size: 0.95rem !important;
  border: none !important;
  background: transparent !important;
  padding: 0.5rem 0 !important;
}

.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value,
.wc-block-components-totals-shipping__value {
  color: var(--text-primary) !important;
}

/* Totals footer (Grand Total) */
.wc-block-components-totals-footer-item {
  border-top: 1px solid var(--border-color) !important;
  padding-top: 1.5rem !important;
  margin-top: 1rem !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  color: var(--text-primary) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--text-primary) !important;
  font-size: 1.40rem !important;
  font-weight: 800 !important;
}

/* Coupon Panels overrides - transparent, sleek line item */
.wc-block-components-panel {
  border: none !important;
  border-bottom: 1px solid var(--border-color) !important;
  background: transparent !important;
  border-radius: 0 !important;
  margin-bottom: 1.5rem !important;
  padding: 0.5rem 0 !important;
}

.wc-block-components-panel__button {
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}

/* Checkout Block Fields styling overrides */
.wc-block-components-text-input input,
.wc-block-components-combobox select,
.wc-block-components-textarea textarea {
  background: rgba(13, 60, 89, 0.3) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  color: var(--text-primary) !important;
  padding: 12px 14px !important;
  font-family: var(--font-body) !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-combobox select:focus,
.wc-block-components-textarea textarea:focus {
  border-color: var(--accent-color) !important;
  background: rgba(13, 60, 89, 0.5) !important;
  box-shadow: 0 0 10px rgba(39, 184, 184, 0.2) !important;
}

/* Checkout block buttons override */
.wc-block-components-checkout-button,
.wc-block-components-button,
.wc-block-components-checkout-button button,
.wc-block-components-button button {
  background-color: var(--accent-color) !important;
  color: var(--bg-primary) !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border-radius: 30px !important;
  padding: 16px 32px !important;
  border: none !important;
  transition: var(--transition-smooth) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: var(--shadow-sm) !important;
}

.wc-block-components-checkout-button:hover,
.wc-block-components-button:hover,
.wc-block-components-checkout-button button:hover,
.wc-block-components-button button:hover {
  background-color: var(--accent-secondary) !important;
  color: var(--bg-primary) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-md) !important;
}

/* =========================================================================
   WooCommerce Single Product Page Tabs (Modern Design System)
   ========================================================================= */

/* 1. Tabs Container Layout */
.woocommerce-tabs {
  margin-top: 3.5rem !important;
  margin-bottom: 3.5rem !important;
}

.woocommerce-tabs ul.tabs {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  gap: 8px !important;
  border-bottom: 2px solid var(--border-color) !important;
  background: transparent !important;
}

/* Individual Tab Items */
.woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(13, 60, 89, 0.2) !important;
  border: 1px solid var(--border-color) !important;
  border-bottom: none !important;
  border-radius: 12px 12px 0 0 !important;
  transition: var(--transition-smooth) !important;
  position: relative !important;
  top: 2px !important; /* Overlap border-bottom slightly */
  z-index: 1 !important;
}

.woocommerce-tabs ul.tabs li a {
  display: block !important;
  padding: 12px 24px !important;
  color: var(--text-secondary) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
  transition: var(--transition-smooth) !important;
}

/* Hover State */
.woocommerce-tabs ul.tabs li:hover {
  background: rgba(13, 60, 89, 0.4) !important;
  border-color: var(--accent-color) !important;
}

.woocommerce-tabs ul.tabs li:hover a {
  color: var(--accent-color) !important;
}

/* Active State */
.woocommerce-tabs ul.tabs li.active {
  background: var(--bg-secondary) !important;
  border-color: var(--accent-color) !important;
  z-index: 2 !important;
}

.woocommerce-tabs ul.tabs li.active a {
  color: var(--text-primary) !important;
}

/* Active Tab Glow Bar Top */
.woocommerce-tabs ul.tabs li.active::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: var(--accent-color) !important;
  border-radius: 12px 12px 0 0 !important;
  box-shadow: 0 0 10px rgba(39, 184, 184, 0.5) !important;
}

/* 2. Tab Content Panel */
.woocommerce-tabs .woocommerce-Tabs-panel,
.woocommerce-tabs .panel {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-top: none !important;
  border-radius: 0 0 20px 20px !important;
  padding: 2.5rem !important;
  box-shadow: var(--shadow-sm) !important;
  color: var(--text-secondary) !important;
}

/* Content Headings inside panels */
.woocommerce-tabs .woocommerce-Tabs-panel h2,
.woocommerce-tabs .panel h2 {
  font-size: 1.5rem !important;
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
  color: var(--text-primary) !important;
  font-family: var(--font-display) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* Paragraph styling inside panels */
.woocommerce-tabs .woocommerce-Tabs-panel p,
.woocommerce-tabs .panel p {
  color: var(--text-secondary) !important;
  line-height: 1.7 !important;
  margin-bottom: 1.5rem !important;
}

/* List elements inside panels */
.woocommerce-tabs .woocommerce-Tabs-panel ul,
.woocommerce-tabs .panel ul {
  padding-left: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  color: var(--text-secondary) !important;
}

.woocommerce-tabs .woocommerce-Tabs-panel ul li,
.woocommerce-tabs .panel ul li {
  margin-bottom: 0.5rem !important;
  line-height: 1.6 !important;
}

/* =========================================================================
   Menu Submenus & Toggleable Dropdowns
   ========================================================================= */

/* Parent item layout */
.nav-menu li,
.pill-nav-menu li {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

/* Allow expanded floating pill menu to overlay submenus without clipping */
.floating-nav-pill.expanded {
  overflow: visible !important;
}

/* Sub-toggle Arrow Button style */
.sub-toggle {
  background: transparent !important;
  border: none !important;
  color: var(--text-secondary) !important;
  cursor: pointer !important;
  padding: 8px !important;
  margin-left: 2px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: var(--transition-smooth) !important;
  outline: none !important;
  z-index: 5 !important;
}

.sub-toggle:hover {
  color: var(--accent-color) !important;
}

.sub-toggle .chevron-icon {
  transition: transform 0.3s ease !important;
  stroke: currentColor;
}

/* Rotate chevron when submenu is open */
.submenu-open > .sub-toggle .chevron-icon,
li.menu-item-has-children:hover > .sub-toggle .chevron-icon {
  transform: rotate(180deg) !important;
  color: var(--accent-color) !important;
}

/* 1. Desktop Header Dropdowns (min-width: 901px) */
@media (min-width: 901px) {
  /* Position sub-menu container */
  .nav-menu .sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: rgba(9, 37, 51, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    min-width: 200px !important;
    box-shadow: var(--shadow-md) !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    z-index: 9999 !important;
    
    /* Animation states */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s !important;
    display: block !important; /* Force block so visibility/opacity transition works */
  }

  /* Show dropdown on hover or open class */
  .nav-menu li.menu-item-has-children:hover > .sub-menu,
  .nav-menu li.submenu-open > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  /* Sub-menu items */
  .nav-menu .sub-menu li {
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .nav-menu .sub-menu li a {
    display: block !important;
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    text-transform: none !important;
    transition: var(--transition-smooth) !important;
    border-left: 2px solid transparent !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .nav-menu .sub-menu li a:hover {
    background: rgba(39, 184, 184, 0.08) !important;
    color: var(--accent-color) !important;
    border-left-color: var(--accent-color) !important;
    text-decoration: none !important;
  }
}

/* 2. Mobile Header Submenus (Vertical Accordion) */
@media (max-width: 900px) {
  .nav-menu .sub-menu {
    width: 100% !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
    border-left: 1px dashed var(--border-color) !important;
    margin-left: 12px !important;
  }

  .nav-menu .sub-menu.open,
  .nav-menu li.submenu-open > .sub-menu {
    max-height: 500px !important;
    opacity: 1 !important;
    padding: 8px 0 4px 12px !important;
    margin-top: 4px !important;
  }

  .nav-menu .sub-menu li {
    width: 100% !important;
    margin: 0 !important;
    padding: 4px 0 !important;
  }

  .nav-menu .sub-menu li a {
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
    display: block !important;
    width: 100% !important;
  }
}

/* 3. Floating Pill Submenu Layout (Upwards on Desktop, Accordion on Mobile) */
@media (min-width: 769px) {
  .pill-nav-menu .sub-menu {
    position: absolute !important;
    bottom: 100% !important; /* Open upwards */
    top: auto !important;
    left: 0 !important;
    background: rgba(9, 37, 51, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    min-width: 180px !important;
    box-shadow: var(--shadow-md) !important;
    padding: 8px 0 !important;
    margin: 0 0 10px 0 !important;
    list-style: none !important;
    z-index: 9999 !important;
    
    /* Animation states */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s !important;
    display: block !important;
  }

  .pill-nav-menu li.menu-item-has-children:hover > .sub-menu,
  .pill-nav-menu li.submenu-open > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  .pill-nav-menu .sub-menu li {
    width: 100% !important;
    display: block !important;
  }

  .pill-nav-menu .sub-menu li a {
    display: block !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    color: var(--text-secondary) !important;
    border-left: 2px solid transparent !important;
  }

  .pill-nav-menu .sub-menu li a:hover {
    background: rgba(39, 184, 184, 0.08) !important;
    color: var(--accent-color) !important;
    border-left-color: var(--accent-color) !important;
  }
}

/* Mobile Floating Pill Accordion */
@media (max-width: 768px) {
  .pill-nav-menu .sub-menu {
    width: 100% !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
    border-left: 1px dashed var(--border-color) !important;
    margin-left: 12px !important;
  }

  .pill-nav-menu .sub-menu.open,
  .pill-nav-menu li.submenu-open > .sub-menu {
    max-height: 500px !important;
    opacity: 1 !important;
    padding: 8px 0 4px 12px !important;
    margin-top: 4px !important;
  }

  .pill-nav-menu .sub-menu li {
    width: 100% !important;
    margin: 0 !important;
    padding: 4px 0 !important;
  }

  .pill-nav-menu .sub-menu li a {
    font-size: 0.85rem !important;
    color: var(--text-secondary) !important;
    display: block !important;
    width: 100% !important;
  }
}


/* =========================================================================
   11. BRANDED BLOG & JOURNAL STYLING
   ========================================================================= */

.blog-listing-container {
  padding: 6rem 2rem;
  min-height: 50vh;
}

@media (max-width: 768px) {
  .blog-listing-container {
    padding: 4rem 1.25rem;
  }
}

/* Blog Header */
.blog-header {
  margin-bottom: 4rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.blog-title {
  font-size: 3.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.blog-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .blog-title {
    font-size: 2.5rem;
  }
  .blog-subtitle {
    font-size: 1.05rem;
  }
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 5rem;
}

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

/* Blog Card */
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: row; /* Desktop horizontal: Image left, text right */
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  background: var(--card-hover-bg);
  box-shadow: var(--shadow-md), 0 0 20px rgba(39, 184, 184, 0.08);
}

/* Blog Image Wrapper */
.blog-card-image-link {
  display: block;
  flex: 0 0 40%; /* Image takes 40% width on desktop */
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(9, 37, 51, 0.4);
  border-right: 1px solid var(--border-color);
  border-bottom: none;
  position: relative;
}

@media (max-width: 768px) {
  .blog-card {
    flex-direction: column; /* Stacked layout on mobile */
  }
  .blog-card-image-link {
    flex: 0 0 auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .blog-card-content {
    padding: 1.5rem;
  }
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-img {
  transform: scale(1.05);
}

/* Placeholder Gradient when no featured image is set */
.blog-placeholder-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d3c59 0%, #092533 100%);
  position: relative;
}

.blog-placeholder-gradient::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(39, 184, 184, 0.15) 0%, transparent 60%);
}

/* Blog Card Content */
.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.blog-card-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
}

.blog-card-category-tag {
  font-size: 0.75rem;
  color: var(--accent-color);
  background: rgba(39, 184, 184, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(39, 184, 184, 0.15);
}

/* Theme adaptation for category badges */
[data-theme="trans-queer"] .blog-card-category-tag {
  color: var(--accent-color);
  background: rgba(219, 39, 119, 0.1);
  border-color: rgba(219, 39, 119, 0.15);
}

[data-theme="cyber-bear"] .blog-card-category-tag {
  color: var(--accent-color);
  background: rgba(255, 87, 34, 0.1);
  border-color: rgba(255, 87, 34, 0.15);
}

.blog-card-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.blog-card-title a:hover {
  color: var(--accent-color);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-card-excerpt p {
  margin: 0;
  color: var(--text-secondary);
}

.blog-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
}

.blog-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: gap 0.3s ease, color 0.3s ease;
}

.blog-card-read-more svg {
  transition: transform 0.3s ease;
}

.blog-card-read-more:hover {
  color: var(--text-primary);
  gap: 0.75rem;
}

.blog-card-read-more:hover svg {
  transform: translateX(3px);
}

/* Custom Blog Pagination */
.navigation.pagination {
  margin-top: 4rem;
  text-align: center;
}

.navigation.pagination h2.screen-reader-text {
  display: none;
}

.navigation.pagination .nav-links {
  display: inline-flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.navigation.pagination .page-numbers.current {
  background: var(--accent-color);
  color: var(--bg-primary);
  border-color: var(--accent-color);
}

.navigation.pagination .page-numbers:hover:not(.current) {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: rgba(39, 184, 184, 0.08);
  transform: translateY(-2px);
}

.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
  width: auto;
  padding: 0 1.25rem;
  border-radius: 24px;
}


/* =========================================================================
   12. FRONT PAGE NEWS & EVENTS SECTION STYLING
   ========================================================================= */

.front-journal-section {
  padding: 6rem 0;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(9, 37, 51, 0.2) 0%, rgba(9, 37, 51, 0) 100%);
}

.journal-two-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 991px) {
  .front-journal-section {
    padding: 4rem 0;
  }
  .journal-two-column-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.journal-column {
  display: flex;
  flex-direction: column;
}

.journal-column .column-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.journal-column .column-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin: 0;
}

.journal-column .view-all-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}

.journal-column .view-all-link:hover {
  color: var(--accent-secondary);
  transform: translateX(4px);
}

.journal-column-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Horizontal card on front page */
.front-journal-card {
  display: flex;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  align-items: center;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth);
}

.front-journal-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--card-hover-bg);
  box-shadow: var(--shadow-sm), 0 0 15px rgba(39, 184, 184, 0.05);
}

.front-journal-img-link {
  display: block;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
  background: rgba(9, 37, 51, 0.4);
}

.front-journal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--transition-smooth);
}

.front-journal-card:hover .front-journal-img {
  transform: scale(1.06);
}

/* Fallback gradient when no thumbnail is set */
.front-journal-placeholder-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d3c59 0%, #092533 100%);
  position: relative;
}

.front-journal-placeholder-gradient::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(39, 184, 184, 0.12) 0%, transparent 60%);
}

.front-journal-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.front-journal-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.front-journal-title {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 0.4rem;
  white-space: normal;
  word-wrap: break-word;
}

.front-journal-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.front-journal-title a:hover {
  color: var(--accent-color);
}

.front-journal-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Empty State Fallback Placement styling */
.front-journal-placeholder {
  background: var(--card-bg);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
}

.front-journal-placeholder p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}


/* =========================================================================
   13. SINGLE POST LAYOUT STYLING
   ========================================================================= */

.single-post-container {
  max-width: 1400px;
  margin: 0 auto;
}

.single-post-grid {
  display: grid;
  grid-template-columns: 4.5fr 5.5fr; /* Left col: 45%, Right col: 55% */
  gap: 4rem;
  align-items: start;
}

.single-post-image-col {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.single-post-hero-wrapper {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  background: rgba(9, 37, 51, 0.4);
}

.single-post-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.single-post-content-col {
  display: flex;
  flex-direction: column;
}

.single-post-header {
  margin-bottom: 2rem;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.single-post-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
}

.single-post-title {
  font-size: 3.5rem;
  color: var(--text-primary);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin: 0;
}

.single-post-body {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.8;
}

.single-post-body p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.single-post-body h2,
.single-post-body h3 {
  color: var(--text-primary);
  margin-top: 2.2rem;
  margin-bottom: 1rem;
}

.single-post-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.single-post-tags {
  font-size: 0.95rem;
}

.single-post-tags .tags-title {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  margin-right: 0.5rem;
}

.single-post-tags a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.single-post-tags a:hover {
  color: var(--accent-secondary);
}

/* Tablet & Mobile responsive fallback layout */
@media (max-width: 1024px) {
  .single-post-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 3rem;
  }
  
  .single-post-image-col {
    position: static;
  }
  
  .single-post-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .single-post-title {
    font-size: 2.2rem;
  }
  .single-post-body {
    font-size: 1.05rem;
  }
}


/* =========================================================================
   14. COLLECTIONS LIST PAGE STYLING
   ========================================================================= */

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.collection-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.collection-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  background: var(--card-hover-bg);
  box-shadow: var(--shadow-md), 0 0 20px rgba(39, 184, 184, 0.08);
}

.collection-img-link-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(9, 37, 51, 0.4);
  border-bottom: 1px solid var(--border-color);
}

.collection-img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.collection-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-card:hover .collection-img {
  transform: scale(1.05);
}

.collection-placeholder-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d3c59 0%, #092533 100%);
  position: relative;
}

.collection-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.collection-card-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.collection-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.collection-card-title a:hover {
  color: var(--accent-color);
}

.collection-card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.collection-card-btn {
  margin-top: auto;
  align-self: flex-start;
}


/* =========================================================================
   15. FOOTER MENU SUBMENU TOGGLE STYLING
   ========================================================================= */

.footer-col li.menu-item-has-children {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.footer-col li.menu-item-has-children > a {
  flex: 1 !important;
}

.footer-col .sub-menu {
  width: 100% !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
  border-left: 1px dashed var(--border-color) !important;
  margin-left: 12px !important;
  margin-top: 0 !important;
}

.footer-col .sub-menu.open,
.footer-col li.submenu-open > .sub-menu {
  max-height: 500px !important;
  opacity: 1 !important;
  padding: 6px 0 2px 12px !important;
  margin-top: 6px !important;
}

.footer-col .sub-menu li {
  width: 100% !important;
  padding: 2px 0 !important;
}

.footer-col .sub-menu li a {
  font-size: 0.85rem !important;
  color: var(--text-secondary) !important;
}









