/* ====== CSS VARIABLES & RESET ====== */
:root {
  --primary-color: #ff476d;
  --primary-hover: #e03a5e;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --bg-light: #f9fafb;
  --bg-cyan: #eaf5f8;
  --bg-dark-navy: #0d1b2a;
  --border-color: #e5e7eb;
  
  --font-main: 'Inter', sans-serif;
  --container-width: 1200px;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Utilities */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.3s;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-block;
  border: 2px solid var(--text-dark);
  color: var(--text-dark);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-outline:hover {
  background-color: var(--text-dark);
  color: #fff;
}

/* ====== HEADER ====== */
.top-bar {
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar span {
  color: var(--primary-color);
  font-weight: 600;
}

.main-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}
.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}
.packify-logo-image {
  max-height: 56px;
  width: auto;
  display: block;
}
.search-bar {
  flex: 1;
  max-width: 400px;
  position: relative;
  margin: 0 20px;
}
.search-bar input {
  width: 100%;
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  outline: none;
}
.search-bar button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.header-icons {
  display: flex;
  gap: 15px;
  font-size: 1.2rem;
  color: var(--text-dark);
}
.header-icons .icon-wrapper {
  position: relative;
}
.header-icons .badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.7rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav {
  padding: 15px 0;
}
.bottom-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.categories-wrapper {
  position: relative;
}
.categories-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 0; /* increase hit area slightly */
}

/* Category Dropdown */
.categories-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  width: 250px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  border-bottom: 3px solid var(--bg-cyan); /* small accent */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}
.categories-wrapper:hover .categories-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.categories-dropdown ul li {
  border-bottom: 1px solid var(--border-color);
}
.categories-dropdown ul li:last-child {
  border-bottom: none;
}
.categories-dropdown ul li a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #0b1a30; 
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s, color 0.2s;
}
.categories-dropdown ul li a:hover {
  background-color: var(--bg-cyan);
  color: var(--primary-color);
}
.categories-dropdown .dropdown-icon {
  font-size: 1.2rem;
  margin-right: 15px;
  width: 24px;
  text-align: center;
  color: #3b5a7a;
}
.categories-dropdown .arrow-icon {
  margin-left: auto;
  font-size: 0.8rem;
  color: #8a9bb0;
}
.nav-links {
  display: flex;
  gap: 30px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--primary-color);
}
.nav-promo {
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-promo span {
  color: var(--primary-color);
}

/* ====== HERO SECTION ====== */
.hero {
  background-color: var(--bg-cyan);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.hero-content {
  max-width: 500px;
}
.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 30px;
  color: var(--text-dark);
}
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}
.hero-image img {
  max-width: 800px;
  width: 130%;
  transform: translateX(10%);
}

/* ====== FEATURES ====== */
.features {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.feature-icon {
  font-size: 2rem;
  color: var(--primary-color);
}
.feature-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.feature-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ====== BANNER GRID ====== */
.banners {
  padding: 60px 0;
}
.banners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 20px;
}
.banner-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background-color: #eee;
  display: flex;
  align-items: center;
  padding: 30px;
  background-size: cover;
  background-position: center;
}
.banner-item.large {
  grid-row: span 2;
  background-color: #1a2a4b; 
}
.banner-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.banner-content h3 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}
.banner-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  opacity: 0.9;
}
.banner-btn {
  display: inline-block;
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}
.banner-btn:hover {
  background-color: #fff;
  color: var(--text-dark);
}

/* Specific Banner Backgrounds fallback */
.banner-item:nth-child(1) { background-image: url('https://loremflickr.com/600/800/desk'); }
.banner-item:nth-child(2) { background-image: url('https://loremflickr.com/600/400/notebook'); }
.banner-item:nth-child(3) { background-image: url('https://loremflickr.com/600/400/pens'); }
.banner-item:nth-child(4) { background-image: url('https://loremflickr.com/1200/400/tape'); grid-column: span 2; }

/* Overlay for readability */
.banner-item::before {
  content: '';
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}

