/**
 * Offline layout for Flatsome/WooCommerce static export.
 * Replaces missing theme CSS when opening index.html without network.
 */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: #111;
  background: #680146;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: #0e5770;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.skip-link.screen-reader-text {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999999;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
}

.skip-link.screen-reader-text:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  word-wrap: normal !important;
}

.container {
  width: 100%;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.flex-col {
  flex: 0 0 auto;
}

.flex-col.flex-grow { flex: 1 1 auto; min-width: 0; }
.flex-left { margin-right: auto; }
.flex-right { margin-left: auto; }
.flex-center { justify-content: center; }

.header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.header-main {
  padding: 0.75rem 0;
}

.header-inner.flex-row {
  justify-content: space-between;
}

#logo img {
  display: block;
}

.hide-for-medium { display: block; }
.show-for-medium { display: none; }

@media (max-width: 849px) {
  .hide-for-medium { display: none !important; }
  .show-for-medium { display: flex !important; }
}

.nav, .nav ul, .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav > li {
  position: relative;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
}

.header-nav > li > a,
.mobile-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem;
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.header-bottom {
  background: #771557 !important;
  padding: 0.35rem 0;
}

.header-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
}

.header-bottom-nav > li > a {
  color: #fff !important;
  padding: 0.5rem 0.25rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.header-bottom-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 100;
  padding: 0.5rem 0;
}

.header-bottom-nav li:hover > .sub-menu {
  display: block;
}

.header-bottom-nav .sub-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333 !important;
  text-transform: none;
  font-weight: 500;
}

.header-bottom-nav .sub-menu a:hover {
  background: #f5f5f5;
}

/* Icon font fallback (theme icons) */
i[class^="icon-"] {
  font-style: normal;
  speak: none;
  display: inline-block;
  line-height: 1;
}

.icon-menu::before { content: "☰"; font-size: 1.1em; }
.icon-search::before { content: "⌕"; font-size: 1.1em; }
.icon-user::before { content: "👤"; font-size: 0.95em; }
.icon-shopping-basket::before { content: "🛒"; font-size: 0.95em; }
.icon-angle-down::before { content: "▾"; font-size: 0.65em; margin-left: 0.2em; opacity: 0.85; }
.icon-angle-up::before { content: "▴"; }

.nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 280px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200;
  padding: 0.75rem;
  display: none;
}

.has-dropdown:hover > .nav-dropdown {
  display: block;
}

.searchform .flex-row {
  gap: 0.5rem;
}

.search-field {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.button, button[type="submit"], .ux-search-submit {
  cursor: pointer;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.submit-button.secondary, .secondary.button {
  background: #2a87a6;
  color: #fff;
}

#main {
  flex: 1;
  background: #fff;
}

.content-area {
  padding-bottom: 2rem;
}

/* Hero slider: stack banners, show backgrounds */
.slider-wrapper {
  margin-bottom: 1.5rem;
}

.slider {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.banner {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.banner-inner {
  position: relative;
}

.banner-bg .bg {
  min-height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #2a1a24;
}

@media (min-width: 550px) {
  .banner-bg .bg { min-height: 280px; }
}

.banner .bg-loaded {
  opacity: 1;
}

.banner-layers.container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.banner-layers a.fill {
  pointer-events: auto;
}

.text-box-content {
  padding: 1rem 1.25rem;
  border-radius: 4px;
}

.loading-spin {
  display: none !important;
}

/* Product grids */
.row.large-columns-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 550px) {
  .row.large-columns-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 850px) {
  .row.large-columns-4 { grid-template-columns: repeat(4, 1fr); }
}

.product-small .col-inner {
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  background: #fff;
  transition: box-shadow 0.2s;
}

.product-small .col-inner:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.box-image {
  position: relative;
}

.box-text {
  padding: 0.75rem 1rem 1rem;
}

.product-title {
  font-size: 0.95rem;
  margin: 0.35rem 0;
  line-height: 1.3;
}

.product-cat {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #666;
  margin: 0;
}

.price ins {
  text-decoration: none;
  color: #771557;
  font-weight: 700;
}

.price del {
  color: #888;
  margin-right: 0.35rem;
}

.section-title-container {
  text-align: center;
  margin: 2rem 0 1rem;
}

.section-title {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Featured rows / columns */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.col, .large-6 {
  flex: 1 1 100%;
}

@media (min-width: 850px) {
  .large-6 { flex: 1 1 calc(50% - 0.5rem); max-width: calc(50% - 0.5rem); }
}

.col-inner {
  padding: 0.5rem;
}

/* Footer */
.footer-wrapper {
  margin-top: auto;
}

.footer-2, .footer-widgets {
  background: #821a5f !important;
  color: #f5e6f0;
  padding: 2rem 0 1rem;
}

.footer-widgets .row {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 550px) {
  .footer-widgets .row { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 850px) {
  .footer-widgets .row { grid-template-columns: repeat(4, 1fr); }
}

.footer-widgets .widget-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.footer-widgets a {
  color: #fff;
  opacity: 0.9;
}

.footer-widgets .menu a {
  display: block;
  padding: 0.25rem 0;
}

.is-divider {
  height: 1px;
  background: rgba(255,255,255,0.25);
  margin: 0.5rem 0 1rem;
}

.absolute-footer {
  background: #680146 !important;
  color: rgba(255,255,255,0.85);
  padding: 1rem;
  font-size: 0.85rem;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.5rem 0;
}

.payment-icon svg {
  height: 24px;
  width: auto;
  fill: currentColor;
  opacity: 0.85;
}

.back-to-top {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #771557;
  background: #fff;
  color: #771557;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  text-decoration: none;
}

/* Mobile sidebar menu */
#main-menu.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 88vw);
  height: 100vh;
  background: #fff;
  z-index: 10000;
  overflow-y: auto;
  padding: 1rem;
  box-shadow: 4px 0 24px rgba(0,0,0,0.2);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

#main-menu.mobile-sidebar.is-open {
  transform: translateX(0);
}

#main-menu.mfp-hide {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}

#main-menu.mobile-sidebar.is-open.mfp-hide {
  visibility: visible;
  pointer-events: auto;
}

.ux-body-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
}

.ux-body-overlay.is-visible {
  display: block;
}

.nav-sidebar > li {
  border-bottom: 1px solid #eee;
}

.nav-sidebar > li > a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 700;
  color: #333;
}

.nav-sidebar-ul.children {
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

.nav-sidebar-ul.children a {
  font-weight: 500;
  padding: 0.4rem 0;
  display: block;
}

/* Popups hidden by default */
.mfp-hide:not(#main-menu) {
  display: none !important;
}

#cart-popup.mfp-hide {
  display: none !important;
}

/* WooCommerce forms in lightbox */
.woocommerce-form .input-text {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.woocommerce-button.button {
  background: #771557;
  color: #fff;
  margin-top: 0.5rem;
}

/* Utility */
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }

/* Hide hover-only duplicate product images on small screens (already in theme) */
@media (max-width: 849px) {
  .hide-for-small.back-image { display: none !important; }
}

.quick-view {
  font-size: 0.8rem;
}

/* Duplicate logo (dark variant) — same file in export; show one */
#logo .header-logo-dark {
  display: none;
}
