/* Scandinavian Theme - Clean, Functional, Natural Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&display=swap');

[data-theme="scandinavian"] {
  /* Core Variables */
  --scandi-font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --scandi-font-secondary: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --scandi-primary: #4A6670;    /* Muted blue-gray */
  --scandi-secondary: #8C9A9E;  /* Lighter blue-gray */
  --scandi-accent: #D4B483;     /* Warm beige */
  --scandi-success: #7A956B;    /* Sage green */
  --scandi-bg: #F9F7F7;         /* Off-white */
  --scandi-text: #2C363F;       /* Deep charcoal */
  --scandi-text-light: #6E7C7C; /* Muted text */
  --scandi-border: #E5E9EC;     /* Light gray border */
  --scandi-surface: #FFFFFF;    /* Pure white surface */
  --scandi-shadow: rgba(0, 0, 0, 0.03);
}

/* Base Styles */
[data-theme="scandinavian"] body {
  font-family: var(--scandi-font-primary);
  background-color: var(--scandi-bg) !important;
  color: var(--scandi-text);
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* Typography */
[data-theme="scandinavian"] h1,
[data-theme="scandinavian"] h2,
[data-theme="scandinavian"] h3 {
  font-family: var(--scandi-font-primary);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--scandi-text);
}

[data-theme="scandinavian"] h1 {
  font-size: 2.75rem;
  line-height: 1.2;
}

[data-theme="scandinavian"] h2 {
  font-size: 2.25rem;
  line-height: 1.3;
}

[data-theme="scandinavian"] h3 {
  font-size: 1.75rem;
  line-height: 1.4;
}

/* Fix for page content height */
[data-theme="scandinavian"] main#content.not-iframe {
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
}

[data-theme="scandinavian"] .content {
  flex: 1;
}

/* Product Grid */
[data-theme="scandinavian"] .product-item {
  background-color: var(--scandi-surface);
  border-radius: 2px;
  border: 1px solid var(--scandi-border);
  transition: all 0.3s ease;
}

[data-theme="scandinavian"] .product-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px var(--scandi-shadow);
}

[data-theme="scandinavian"] .product-details {
  padding: 1.5rem;
}

/* Buttons */
[data-theme="scandinavian"] .btn {
  border-radius: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  border: 1px solid var(--scandi-border);
}

[data-theme="scandinavian"] .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-color: rgba(110, 124, 124, 0.1) !important;
  outline: 1px solid rgba(110, 124, 124, 0.1) !important;
}

[data-theme="scandinavian"] .btn:focus {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  border-color: rgba(110, 124, 124, 0.1) !important;
  outline: 1px solid rgba(110, 124, 124, 0.1) !important;
}

/* Primary action buttons */
[data-theme="scandinavian"] .btn-success,
[data-theme="scandinavian"] .buy-now {
  background: var(--scandi-success) !important;
  border: none !important;
  color: white !important;
  box-shadow: none;
}

[data-theme="scandinavian"] .btn-success:hover,
[data-theme="scandinavian"] .buy-now:hover {
  background: var(--scandi-success) !important;
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Secondary buttons */
[data-theme="scandinavian"] .btn-primary {
  background: var(--scandi-primary) !important;
  border: none !important;
  color: white !important;
}

[data-theme="scandinavian"] .btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Ghost buttons */
[data-theme="scandinavian"] .btn-ghost-secondary {
  border: none !important;
  box-shadow: none !important;
}

/* Cards and Surfaces */
[data-theme="scandinavian"] .card {
  background: var(--scandi-surface);
  border: 1px solid var(--scandi-border) !important;
  border-radius: 2px;
  box-shadow: none;
}

[data-theme="scandinavian"] .card-body {
  padding: 1.5rem;
}

/* Navigation */
[data-theme="scandinavian"] .navbar {
  background: var(--scandi-surface) !important;
  border-bottom: 1px solid var(--scandi-border);
}

@media (min-width: 768px) {
  [data-theme="scandinavian"] .navbar {
    padding: 1rem 2rem;
  }
}

[data-theme="scandinavian"] .navbar.navbar-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

[data-theme="scandinavian"] .navbar-brand {
  font-family: var(--scandi-font-primary);
  font-weight: 500;
  letter-spacing: -0.02em;
}

[data-theme="scandinavian"] #brand_name {
  font-family: var(--scandi-font-secondary);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Circular Buttons */
[data-theme="scandinavian"] .btn-ghost-secondary.cart-button.btn-icon.rounded-circle,
[data-theme="scandinavian"] .btn-ghost-secondary.btn-icon.rounded-circle {
  border-radius: 50% !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0.5rem !important;
  position: relative !important;
  border: none !important;
  outline: none !important;
}

[data-theme="scandinavian"] .btn-ghost-secondary.cart-button.btn-icon.rounded-circle:hover,
[data-theme="scandinavian"] .btn-ghost-secondary.btn-icon.rounded-circle:hover {
  background: var(--scandi-bg) !important;
  transform: translateY(-1px);
  outline: none !important;
  box-shadow: none !important;
}

[data-theme="scandinavian"] .btn-ghost-secondary.cart-button.btn-icon.rounded-circle:focus,
[data-theme="scandinavian"] .btn-ghost-secondary.btn-icon.rounded-circle:focus {
  outline: none !important;
  box-shadow: none !important;
}

[data-theme="scandinavian"] span#cart_count {
  right: 0 !important;
  top: 0 !important;
  padding-top: 0.2em !important;
}