/* ====== PRODUCTS SECTION ====== */
.products-section {
  padding: 40px 0;
}
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}
.tab-btn {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 8px;
}
.tab-btn.active {
  color: var(--text-dark);
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--text-dark);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.product-card {
  text-align: center;
  transition: transform 0.3s;
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-img {
  background-color: var(--bg-light);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 15px;
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img img {
  max-height: 140px;
}
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.product-title {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.product-price {
  font-weight: 600;
  color: var(--text-dark);
}
.old-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-right: 5px;
}

/* ====== DEAL OF THE DAY ====== */
.deal-section {
  margin: 60px 0;
  padding: 80px 0;
  background-color: #a4b4e5;
  background-image: linear-gradient(135deg, #a4b4e5 0%, #c4d4f5 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.deal-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.deal-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.deal-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}
.time-box {
  text-align: center;
}
.time-val {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}
.time-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ====== CUTE STATIONERY ====== */
.cute-stationery {
  padding: 60px 0;
}
.cute-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  font-size: 0.9rem;
}
.cute-tabs span {
  cursor: pointer;
  color: var(--text-muted);
}
.cute-tabs span.active {
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 1px solid var(--primary-color);
}

/* ====== SPLIT SECTION ====== */
.split-section {
  padding: 60px 0;
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split-images {
  display: flex;
  gap: 20px;
}
.split-images img {
  border-radius: 10px;
  flex: 1;
  object-fit: cover;
  height: 350px;
}
.split-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}
.split-content p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

/* ====== CTA SECTION ====== */
.cta-section {
  background-color: #111;
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  background-image: url('https://loremflickr.com/1920/600/stationery,dark');
  background-size: cover;
  background-position: center;
}
.cta-section::after {
  content: '';
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.7);
  z-index: 1;
}
.cta-content {
  position: relative;
  z-index: 2;
}
.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 30px;
}

/* ====== BLOG ====== */
.blog-section {
  padding: 80px 0;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.blog-card {
  text-align: center;
}
.blog-card img {
  border-radius: 10px;
  margin-bottom: 20px;
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.blog-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}
.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ====== FOOTER ====== */
.footer {
  background-color: var(--bg-dark-navy);
  color: #a0aob0; /* Adjust to match */
  padding-top: 60px;
}
.footer-top {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 40px;
  text-align: center;
}
.footer-top h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.subscribe-form {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}
.subscribe-form input {
  width: 100%;
  padding: 15px 25px;
  border-radius: 30px;
  border: none;
  outline: none;
}
.subscribe-form button {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  background-color: var(--bg-dark-navy);
  color: #fff;
  border-radius: 25px;
  padding: 0 25px;
  font-weight: 600;
}

.footer-main {
  padding: 60px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  color: rgba(255,255,255,0.7);
}
.footer-logo {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-main h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a:hover {
  color: #fff;
}
.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
}
.footer-contact .phone {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* Helpers */
.hidden { display: none !important; }

/* ====== SHOP PAGE ====== */
.breadcrumb {
  background: #fff;
  padding: 20px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}
.breadcrumb a {
  color: var(--text-dark);
  font-weight: 500;
}
.breadcrumb i {
  margin: 0 10px;
  font-size: 0.7rem;
}

.shop-page {
  padding: 60px 0;
}
.shop-layout {
  display: flex;
  gap: 40px;
}
.sidebar {
  width: 25%;
  flex-shrink: 0;
}
.shop-main {
  flex: 1;
}

.sidebar-widget {
  margin-bottom: 40px;
}
.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}
.widget-list li {
  margin-bottom: 12px;
}
.widget-list a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: 0.2s;
}
.widget-list a:hover {
  color: var(--primary-color);
}

.price-slider {
  margin-top: 20px;
  margin-bottom: 25px;
  position: relative;
  height: 4px;
}
.price-slider input[type="range"] {
  position: absolute;
  width: 100%;
  height: 4px;
  top: 0;
  left: 0;
  pointer-events: none;
  -webkit-appearance: none;
  background: transparent;
  z-index: 2;
  margin: 0;
}
.price-slider input[type="range"]::-webkit-slider-thumb {
  pointer-events: all;
  width: 16px;
  height: 16px;
  -webkit-appearance: none;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
}
.slider-track {
  width: 100%;
  height: 100%;
  background: var(--border-color);
  border-radius: 2px;
  position: absolute;
  top: 0;
  z-index: 1;
}
.slider-fill {
  position: absolute;
  left: 2%; /* Default starts */
  right: 0%;
  height: 100%;
  background: var(--primary-color);
}
.active-filter {
  font-weight: 700;
}

.price-filter-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.price-filter-labels strong {
  color: var(--text-dark);
}
.filter-btn {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.color-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.color-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
}
.color-circle:hover {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--border-color);
}

.rating-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}
.stars {
  color: #fbbf24;
  font-size: 0.85rem;
}
.stars .fa-regular {
  color: var(--border-color);
}
.count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}
.view-icons i {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-right: 15px;
  cursor: pointer;
}
.view-icons i.active {
  color: var(--text-dark);
}
.sort-options {
  display: flex;
  align-items: center;
  gap: 20px;
}
.sort-options select {
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  outline: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.shop-card {
  position: relative;
  text-align: center;
}
.shop-card .product-img {
  background-color: var(--bg-light); 
  height: 300px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-card .product-img img {
  max-height: 220px;
  padding: 20px;
}
.shop-card .product-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.shop-card .product-price {
  font-size: 0.9rem;
  font-weight: 600;
}
.shop-card .quick-actions {
  position: absolute;
  top: 20px;
  right: -50px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: right 0.3s ease;
}
.shop-card:hover .quick-actions {
  right: 15px;
}
.quick-actions button {
  width: 35px;
  height: 35px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  color: var(--text-dark);
  transition: background 0.3s, color 0.3s;
}
.quick-actions button:hover {
  background: var(--text-dark);
  color: #fff;
}
.add-to-cart-btn {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark-navy);
  color: #fff;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: bottom 0.3s ease, background 0.3s;
}
.shop-card:hover .add-to-cart-btn {
  bottom: 20px;
}
.add-to-cart-btn:hover {
  background: var(--primary-color);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
}
.pagination a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--text-dark);
  font-weight: 600;
  transition: 0.2s;
}
.pagination a:hover {
  background: var(--bg-light);
}
.pagination a.active {
  border-color: var(--text-dark);
}