/* Category Headers */
[data-theme="scandinavian"] .category-header {
  background: var(--scandi-surface) !important;
  border-bottom: 1px solid var(--scandi-border);
  color: var(--scandi-text);
  font-weight: 300;
  letter-spacing: 0.02em;
  padding: 0.5rem !important;
}

/* Footer */
[data-theme="scandinavian"] footer#store_footer {
  background: var(--scandi-surface);
  border-top: 1px solid var(--scandi-border);
  padding: 3rem 0;
  color: var(--scandi-text-light);
}

[data-theme="scandinavian"] footer#store_footer a {
  color: var(--scandi-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

[data-theme="scandinavian"] footer#store_footer a:hover {
  border-bottom-color: var(--scandi-text);
}

/* Product Sidebar */
[data-theme="scandinavian"] #right_panel {
  background: var(--scandi-surface) !important;
  border: 1px solid var(--scandi-border) !important;
  border-radius: 2px !important;
  padding: 1rem !important;
}

/* Price Display */
[data-theme="scandinavian"] #product_price {
  background: var(--scandi-bg) !important;
  border: 1px solid var(--scandi-border) !important;
  border-radius: 2px !important;
  font-weight: 300;
}

/* What You'll Get Section */
[data-theme="scandinavian"] #right_panel .card {
  background: var(--scandi-bg);
  border: none !important;
  padding: 1.5rem;
}

[data-theme="scandinavian"] #right_panel .card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

/* File List */
[data-theme="scandinavian"] #right_panel .list-py-2 {
  background: var(--scandi-surface);
  border-radius: 2px;
  padding: 1rem !important;
}

[data-theme="scandinavian"] #right_panel .list-py-2 li {
  padding: 0.75rem 0 !important;
  border-bottom: 1px solid var(--scandi-border);
}

/* Countdown Timer */
[data-theme="scandinavian"] #countdown_timer {
  background: var(--scandi-bg) !important;
  border: 1px solid var(--scandi-border) !important;
  border-radius: 2px !important;
}

[data-theme="scandinavian"] #countdown_timer .text-dark {
  color: var(--scandi-text) !important;
  font-weight: 300;
}

/* Form Elements */
[data-theme="scandinavian"] .form-control,
[data-theme="scandinavian"] .ts-control {
  border: 1px solid var(--scandi-border);
  border-radius: 2px;
  padding: 0.75rem;
  font-weight: 300;
}

/* Dropdowns */
[data-theme="scandinavian"] .dropdown-menu {
  border: 1px solid var(--scandi-border);
  border-radius: 2px;
  box-shadow: 0 5px 15px var(--scandi-shadow);
}

[data-theme="scandinavian"] .dropdown-item {
  font-weight: 300;
  padding: 0.75rem 1rem;
}