/* ====== LIST VIEW STYLES ====== */
.list-excerpt {
  display: none;
}
.shop-grid.list-view {
  grid-template-columns: 1fr;
}
.shop-grid.list-view .shop-card {
  display: flex;
  align-items: center;
  text-align: left;
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 8px;
  gap: 30px;
}
.shop-grid.list-view .shop-card .product-img {
  width: 250px;
  height: 250px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.shop-grid.list-view .shop-card .product-details {
  flex: 1;
}
.shop-grid.list-view .shop-card .product-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.shop-grid.list-view .shop-card .product-price {
  font-size: 1.1rem;
  margin-bottom: 15px;
}
.shop-grid.list-view .shop-card .list-excerpt {
  display: block;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ====== ACTION NOTIFICATIONS & MODALS ====== */
#toastContainer {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}
.toast {
  background: var(--bg-dark-navy);
  color: #fff;
  padding: 15px 25px;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}
.toast.show {
  transform: translateX(0);
}
.toast i {
  color: #10b981;
}

.qv-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qv-content {
  background: #fff;
  width: 900px;
  max-width: 90%;
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.qv-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f3f4f6;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.qv-close:hover {
  background: var(--primary-color);
  color: #fff;
}
.qv-content img {
  width: 50%;
  object-fit: cover;
  background: var(--bg-light);
  padding: 40px;
}
.qv-details {
  width: 50%;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ====== BLOG PAGE ====== */
.blog-layout-area {
  padding: 60px 0;
}
.blog-layout {
  display: flex;
  gap: 40px;
}
.blog-sidebar {
  width: 280px;
  flex-shrink: 0;
}
.blog-feed {
  flex: 1;
}

/* Sidebar Search */
.search-widget {
  display: flex;
  position: relative;
}
.search-widget input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  outline: none;
}
.search-widget button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 40px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

/* Recent Posts */
.recent-post-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.recent-post-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}
.recent-post-info h5 {
  font-size: 0.95rem;
  margin-bottom: 5px;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.2s;
}
.recent-post-info h5:hover {
  color: var(--primary-color);
}
.recent-post-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-cloud a {
  padding: 8px 15px;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  border-radius: 4px;
  font-size: 0.85rem;
  transition: 0.2s;
}
.tag-cloud a:hover, .tag-cloud a.active-tag {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Blog Post Card */
.blog-post-card {
  margin-bottom: 60px;
}
.blog-post-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}
.blog-post-meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 15px;
  align-items: center;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.blog-post-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-post-meta span i {
  color: var(--primary-color);
}
.blog-post-card h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  line-height: 1.3;
}
.blog-post-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.read-more-btn {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.read-more-btn:hover {
  text-decoration: underline;
}

/* ====== ABOUT PAGE ====== */
.section-padding { padding: 80px 0; }

.about-hero {
  position: relative;
  text-align: center;
  padding: 120px 0;
  background-size: cover;
  background-position: center;
}
.about-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}
.about-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.about-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}
.about-hero-content p {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ABOUT STORY */
.story-grid {
  display: flex;
  align-items: center;
  gap: 60px;
}
.story-collage {
  position: relative;
  width: 50%;
}
.story-collage .img-large {
  width: 80%;
  border-radius: 8px;
}
.story-collage .img-small {
  position: absolute;
  right: 0;
  bottom: -40px;
  width: 45%;
  border-radius: 8px;
  border: 10px solid #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.story-content {
  width: 50%;
}
.section-subtitle {
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.story-content h2 {
  font-size: 3rem;
  margin-bottom: 25px;
  line-height: 1.2;
}
.story-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ABOUT INSPIRATION */
.inspire-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}
.inspire-images img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* ABOUT COMMUNITY */
.community-grid {
  display: flex;
  align-items: center;
  gap: 50px;
}
.community-content {
  width: 50%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}
.community-img {
  width: 50%;
  position: relative;
}
/* Allow image to bleed slightly */
.community-img img {
  width: 110%;
  border-radius: 12px;
  transform: translateX(-5%);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.stat-box {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

/* ABOUT PARALLAX */
.about-parallax {
  position: relative;
  padding: 120px 0;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
.parallax-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 15, 30, 0.8);
}
.parallax-content {
  position: relative;
  z-index: 2;
}

/* ABOUT TESTIMONIALS */
.testi-grid {
  display: flex;
  align-items: center;
  gap: 60px;
}
.testi-images {
  width: 45%;
  position: relative;
  display: flex;
  gap: 20px;
}
.testi-images img {
  border-radius: 8px;
  object-fit: cover;
}
.testi-img-main {
  width: 60%;
  height: 500px;
}
.testi-img-secondary {
  width: 40%;
  height: 350px;
  align-self: flex-end;
}
.testi-content {
  width: 55%;
}
.testi-slider-wrapper {
  position: relative;
}
.testi-slides {
  position: relative;
  height: 250px;
}
.testi-slide {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  visibility: hidden;
  transition: 0.5s ease;
}
.testi-slide.active {
  opacity: 1;
  visibility: visible;
}
.testi-dots {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}
.testi-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: 0.3s;
}
.testi-dots .dot.active {
  background: var(--primary-color);
}
.testi-dots .dot:hover {
  background: #ff7ea5;
}

/* BRANDS ROW */
.brands-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.brand-col {
  text-align: center;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.brand-col:hover {
  opacity: 1;
}

/* Fix mobile responsive stacking */
@media (max-width: 900px) {
  .story-grid, .community-grid, .testi-grid {
    flex-direction: column;
  }
  .story-collage, .story-content, .community-content, .community-img, .testi-images, .testi-content {
    width: 100%;
  }
  .inspire-images {
    grid-template-columns: 1fr;
  }
  .community-img img {
    width: 100%;
    transform: translateX(0);
  }
}

/* ====== CONTACT PAGE ====== */
.contact-section {
  padding: 60px 0 100px 0;
}
.contact-layout {
  display: flex;
  gap: 60px;
}
.contact-info {
  width: 30%;
}
.contact-content {
  width: 70%;
}
.contact-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}
.contact-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
}
.contact-phone {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 20px;
}
.contact-hours {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 25px;
}
.contact-email {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: underline;
  font-size: 1.05rem;
}
.contact-email:hover {
  color: var(--primary-color);
}
.contact-block {
  margin-bottom: 50px;
}
.block-title {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.map-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form .form-row {
  display: flex;
  gap: 20px;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}
@media (max-width: 800px) {
  .contact-layout {
    flex-direction: column;
  }
  .contact-info, .contact-content {
    width: 100%;
  }
  .contact-form .form-row {
    flex-direction: column;
  }
}

/* ====== AUTHENTICATION PAGES ====== */
.auth-section {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  background: #fff;
  padding: 50px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.auth-card h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.auth-form input {
  margin-bottom: 15px;
}

/* ====== TRACKING ORDER TIMELINE ====== */
.track-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 30px;
}
.track-progress::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--border-color);
  z-index: 1;
}
.track-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}
.track-step .step-icon {
  width: 35px;
  height: 35px;
  background: #fff;
  border: 3px solid var(--border-color);
  border-radius: 50%;
  margin: 0 auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: bold;
}
.track-step.done .step-icon {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.track-step.active .step-icon {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.track-step p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.track-step.done p, .track-step.active p {
  color: var(--text-dark);
}

/* ====== FAQ ACCORDION ====== */
.accordion {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  overflow: hidden;
}
.accordion-item {
  border-bottom: 1px solid var(--border-color);
}
.accordion-item:last-child {
  border-bottom: none;
}
.accordion-header {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #fff;
  transition: 0.3s;
}
.accordion-header h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 600;
  margin: 0;
}
.accordion-header .icon {
  color: var(--text-muted);
  transition: transform 0.3s;
}
.accordion-item.active .accordion-header h3 {
  color: var(--primary-color);
}
.accordion-item.active .accordion-header .icon {
  color: var(--primary-color);
  transform: rotate(45deg);
}
.accordion-content {
  display: none;
  padding: 0 25px 25px 25px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ====== CART & WISHLIST TABLES ====== */
.cart-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.cart-table-wrapper {
  flex: 1;
}
.cart-summary {
  width: 350px;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-weight: 500;
  color: var(--text-dark);
}
.summary-row.total-row {
  border-bottom: none;
  font-size: 1.2rem;
  font-weight: 700;
  padding-top: 20px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  padding: 15px 20px;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-dark);
  font-weight: 600;
}
.data-table td {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
.data-table .col-img img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 5px;
  background: var(--bg-light);
  padding: 5px;
}
.data-table .col-name {
  font-weight: 500;
  color: var(--text-dark);
  max-width: 250px;
}
.data-table .col-price {
  font-weight: 600;
  color: var(--text-muted);
}
.data-table .col-delete i {
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.3s;
  font-size: 1.1rem;
}
.data-table .col-delete i:hover {
  color: var(--primary-color);
}
.qty-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  width: max-content;
  overflow: hidden;
}
.qty-input button {
  background: transparent;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  color: var(--text-muted);
}
.qty-input button:hover {
  color: var(--primary-color);
}
.qty-input input {
  width: 40px;
  text-align: center;
  border: none;
  font-weight: 600;
  color: var(--text-dark);
}
.qty-input input:focus { outline:none; }
.cart-actions-row {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

@media (max-width: 900px) {
  .cart-layout {
    flex-direction: column;
  }
  .cart-summary {
    width: 100%;
  }
  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.search-bar form {
  position: relative;
}

.search-bar .search-field {
  width: 100%;
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  outline: none;
}

.search-bar button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.nav-links .menu,
.nav-links .menu > ul,
.nav-links .page_item_has_children > ul {
  display: flex;
  gap: 30px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
}

.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
  color: var(--primary-color);
}

.pagination .woocommerce-pagination,
.woocommerce-pagination ul.page-numbers {
  width: 100%;
}

.woocommerce-pagination ul.page-numbers,
.woocommerce-pagination ul.page-numbers li {
  border: 0;
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid transparent;
}

.woocommerce-pagination ul.page-numbers li .current {
  border-color: var(--text-dark);
}

.shop-toolbar .woocommerce-ordering {
  margin: 0;
}

.shop-toolbar .woocommerce-ordering select {
  padding: 8px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #fff;
}

.shop-card .button,
.shop-card .added_to_cart {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark-navy);
  color: #fff;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: bottom 0.3s ease, background 0.3s;
}

.shop-card:hover .button,
.shop-card:hover .added_to_cart {
  bottom: 20px;
}

.shop-card .button:hover,
.shop-card .added_to_cart:hover {
  background: var(--primary-color);
  color: #fff;
}

.shop-card .added_to_cart {
  margin-left: 0;
  margin-top: 55px;
}

.packify-woo-page .woocommerce form .form-row input.input-text,
.packify-woo-page .woocommerce form .form-row textarea,
.packify-woo-page .woocommerce form select,
.packify-woo-page .woocommerce-MyAccount-content input,
.packify-woo-page .woocommerce-MyAccount-content textarea {
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 14px 16px;
}

.packify-woo-page .woocommerce .button,
.single_add_to_cart_button,
.wc-proceed-to-checkout .button,
.checkout-button {
  background: var(--primary-color) !important;
  border-radius: 30px !important;
  color: #fff !important;
  padding: 14px 26px !important;
}

.packify-woo-page .woocommerce-cart-form,
.packify-woo-page .cart-collaterals,
.packify-woo-page .woocommerce-checkout,
.packify-woo-page .woocommerce-MyAccount-navigation,
.packify-woo-page .woocommerce-MyAccount-content {
  background: #fff;
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
  border-top-color: var(--primary-color);
}

.single-product div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
  width: 100% !important;
  float: none !important;
}