/* Cart Items */
[data-theme="scandinavian"] .cart-item {
  background: var(--scandi-surface);
  border: 1px solid var(--scandi-border);
  border-radius: 2px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* Testimonials */
[data-theme="scandinavian"] .testimonial {
  background: var(--scandi-bg);
  border: 1px solid var(--scandi-border);
  border-radius: 2px;
  padding: 2rem;
}

/* Alerts */
[data-theme="scandinavian"] .alert {
  border-radius: 2px;
  border: 1px solid var(--scandi-border);
}

/* Badges */
[data-theme="scandinavian"] .badge {
  padding: 0.25rem !important;
  background-color: var(--scandi-bg);
  border: 1px solid var(--scandi-border);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Tom Select Customization */
[data-theme="scandinavian"] .tom-select-custom .ts-control {
  height: 38px !important;
  border-radius: 2px;
  border: 1px solid var(--scandi-border);
}

[data-theme="scandinavian"] .tom-select-custom .ts-dropdown {
  border-radius: 2px;
  border: 1px solid var(--scandi-border);
  box-shadow: 0 5px 15px var(--scandi-shadow);
}

/* Product Variants */
[data-theme="scandinavian"] .form-check-label-highlighter .form-check-label {
  background: var(--scandi-surface);
  border: 1px solid var(--scandi-border);
  border-radius: 2px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

[data-theme="scandinavian"] .form-check-label-highlighter .form-check-input:checked ~ .form-check-label {
  border-color: var(--scandi-primary);
}

[data-theme="scandinavian"] .nav-link.active {
  border-bottom-color: var(--scandi-success) !important;
  border-left-color: transparent !important;
  border-right-color: transparent !important;
  border-top-color: transparent !important;
  color: var(--scandi-success) !important;
}

[data-theme="scandinavian"] .nav-link {
  border-color: transparent !important;
  color: var(--scandi-text-light) !important;
}

[data-theme="scandinavian"] .nav-link:hover {
  border-bottom-color: var(--scandi-success) !important;
  border-left-color: transparent !important;
  border-right-color: transparent !important;
  border-top-color: transparent !important;

  color: var(--scandi-success) !important;
}

/* Cart Page Specific */
[data-theme="scandinavian"] .cart-page .btn-primary,
[data-theme="scandinavian"] .cart-page .btn-outline-primary:hover {
  color: var(--scandi-text) !important;
}

/* Cart Items */
[data-theme="scandinavian"] .cart-item select,
[data-theme="scandinavian"] .cart-item .form-select {
  font-family: var(--scandi-font-primary) !important;
  border: 1px solid var(--scandi-border);
  border-radius: 2px;
  padding: 0.75rem;
  font-weight: 300;
}

/* Buyer Div */
[data-theme="scandinavian"] div#buyer_div .card-body * {
  font-family: var(--scandi-font-primary) !important;
}

/* Cart Paid */
[data-theme="scandinavian"] #cart_paid {
  min-height: calc(100vh - 400px);
  background: var(--scandi-bg);
}

/* Logo */
[data-theme="scandinavian"] .navbar-brand-logo {
}

@media (min-width: 768px) {
  [data-theme="scandinavian"] .navbar-brand-logo {
    margin-left: 1em !important;
  }
}

/* Powered By Section */
[data-theme="scandinavian"] div#powered_by a {
  color: var(--scandi-text) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

[data-theme="scandinavian"] div#powered_by a:hover {
  border-bottom-color: var(--scandi-text);
}

/* Right Panel */
[data-theme="scandinavian"] div#right_panel {
  border: 1px solid var(--scandi-border) !important;
  border-radius: 2px !important;
}

/* Cart and Category Buttons */
[data-theme="scandinavian"] .btn-ghost-secondary.cart-button.btn-icon.rounded-circle,
[data-theme="scandinavian"] .btn-ghost-secondary.btn-icon.rounded-circle {
  border-radius: 50% !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0.5rem !important;
  position: relative !important;
  border: none !important;
  outline: none !important;
}

/* Ensure the nav items have proper spacing */
[data-theme="scandinavian"] #store_navbar .nav-item {
  margin: 0 0.25rem !important;
  position: relative !important;
}

/* Add padding to the navbar nav wrap to prevent shadow clipping */
[data-theme="scandinavian"] .navbar-nav-wrap {
  padding: 0.5rem !important;
}

/* Header */
[data-theme="scandinavian"] header#header {
  border-bottom: 1px solid var(--scandi-border);
  border-left: 1px solid var(--scandi-border);
  border-top: 0 !important;
}

/* Tags */
[data-theme="scandinavian"] div#tags .badge {
  background: var(--scandi-bg) !important;
  color: var(--scandi-text-light) !important;
  border: 1px solid var(--scandi-border);
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0.25rem !important;
}

/* Fix for page content height */
[data-theme="scandinavian"] main#content.not-iframe {
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
}

[data-theme="scandinavian"] .content {
  flex: 1;
}

@media (max-width: 767.98px) {
  [data-theme="scandinavian"] header#header {
    background: var(--scandi-surface) !important;
  }

  [data-theme="scandinavian"] .ms-auto {
    display: flex !important;
    align-items: center !important;
  }
  [data-theme="scandinavian"] .navbar-nav-wrap {
    padding: 0 .5rem !important;
  }
  [data-theme="scandinavian"] .navbar {
    padding: 0 1rem !important;
  }
}

[data-theme="scandinavian"] .ms-auto {
  display: flex !important;
  align-items: center !important;
} 