.single-product .product_meta,
.single-product .woocommerce-tabs,
.single-product .related {
  grid-column: 1 / -1;
}

.packify-page-crumb + .section-padding .woocommerce {
  width: 100%;
}

@media (max-width: 1180px) {
  .hero .container,
  .main-header .container,
  .split-grid,
  .shop-layout,
  .blog-layout,
  .contact-layout,
  .single-product div.product {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .hero-content,
  .hero-image,
  .sidebar,
  .shop-main,
  .blog-sidebar,
  .blog-feed,
  .contact-info,
  .contact-content {
    width: 100%;
    max-width: none;
  }

  .hero-image img {
    width: 100%;
    max-width: 560px;
    transform: none;
  }

  .banners-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .banner-item.large,
  .banner-item:nth-child(4) {
    grid-row: auto;
    grid-column: auto;
    min-height: 280px;
  }
}

@media (max-width: 900px) {
  .top-bar .container,
  .bottom-nav .container,
  .header-actions,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .features-grid,
  .products-grid,
  .shop-grid,
  .blog-grid,
  .footer-main,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-bar {
    margin: 0;
    max-width: none;
  }

  .nav-links .menu {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 56px 0;
  }

  .hero-content h1,
  .split-content h2,
  .story-content h2,
  .about-hero-content h1,
  .cta-content h2,
  .contact-title {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .features-grid,
  .products-grid,
  .shop-grid,
  .blog-grid,
  .footer-main,
  .stats-grid,
  .banners-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .countdown {
    flex-wrap: wrap;
  }

  .story-collage .img-large,
  .story-collage .img-small,
  .testi-img-main,
  .testi-img-secondary,
  .community-img img {
    width: 100%;
    position: static;
    transform: none;
    border-width: 0;
    height: auto;
  }

  .story-collage,
  .testi-images {
    display: grid;
    gap: 16px;
  }

  .qv-content {
    flex-direction: column;
  }

  .qv-content img,
  .qv-details {
    width: 100%;
  }
}
