:root{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0;
}

h1, h2, h3{
  color: #333;
}

#main-header{
  background-color: #1f2121;
  height: 100px;
  width: 100%;
  
  color: #F0EDEE;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  z-index: 999;
  position: sticky;
  top: 0;
}

#hero-banner{
  background-color: #0A090C;
  color: #F0EDEE;
  height: 30px;
  width: 100%;

  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
}

#hero-banner-red{
  background-color: #e30c0c;
  color: #F0EDEE;
  height: 30px;
  width: 100%;

  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
}

#logo-button{
  height: 75px;
  width: 75px;
  background-color: transparent;
  border: none;
}

#logo-button-img{
  height: 100%;
  aspect-ratio: 1;
}

#header-nav{
  background-color: transparent;
  color: #0A090C;
  width: 120px;
  height: 40px;
  
  border: none;
  font-size: large;
  display: flex;

  gap: 7%;

  justify-content: space-evenly;
}

#header-nav button, #header-nav a{
  background-color: #F0EDEE;
  color: #0A090C;

  aspect-ratio: 1;
  
  padding: 0;
  border: none;
  font-size: large;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;

  cursor: pointer;
}
#header-nav button:hover, #header-nav a:hover{
  background-color: #d4d8e2;
}

#header-nav button img, #header-nav a img{
  width: 50%;
  object-fit: cover;
}

.nav-bar{
  z-index: 998;
  width: 100%;
  height: 40px;
  background-color: #F0EDEE;
  position: relative;
}

.nav-links{
  z-index: 998;
  margin: 0;
  display: flex;
  height: 24px;
}

ul{
  list-style-type: none;
}

li{
  list-style-type: none;
}

.nav-links li,.dropdown li{
  z-index: 998;
  height: 100%;
  padding: 0.5em 1em;
  font-weight: 600;
  cursor: pointer;
}

.nav-links li:hover,.dropdown li:hover{
  cursor: pointer;
  transform: scale(110%);
  transition: 0.3s ease;
}

.nav-links{
  padding-left: 10px;
}

a{
  color: #1f2121;
  text-decoration: none;
}

.dropdown{
  position: absolute;
  padding: 0.5em 0.5em;
  min-width: 200px;
  margin: 0.6em -1em;
  color: #1f2121;
  background-color: #F0EDEE;
  display: none;
  float: right;
}

li{
  transition: 0.3s ease;
}

li:hover{
  background-color: #d4d8e2;
}

.deals:hover{
  background-color: #2C666E;
}

li:hover .dropdown{
  display: block;
}

.deals{
  background-color: #0d82b1;
}

.deals a{
  color: #F0EDEE;
}

.dropdown li a{
  color: #1f2121;
}

.dropdown p{
  font-weight: bold;
  padding-left: 10px;
  margin-bottom: 8px;
  margin-top: 8px;
  font-size: medium;
  color: #0A090C;
}

.dropdown p:hover{
  cursor: default;
}

main{
  margin: 0 auto;
  max-width: 100rem;
  width: 100%;
}

article{
  margin-left: -2rem;
  margin-right: -2rem;
  margin-top: 1 rem;
}

.shop-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  font-family: sans-serif;
}

.sidebar {
  border-right: 1px solid #eee;
  padding-right: 20px;
}
.accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  background: none;
  border: none;
  font-weight: bold;
  padding: 10px 0;
  cursor: pointer;
}
.submenu {
  list-style: none;
  padding-left: 15px;
}
.submenu li a {
  display: block;
  padding: 5px 0;
  color: #555;
  text-decoration: none;
}
.submenu li a.current {
  color: #000;
  font-weight: bold;
}


.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f5f5f5;
  padding: 10px 20px;
  border-radius: 4px;
  margin-bottom: 30px;
}
.filter-btn {
  background: white;
  border: 1px solid #ccc;
  padding: 8px 16px;
  margin-right: 10px;
  border-radius: 4px;
  cursor: pointer;
}

.category-desc{
  color: #4b4b4b;
}

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

.product-card1 {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card1 img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.image-wrapper {
  position: relative;
  background: #f9f9f9;
  padding: 40px;
  text-align: center;
}
.image-wrapper img {
  max-width: 100%;
  height: auto;
}
.wishlist-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #ccc;
}
.product-info {
  padding: 15px;
}
.product-title {
  font-size: 14px;
  margin: 10px 0 5px 0;
}
.product-price {
  font-weight: bold;
  color: #d92323; 
}

.banner-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background-color: transparent;
  margin-top: 16px;
}

.banner-grid2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background-color: transparent;
  margin-top: 16px;
}

.banner-grid3{
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  background-color: transparent;
  margin-top: 16px;
}

.banner-card{
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.banner-card2{
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / .5;
}

.banner-card3 {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / .2;
}

.banner-card img, .banner-card2 img, .banner-card3 img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.3s ease;
}

.banner-card img:hover, .banner-card2 img:hover, .banner-card3 img:hover{
  transform: scale(110%);
  transition: 0.3s ease;
  cursor: pointer;
}

.banner-card img:active, .banner-card2 img:active, .banner-card3 img:active{
  transform: scale(100%);
  transition: 0.18s ease;
}

.badge{
  position: absolute;
  background-color: #ff0000;
  color: #ffffff;
  font-size: 13pt;
  font-weight: 800;
  padding: 6px 12px;
  z-index: 2;
} 

.top-left{
  top: 15px;
  left: 15px;
}

.top-right{
  top: 15px;
  right: 15px;
}

.text-block{
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: 150px;
  z-index: 2;
  transition: 0.3s ease;
}

.text-block a {
  color: #ffffff;
  margin: 0;
  font-size: 18pt;
  font-weight: bold;
  line-height: 1.3;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.text-block:hover{
  transform: scale(102%);
  transition: 0.3s ease;
}

.text-block:active{
  transform: scale(98%);
  transition: 0.18s ease;
}

.circular-badge {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  padding: 10px 10px;
}

.angled-badge {
  transform: rotate(-5deg);
  font-size: 13px;
  padding: 6px 12px;
}

.popular-categories{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 15px;

  margin: 0 auto;
}

.popular-categories-title{
  margin-bottom: 6px;
}

.category-card{
  display: flex;
  align-items: center;       
  justify-content: center;   
  gap: 15px;                 
  
  background-color: #ffffff;
  border: 1px solid #7a7a7a; 
  padding: 10px 10px;        
  text-decoration: none;     
  color: #333333;            
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease-in-out; 
}

.category-card img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.category-card span {
  font-size: 15pt;
  font-weight: bold;
}

.category-card:hover{
  border-color: #000000;
  background-color: #e1e5e7;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transform: scale(105%);
}

.category-card:active{
  transform: scale(95%);
  transition: all 0.18s ease; 
}

footer{
  background-color: #1f2121;
  width: 100%;
  height: 700px;
  margin: none;
  margin-top: 75px;

  bottom: 0px;
}

.site-footer{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 35px;
}

.footer-logo img{
  max-height: 130px;
  width: auto;
  padding: 20px 20px;
  margin-top: 60px;
  margin-bottom: 30px;
}

.footer-links-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr) 2fr;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  text-align: left;
}

.link-column{
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.link-column a{
  color: white;
  text-decoration: none;
  font-size: 13pt;
  transition: color 0.2s;
}

.link-column a:hover{
  color: #b3b3b3;
}

.info-column {
  font-size: 13pt;
  line-height: 1.6;
}

.info-column h4 {
  color: #ffffff;
  margin: 0 0 10px 0;
  font-size: 14pt;
}

.info-column p {
  margin: 0 0 12px 0;
}

.info-column a {
  color: #ffffff;
}

.dropdown-trigger {
  cursor: pointer;
  color: #ffffff;
}

.social-row {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.payment-options {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

.payment-option{
  width: 50px;
  height: 36px;
  background-color: #ffffff;
  color: #1c1c1c;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 16pt;
  transition: opacity 0.2s;
}

.payment-option img{
  max-width: 36px;
  border-radius: 15px;
  object-fit: contain;
}

.social-circle {
  width: 36px;
  height: 36px;
  background-color: #ffffff;
  color: #1c1c1c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 16pt;
  transition: opacity 0.2s;
}

.social-circle img{
  width: 50%;
  object-fit: contain;
}

.social-circle:hover {
  opacity: 0.8;
}

p{
  color: #F0EDEE;
}

.product-card.is-hidden {
  display: none !important;
}

/* Base Layout Setup */
.news-section {
  font-family: Arial, sans-serif;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header & Filter Row */
.section-header h2 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #111111;
}

.tabs-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  position: relative;
  width: 100%;
}

/* Individual Filter Buttons */
.tab {
  background: #ffffff;
  border: 1px solid #282828;
  color: #282828;
  padding: 10px 20px;
  font-size: 11pt;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab.active {
  background: #282828;
  color: #ffffff;
}

.view-all-link {
  margin-left: auto; /* Pushes the link to the far right side */
  color: #111111;
  font-size: 12px;
  text-decoration: underline;
}

/* 5-Column Grid Configuration */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Exactly 5 equal width columns */
  gap: 15px;
  margin-top: 15px;
  margin-bottom: 15px;
}

/* Individual Card Styles */
.product-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

/* Image Wrapper Layout for Overlapping Components */
.image-wrapper {
  position: relative; /* Context anchor for absolute positioning */
  background-color: #f5f5f5; /* Light grey backdrop tone */
  aspect-ratio: 1 / 1; /* Forces square dimensions */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Overlapping Badges Structure */
.product-badge {
  position: absolute;
  font-size: 10px;
  font-weight: bold;
  padding: 4px 8px;
}

.red-badge {
  top: 12px;
  left: 12px;
  background-color: #ffffff; /* Changes to black or red depending on preference */
  color: #242425;
  font-size: 9pt;
  padding: 6px 8px;
  border-radius: 5px;
}

.white-badge.bottom-left {
  bottom: 12px;
  left: 12px;
  background-color: #ffffff;
  color: #777777;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 2px 10px;
}

/* Absolutes Utility Buttons (Heart and List Action Icons) */
.wishlist-btn{
  position: absolute;
  background: #ffffff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  color: #555555;
}

.wishlist-btn {
  top: 12px;
  right: 12px;
}

/* Card Typography Information details block */
.product-info {
  padding: 12px 0;
  text-align: left;
}

.product-title {
  font-size: 12pt;
  color: #0A090C;
  line-height: 1.4;
  margin: 0 0 5px 5px;
  font-weight: normal;
  
  /* Restricts long layout titles text clean line clamp wrapping limits */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: auto; 
}

.product-price {
  font-size: 13pt;
  font-weight: bold;
  color: #111111;
  margin: 0 0 0 5px;
}

.red-text {
  color: #df0404; /* Red emphasis color for prices */
}

/* Responsiveness break-down scale rules */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); } /* 3 Columns on Tablet */
}

@media (max-width: 700px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); } /* 2 Columns on Mobile screens */
  .view-all-link { position: absolute; bottom: -25px; left: 0; }
  .tabs-container { margin-bottom: 40px; }
}


.skryt-container{
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  justify-content: space-evenly;
  margin-top: 75px;
  background-color: #f3f3f3;
  padding: 10px;
}

.skryt-del{
  display: flex;
  align-items: center;
  justify-content: start;
}

.skryt-del span{
  color: #282828;
  font-weight: normal;
  font-size: 12pt;
  margin-left: 10px;
  text-align: center;
}

.policy li, .policy h1, .policy h2, .policy p{
  color: #0A090C;
}

.product-container {
    display: flex;
    gap: 40px; /* Creates the gap between left and right column */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.product-gallery, .product-details {
    flex: 1; /* Gives both columns equal starting width */
}

/* Core Drawer Setup */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px; /* Adjust thickness of the drawer */
  max-width: 100%; /* Ensures responsiveness on mobile */
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  
  /* Slide out of view by default */
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

/* Slide into view when active */
.cart-drawer.open {
  transform: translateX(0);
}

/* Background Overlay */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Internal Layout Structure */
.cart-header {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.cart-header h2 {
  font-size: 18px;
  font-weight: bold;
  color: #111111;
  margin: 0;
}
.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-right: 15px;
}

/* Makes only the items scrollable, keeping header/footer fixed */
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

/* Cart Item Layout */
.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f5f5f5;
  align-items: center;
}



.item-details {
  display: flex;
  flex-direction: column;
}

.item-title {
  font-size: 14px;
  font-weight: bold;
  color: #333333;
  margin: 0 0 5px 0;
}

.item-brand {
  font-size: 12px;
  color: #777777;
  margin: 0 0 5px 0;
  font-weight: normal;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.quantity-selector {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.quantity-selector button {
  background: #f9f9f9;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}
.quantity-selector input {
  width: 35px;
  text-align: center;
  border: none;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
}

/* Sticky Footer styling */
.cart-footer {
  padding: 20px;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.summary-row.total {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 15px;
}
.checkout-btn {
  width: 100%;
  padding: 15px;
  background-color: #2b2b2b;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}
.checkout-btn:hover {
  background-color: #111;
}

.cart-body img, .upsell-product img{
  border-radius: 8px;
  background-color: #FAFAFA;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================
   CART UPSELL SECTION (Missa inte)
   ========================================== */
.cart-upsell {
  margin-top: 25px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.cart-upsell h3 {
  font-size: 16px;
  font-weight: bold;
  color: #111111;
  margin-bottom: 12px;
  margin-top: 0;
}

/* 3-Column horizontal alignment */
.upsell-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.upsell-card {
  display: flex;
  flex-direction: column;
}

/* Square light gray image container */
.upsell-img-wrapper {
  position: relative;
  background-color: #f5f5f5;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 4px;
}

.upsell-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Overlay List Selector Button */
.upsell-add-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  background-color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  color: #333333;
  font-size: 11px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.upsell-add-btn:hover {
  background-color: #e1e5e7;
  transform: scale(1.08);
}

/* Product Typography details block below images */
.upsell-info {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.upsell-title {
  font-size: 12px;
  color: #333333;
  line-height: 1.3;
  margin-bottom: 4px;
  font-weight: normal;
  
  /* Restricts text into two uniform clean layout lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 32px; 
}

.upsell-price {
  font-size: 13px;
  font-weight: bold;
  color: #df0404; /* Matches red focus price theme */
}

/* Slider Pagination Circle Buttons Layout */
.upsell-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.upsell-controls .control-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #cccccc;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333333;
  font-size: 14px;
  transition: all 0.2s ease;
}

.upsell-controls .control-btn:hover {
  border-color: #111111;
  background-color: #f5f5f5;
}

.free-shipping-notice {
  font-size: 12px;
  color: #555555;
  text-align: center;
  margin-top: 15px;
  font-weight: 500;
}

.shipping-alternative-img-cart {
  width: 20px;
  height: 20px;
  margin-left: 8px;
  border-radius: 4px;
}

.shipping-alternative-img-cart img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
}

#shipping-price-cart {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   PILL QUANTITY SELECTOR MODIFICATION
   ========================================== */
.quantity-selector {
  display: inline-flex;
  align-items: center;
  background-color: #f2f2f2; /* Light gray pill background matching your image */
  border-radius: 50px;       /* Gives it that perfectly smooth rounded capsule look */
  padding: 2px 4px;
  border: none;              /* Removes the outer square box border */
}

.quantity-selector button {
  background: transparent;   /* Removes individual button background boxes */
  border: none;
  font-size: 16px;
  font-weight: normal;
  color: #333333;
  cursor: pointer;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.quantity-selector button:hover {
  opacity: 0.5; /* Subtle fade effect on hover */
}

.quantity-selector input {
  width: 24px;
  text-align: center;
  background: transparent;   /* Makes input blend completely into the pill layout */
  border: none;              /* Removes the internal dividing line borders */
  font-size: 14px;
  font-weight: 600;          /* Slightly bold number font style */
  color: #111111;
  outline: none;             /* Removes focus outlines when clicked */
}

/* Hides native browser arrow spin controls inside input field */
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-selector input[type=number] {
  -moz-appearance: textfield; /* Hides arrows on Firefox */
}
/* ==========================================
   CLEAN DELETE BUTTON MODIFICATION
   ========================================== */
.delete-btn {
  background: transparent;   /* Removes default button background box */
  border: none;              /* Removes default border border */
  color: #888888;            /* Muted gray by default so it doesn't distract */
  font-size: 16px;           /* Clean, readable icon size */
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;         /* Pushes it neatly to the right edge if needed */
}

/* Hover effects */
.delete-btn:hover {
  color: #df0404;            /* Turns a crisp brand-red on hover */
  transform: scale(1.05);    /* Micro-interaction pop effect */
}

/* Focus state for accessibility */
.delete-btn:focus {
  outline: none;
}

.delete-btn:active {
  transform: scale(0.75);    /* Pressed down effect on click */
}

/* ==========================================
   CART DRAW LINK RESET STYLING
   ========================================== */
.cart-item-link {
  display: block;
  text-decoration: none;
}

.cart-item-title-link {
  text-decoration: none;
  color: inherit; /* Inherits the original dark color from your layout rules */
}

/* Give users visual confirmation that titles are interactive links */
.cart-item-title-link:hover .item-title {
  text-decoration: underline;
  opacity: 0.85;
}

.cart-item-link:hover .item-img {
  opacity: 0.9;
  transform: scale(1.02);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.normal{
  border: none;
  padding: 10px 12px;
  background-color: #333;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  border-radius: 5px;
}

.button{
  transition: 0.18s ease;
  cursor: pointer;
}

.button:hover{
  transform: scale(105%);
}

.button:active{
  transition: 0.08s ease;
  transform: scale(95%);
}

.clickable-card{
  transition: 0.18s ease;
}

.clickable-card:hover{
  transform: scale(105%);
}

.clickable-card:active{
  transition: 0.08s ease;
  transform: scale(95%);
}

.clickable-text{
  transition: 0.18s ease;
}

.clickable-text:hover{
  transform: scale(105%);
}

.clickable-text:active{
  transition: 0.08s ease;
  transform: scale(95%);
}

/* Layout Wrapper */
.shop-container {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 1. Left Sidebar Styling */
#category-sidebar {
  flex: 0 0 250px; /* Fixed width of 250px */
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
}

#category-sidebar h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  padding-bottom: 5px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-item {
  margin-bottom: 10px;
}

.sidebar-link {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: color 0.2s;
}

.sidebar-link:hover, 
.sidebar-link.active {
  color: #181818; /* Matches your red-text accent */
}

/* 2. Main Content Area */
.main-content {
  flex: 1; /* Takes up the remaining space */
}

/* Responsive Layout for Mobile */
@media (max-width: 768px) {
  .shop-container {
    flex-direction: column; /* Stack sidebar on top of products on mobile */
  }
  
  #category-sidebar {
    flex: 1;
    width: 100%;
  }
}


/* Filter Bar Row Container */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f5f5f5; /* Light gray bar background */
  padding: 12px 20px;
  border-radius: 6px;
  margin-bottom: 25px;
}

.filters {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Match the exact button/select look from screenshot */
.filter-btn, 
.filter-select {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-select:hover {
  border-color: #888888;
}

/* Visual active indicator when Campaign filtering is switched on */
.filter-btn.active-filter {
  background-color: #333333;
  color: #ffffff;
  border-color: #333333;
}

/* Product Count Styling (Right Aligned) */
.product-count {
  font-size: 0.95rem;
  color: #333333;
  font-weight: 500;
}

/* Container to contextualize the absolute position panel */
.custom-dropdown-container {
  position: relative;
  display: inline-block;
}

/* The primary action selector style */
.dropdown-trigger-btn {
  background-color: #ffffff;
  color: #111111;
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Container to contextualize the absolute position panel */
.custom-dropdown-container {
  position: relative;
  display: inline-block;
}

/* The primary action selector style */
.dropdown-trigger-btn {
  background-color: #ffffff;
  color: #111111;
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Toggle layout class for when it is active */
.custom-dropdown-container.menu-open .arrow-icon {
  transform: rotate(180deg);
}

/* 1. The Popup Menu Box (HIDDEN BY DEFAULT) */
.dropdown-menu-panel {
  display: none; /* 🌟 Keep this completely hidden initially */
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background-color: #f5f5f5; 
  border-radius: 8px;
  padding: 15px;
  width: 320px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  
  flex-wrap: wrap;
  gap: 10px;
}

/* 2. ONLY convert to display flex when the parent has the .menu-open class */
.custom-dropdown-container.menu-open .dropdown-menu-panel {
  display: flex !important;
}

/* Individual Pill styling */
.campaign-pill {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  padding: 8px 16px;
  border-radius: 20px; 
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Active Highlight */
.campaign-pill.active-pill {
  background-color: #2b2b2b; 
  color: #ffffff !important;
  border-color: #2b2b2b;
}

/* Container to contextualize the absolute position panel */
.custom-dropdown-container {
  position: relative;
  display: inline-block;
}

/* Base button appearance */
.dropdown-trigger-btn {
  background-color: #ffffff;
  color: #111111;
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s ease;
}

.dropdown-trigger-btn:hover {
  border-color: #888888;
}

/* Arrow rotation indicator */
.custom-dropdown-container.menu-open .arrow-icon {
  transform: rotate(180deg);
}

/* Popover Panel Box (Hidden by Default) */
.dropdown-menu-panel {
  display: none; 
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background-color: #f5f5f5; /* Light gray panel background */
  border-radius: 8px;
  padding: 15px;
  width: 320px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  
  flex-wrap: wrap;
  gap: 10px;
}

/* Reveal style trigger rule */
.custom-dropdown-container.menu-open .dropdown-menu-panel {
  display: flex !important;
}

/* Pill Styling for both panels */
.sort-pill,
.campaign-pill {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  padding: 8px 16px;
  border-radius: 20px; 
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-pill:hover,
.campaign-pill:hover {
  border-color: #999;
}

/* Active Highlight Style */
.sort-pill.active-pill,
.campaign-pill.active-pill {
  background-color: #2b2b2b; /* Dark charcoal */
  color: #ffffff !important;
  border-color: #2b2b2b;
}

/* Ensure the image container defines the boundaries for absolute child positions */
.image-wrapper, .main-image-container {
  position: relative;
  overflow: hidden;
}

/* Badge Layout Container Row */
.product-badge-row {
  position: absolute;
  bottom: 8px; /* Slightly tighter placement to the corner edge */
  left: 8px;
  display: flex;
  align-items: center;
  gap: 4px; /* Reduced gap between labels */
  z-index: 10;
  font-family: inherit;
  font-weight: bold;
  font-size: 0.72rem; /* Reduced font size from 0.8rem for a cleaner look */
}

/* Red Campaign Name Label */
.badge-campaign-name {
  background-color: #e53935;
  color: #ffffff;
  padding: 4px 8px; /* Reduced from 6px 12px to make the pill sleek */
  border-radius: 4px; /* Slightly cleaner corner radius for smaller text */
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

/* Dark Counter Percentage Pill */
.badge-percentage {
  background-color: #222222;
  color: #ffffff;
  padding: 4px 6px; /* Reduced from 6px 10px to scale down nicely */
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

/* Container layout positioning block */
.category-header-block {
  margin-bottom: 25px;
  width: 100%;
  max-width: 1200px;
}

/* Big crisp bold category title */
.category-main-title {
  font-size: 2.25rem;
  font-weight: bold;
  color: #333;
  margin: 14px 0 14px 0;
  letter-spacing: -0.5px;
}

/* Perfectly tracking subtitle description string */
.category-sub-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #2b2b2b; /* Smooth slate-black styling */
  margin: 0;
  font-weight: 400;
  max-width: 100%; /* Allows paragraph strings to sweep cleanly across the view width */
}

/* Container wrapper to anchor text elements */
.description-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* Default state showing the full description string */
.category-sub-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #2b2b2b;
  margin: 0;
  font-weight: 400;
  max-height: 1000px; /* High boundary layout variable */
  transition: max-height 0.3s ease-in-out;
  overflow: hidden;
}

/* Strict clamp mode restricting text frame boundaries to exactly 3 lines */
.category-sub-desc.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-height: calc(1.6em * 2); /* Matches your line-height dimension */
  overflow: hidden;
}

/* Custom layout toggle button adjustments for Font Awesome icons */
.toggle-desc-btn {
  background: transparent;
  border: none;
  color: #0d82b1; /* Matches your active brand blue color option */
  font-weight: bold;
  font-size: 0.95rem;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.toggle-desc-btn:hover {
  text-decoration: underline;
  color: #2c666e;
}

/* Ensure the wrapper is the positioning context */
.dropdown-wrapper {
  position: relative;
  display: inline-block;
}

/* Hide the panel by default */
.dropdown-wrapper .dropdown-menu-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
  min-width: 200px;
}

/* 🔥 THIS IS CRUCIAL: Show the panel when menu-open class is active */
.dropdown-wrapper.menu-open .dropdown-menu-panel {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

/* Container for the entire filter section */


/* Grouping the filter buttons together */
.filters {
  display: flex;
  gap: 12px;
}

/* Style for each individual dropdown wrapper */
.dropdown-wrapper {
  position: relative;
  display: inline-block;
}

/* The custom dropdown buttons */
.dropdown-toggle {
  background: #ffffff;
  color: #2b2b2b;
  border: 1px solid #dcdcdc;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.dropdown-toggle:hover {
  background: #f3f3f3;
  border-color: #b5b5b5;
}

/* The actual hidden panel menu layout */
.dropdown-menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.08);
  min-width: 210px;
  overflow: hidden;
}

/* Show container cleanly when toggled active */
.dropdown-wrapper.menu-open .dropdown-menu-panel {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

/* Option selections within the panels */
.sort-pill, .campaign-pill {
  background: transparent;
  border: none;
  text-align: left;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: #444;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s ease;
}

.sort-pill:hover, .campaign-pill:hover {
  background: #f5f5f5;
  color: #111;
}

/* Highlighted state for selected filter options */
.active-pill {
  background: #f0f7ff;
  color: #0d82b1;
  font-weight: 600;
}

/* Product counter string on the right side */
.product-count {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}


/* Ensure the page content has comfortable top padding and centers perfectly */
.search-page-wrapper {
  padding-top: 40px;
  padding-bottom: 60px;
  width: 100%;
}

/* Master search container constraint layout */
.search-container {
  max-width: 1200px;
  margin: 0 auto !important; /* Force layout centering block mechanics */
  padding: 0 40px !important; /* Add generous side spacing so elements do not touch screen edges */
  width: 100%;
  box-sizing: border-box;
}

/* Make sure the filter bar scales horizontally inside the master container framework */
.search-container .filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;

  border-bottom: 1px solid #eaeaea;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

/* Clear the width for the bottom results section */
.search-content-block {
  width: 100%;
  box-sizing: border-box;
}

/* Enforce structured header layouts */
.search-content-block .category-header h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: #111;
}

/* Re-establish your exact functional product grid architecture layout constraints */
.search-container #products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 30px !important;
  width: 100% !important;
}

/* Container for the entire filter section */
.search-container .filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #eaeaea;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

/* Ensure the wrapper sets a proper positioning layer for the absolute menu */
.dropdown-wrapper {
  position: relative;
  display: inline-block;
}

/* The actual menu panel dropdown */
.dropdown-menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px); /* Drop down clearly below the button */
  left: 0;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12); /* Rich, floating shadow */
  min-width: 220px;
  overflow: hidden;
  box-sizing: border-box;
}

/* When active, show menu clean and unclipped */
.dropdown-wrapper.menu-open .dropdown-menu-panel {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.image-wrapper {
  position: relative; /* Crucial anchor context for the button */
}

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffffff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 10;
}

.wishlist-btn:hover {
  transform: scale(1.1);
  background-color: #fcfcfc;
}

.wishlist-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: filter 0.2s ease;
}

/* Nav Badge indicator rules */
#favorites-btn {
  position: relative;
}
.nav-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e53935;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
  min-width: 12px;
  text-align: center;
}

/* --- HORIZONTAL SCROLLABLE CARD ROW --- */
.product-grid.scrollable-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  gap: 20px;
  padding: 10px 4px 20px 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Butter-smooth iOS momentum scrolling */
}

/* Force elements to stay at fixed desktop sizing bounds without shrinking away */
.product-grid.scrollable-row .product-card,
.product-grid.scrollable-row .product-card1 {
  flex: 0 0 calc(25% - 15px); /* Perfectly spaces out exactly 4 items on desktop wide screens */
  min-width: 250px; /* Prevents text crowding on small tablet/mobile sizes */
}

/* Hide ugly scrollbars on Chrome, Safari and Opera */
.product-grid.scrollable-row::-webkit-scrollbar {
  height: 6px;
}
.product-grid.scrollable-row::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.product-grid.scrollable-row::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 10px;
}
.product-grid.scrollable-row::-webkit-scrollbar-thumb:hover {
  background: #888;
}

/* --- VARUKORG CART PAGE LAYOUTS --- */
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #eaeaea;
}
.cart-item-row img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}
.cart-qty-input {
  width: 50px;
  text-align: center;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.remove-cart-item {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 1.1rem;
}
.remove-cart-item:hover {
  color: #e53935;
}

/* --- NAVIGATION HEADER BADGES --- */
#header-nav button, #header-nav a {
  position: relative;
}

.nav-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e53935;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  z-index: 10;
}

/* Modern Unified Quantity Selector */
.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  height: 36px; /* Explicit uniform height */
}

.quantity-selector .qty-btn {
  width: 36px;
  height: 100%;
  background: transparent;
  border: none;
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  user-select: none;
}

.quantity-selector .qty-btn:hover {
  background-color: #f5f5f5;
  color: #000;
}

.quantity-selector .qty-btn:active {
  background-color: #eeeeee;
}

.quantity-selector .qty-input {
  width: 45px;
  height: 100%;
  text-align: center;
  border: none;
  background-color: #fff; /* Removes default input gray background */
  color: #222;
  font-size: 1rem;
  font-weight: 600;
  padding: 0;
  margin: 0;
  outline: none;
  border-left: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
}

/* Chrome, Safari, Edge, Opera: Hide default spin arrows if input type is number */
.quantity-selector .qty-input::-webkit-outer-spin-button,
.quantity-selector .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.quantity-selector .qty-input[type=number] {
  -moz-appearance: textfield;
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  text-align: center;
}

.cookie-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-btn {
  background-color: #4caf50; /* Grön färg, ändra så den matchar din shop! */
  color: white;
  border: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-btn:hover {
  background-color: #45a049;
}

/* Responsiv design för mobiler */
@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}

/* Huvudheadern */
#boutique-navigation-hub {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1f2121;
  padding: 30px 40px;
  border-bottom: 1px solid #eaeaea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  z-index: 1000; /* Säkerställer att hela headern ligger över sidans övriga innehåll */
}

/* 1. Tvinga loggans behållare att ligga absolut centrerad i headern */
.brand-anchorage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
}

#brand-logo-media {
  height: 60px;
  width: auto;
}

/* 2. Se till att ikongruppen alltid skjuts till högerkanten */
.client-utility-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto; /* Detta trycker ut ikonerna till höger oavsett skärmstorlek */
}

.utility-action-node {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Gör ikonerna i headern vita */
.utility-action-node img {
  width: 19px;
  height: 19px;
  transition: opacity 0.2s ease;
  filter: brightness(0) invert(1); 
}

.utility-action-node img:hover {
  opacity: 0.5;
}



/* --- SÖKBAR (UTDRAGBAR PANEL) --- */
.search-overlay-drawer {
  position: absolute !important;
  top: 100% !important; /* Placerar den exakt under elementet den ligger i */
  left: 0 !important;
  width: 100% !important; /* Tar upp 100% av bredden på skärmen */
  
  /* Garanterat helt solid kritvit bakgrund */
  background: #ffffff !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
  
  /* Fixar padding-problemet så den inte blir för bred eller konstig */
  box-sizing: border-box !important;
  padding: 24px 40px !important;
  
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  z-index: 9999999 !important; /* Lägger den över ALLT annat */
  display: none !important; /* Dold som standard */
}

/* Visas när man klickar på förstoringsglaset */
.search-overlay-drawer.active {
  display: block !important;
}


/* Centrerar sökstrecket inuti den skärmbreda panelen */
/* Centrerar sökstrecket vertikalt och horisontellt inuti panelen */
.search-inner-container {
  max-width: 500px;         
  margin: 0 auto;           
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid #111111; 
  padding: 4px 0;           /* Skapar lite andningsrum ovanför och under sökstrecket */
  height: 36px;             /* 🌟 Sätter en fast höjd så att den inte kollapsar */
  box-sizing: border-box;   /* Säkerställer att höjden beräknas korrekt */
}

/* Själva textinmatningen */
#search-input {
  width: 100%;
  border: none !important;
  outline: none !important;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  background: transparent !important;
  color: #111111;
  height: 100%;             /* 🌟 Låter textfältet ta upp hela behållarens höjd */
  margin: 0;
  padding: 0;
}

#search-input::placeholder {
  color: #999999;
}

/* Sökknappen */
#search-submit-action {
  border: none !important;
  background: transparent !important;
  cursor: pointer;
  padding: 0 0 0 10px;      /* Ger lite avstånd till vänster om ikonen */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;             /* 🌟 Matchar höjden på behållaren */
}

#search-submit-action img {
  width: 16px;
  height: 16px;
  display: block;
  filter: none !important; 
}

#search-submit-action img:hover {
  transform: scale(1.05);
}

/* Notiser/Banners */
.announcement-stack div {
  text-align: center;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 8px 0;
  text-transform: uppercase;
}

#promo-notice-prime { background-color: #000; color: #fff; }
#logistic-notice-sub { background-color: #f9f9f9; color: #000; }

/* ==========================================================================
   MOBILANPASSNING (Gäller skärmar under 768px)
   ========================================================================== */
   @media (max-width: 768px) {
  
    /* 1. Förhindra horisontell scroll på hela sajten */
    html, body {
      overflow-x: hidden;
      width: 100%;
    }
  
    /* 2. Åtgärda negativa marginaler på artiklar som trycker ut skärmen */
    article {
      margin-left: 0 !important;
      margin-right: 0 !important;
      padding: 0 15px;
    }
  
    /* 3. Anpassa Shop/Kategori-layouten (Stapla sidebar och innehåll) */
    .shop-container {
      flex-direction: column !important;
      display: flex !important;
      padding: 10px !important;
      gap: 20px !important;
    }
    
    #category-sidebar {
      width: 100% !important;
      flex: none !important;
      box-sizing: border-box;
    }
  
    /* 4. Banner-grids: Gör så att de staplas istället för att ligga i bredd */
    .banner-grid, 
    .banner-grid2,
    .banner-grid3 {
      grid-template-columns: 1fr !important;
      gap: 15px !important;
      padding: 0 15px !important;
    }
  
    /* Justera aspect-ratio på mobilen så bilderna inte blir gigantiska på höjden */
    .banner-card, .banner-card2, .banner-card3 {
      aspect-ratio: 4 / 3 !important;
    }
  
    /* 5. Populära kategorier: Sätt till 2 i bredd istället för 4 */
    .popular-categories {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 10px !important;
      padding: 10px !important;
    }
    
    .category-card {
      font-size: 12px !important;
      padding: 8px !important;
      gap: 8px !important;
    }
    
    .category-card img {
      height: 35px !important;
    }
    
    .category-card span {
      font-size: 11pt !important;
    }
  
    /* 6. Skryt-bannern (Fri frakt osv): Stapla ikonerna vertikalt */
    .skryt-container {
      flex-direction: column !important;
      gap: 15px !important;
      text-align: center !important;
      padding: 20px 10px !important;
    }
    
    .skryt-del {
      justify-content: center !important;
    }
  
    /* 7. Varukorgs-drawern (Cart Drawer): Se till att den inte är bredare än skärmen */
    .cart-drawer {
      width: 100% !important;
      max-width: 100% !important;
    }
  
    /* 8. Footer: Justera länk-gridet från 4 kolumner till 1 eller 2 */
    .footer-links-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 30px 15px !important;
      padding: 0 20px !important;
    }
    
    footer {
      height: auto !important; /* Låt footern expandera naturligt på höjden */
      padding-bottom: 40px !important;
    }
    
    .footer-logo img {
      margin-top: 30px !important;
      margin-bottom: 15px !important;
    }
  
    /* 9. Produktsida: Stapla bild och detaljer */
    .product-container {
      flex-direction: column !important;
      gap: 20px !important;
      padding: 15px !important;
    }
  
    /* 10. Filter-bar och dropdown-paneler */
    .filter-bar {
      flex-direction: column !important;
      align-items: flex-start !important;
      gap: 10px !important;
      padding: 12px !important;
    }
    
    .filters {
      width: 100% !important;
      flex-wrap: wrap !important;
    }
    
    .dropdown-menu-panel {
      width: calc(100vw - 40px) !important; /* Gör dropdownen responsiv */
    }
  }

  @media (max-width: 768px) {
    /* ... dina andra mobilregler ... */
  
    /* Se till att headern sätter elementen i en rad och trycker ut dem mot kanterna */
    #boutique-navigation-hub {
      padding: 10px 15px !important;
      display: flex !important;
      flex-direction: row !important; /* Tvingar rad istället för stapling */
      justify-content: space-between !important; /* Logga till vänster, ikoner till höger */
      align-items: center !important;
    }
  
    /* Justera loggans placering så den trycks helt till vänster */
    .brand-anchorage {
      position: static !important;
      transform: none !important;
      margin-right: auto !important; /* Skjuter bort de andra elementen till höger */
    }
  
    /* Se till att länkarna/ikonerna till höger håller ihop fint */
    .client-utility-bar {
      display: flex !important;
      gap: 15px !important;
      margin-left: auto !important;
    }
  }

  /* --- Desktop-hantering --- */
.desktop-subcategories {
  display: block;
}

#mobile-subcategory-container {
  display: none; /* Göm helt på desktop */
}

/* --- Mobil-anpassning (Kompakt dropdown) --- */
@media (max-width: 768px) {
  .desktop-subcategories {
    display: none; /* Göm desktop-listan på mobilen */
  }

  #mobile-subcategory-container {
    display: block; /* Visa behållaren på mobilen */
    margin-top: 10px; /* Ger ett litet och snyggt avstånd under beskrivningen/knappen */
    margin-bottom: 15px;
    width: 100%;
    max-width: 250px; /* Begränsar bredden så den inte sträcker sig över hela skärmen */
  }

  .mobile-subcategories-dropdown select {
    width: 100%;
    padding: 8px 30px 8px 10px; /* Mindre padding för en mer kompakt look */
    font-size: 14px; /* Lite mindre text, men fortfarande lättläst */
    color: #444;
    background-color: #f9f9f9; /* Ljusgrå bakgrund för att kännas mer diskret */
    border: 1px solid #ddd;
    border-radius: 6px; /* Lite mindre rundade hörn */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* En mindre och diskretare pil */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'><path fill='%23666' d='M0 0l4 4 4-4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
    cursor: pointer;
    box-shadow: none;
  }

  .mobile-subcategories-dropdown select:focus {
    outline: none;
    border-color: #888;
    background-color: #fff;
  }
}

@media (max-width: 768px) {
  /* Dölj hela desktop-sidebaren helt på mobilskärmar */
  #category-sidebar {
    display: none !important;
  }
}

/* --- VARUKORG STYLING (DESKTOP) --- */
.cart-page-wrapper {
  max-width: 1200px;
  margin: 40px auto 200px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.cart-page-title {
  margin-bottom: 20px;
  font-size: 2rem;
}

#shipping-tracker-banner {
  background: #f4f4f4;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 30px;
  border-left: 4px solid #000;
  font-weight: 500;
}

.cart-split-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.cart-items-list {
  flex: 2;
  min-width: 300px;
}

.cart-summary-sidebar {
  flex: 1;
  min-width: 300px;
  background: #fafafa;
  padding: 25px;
  border-radius: 8px;
  height: max-content;
  border: 1px solid #eaeaea;
  box-sizing: border-box;
}

.summary-title {
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.summary-total-row {
  font-weight: bold;
  font-size: 1.2rem;
  border-top: 2px solid #000;
  padding-top: 15px;
  margin-bottom: 25px;
  margin-top: 15px;
}

.checkout-proceed-btn {
  text-decoration: none;
  display: block;
  width: 100%;
}

#checkout-swish-btn {
  width: 100%;
  background: #12b50a;
  color: #ffffff;
  border: none;
  padding: 15px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
}

#checkout-swish-btn img {
  height: 24px;
}

@media (max-width: 768px) {
  /* Minska yttermarginaler och det enorma tomrummet i botten */
  .cart-page-wrapper {
    margin-top: 20px;
    margin-bottom: 60px;
    padding: 0 12px; /* Ger mer textutrymme på bredden */
  }

  .cart-page-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  #shipping-tracker-banner {
    padding: 12px;
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* Tvinga elementen att staplas snyggt på varandra */
  .cart-split-container {
    gap: 20px;
  }

  .cart-items-list, 
  .cart-summary-sidebar {
    min-width: 100%;
    flex: 1 1 100%;
  }

  /* Justera rutan för ordersammanställning så texten inte kläms */
  .cart-summary-sidebar {
    padding: 15px 12px; /* Mindre padding sparar mycket bredd */
  }

  /* Säkra raderna så att text och priser aldrig krockar eller klipps */
  .summary-row {
    gap: 8px; /* Tvingar fram ett minsta avstånd */
  }

  .summary-row span {
    font-size: 14px; /* Lite mer kompakt text på mobilen */
  }

  .summary-total-row {
    font-size: 1.1rem;
    padding-top: 12px;
    margin-bottom: 20px;
  }

  /* Gör Swish-knappen mer mobil-vänlig */
  #checkout-swish-btn {
    padding: 14px;
    font-size: 1.1rem;
    border-radius: 8px;
  }

  #checkout-swish-btn img {
    height: 20px; /* Loggan skalas ner något i proportion till texten */
  }
}

/* --- PRODUKTRADER I VARUKORGEN (DESKTOP) --- */
.cart-item-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #eaeaea;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}

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

.cart-item-title {
  margin: 0 0 5px 0;
  font-size: 1.05rem;
}

.cart-item-variant {
  color: #666;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 2px;
}

.cart-item-stock {
  color: #888;
  font-size: 0.85rem;
}

.stock-warning {
  color: #b71c1c;
}

/* Kvantitetsväljaren */
.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.qty-btn {
  background: #f4f4f4;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
}

.qty-btn:hover {
  background: #ddd;
}

.qty-input {
  width: 35px;
  height: 32px;
  text-align: center;
  border: none;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  font-size: 0.9rem;
  background: #fff;
}

.cart-item-total-price {
  font-weight: bold;
  min-width: 80px;
  text-align: right;
  font-size: 1.05rem;
}

.remove-cart-item {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 5px;
  margin-left: 10px;
  transition: color 0.2s;
}

.remove-cart-item:hover {
  color: #c0392b;
}

.remove-cart-item i {
  font-size: 1.3rem;
}

@media (max-width: 768px) {
  /* Förvandla raden till ett grid eller flexbox-layout så att ingenting trycks ut */
  .cart-item-row {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 15px 5px;
    position: relative;
    align-items: start;
  }

  /* Gör produktbilden något mindre */
  .cart-item-img {
    width: 60px;
    height: 60px;
    grid-column: 1;
    grid-row: 1 / span 2; /* Låter bilden sträcka sig över båda raderna på höjden */
  }

  /* Textinfon hamnar i mitten på översta raden */
  .cart-item-info {
    grid-column: 2 / span 2;
    grid-row: 1;
    padding-right: 25px; /* Lämnar plats åt soptunnan */
  }

  .cart-item-title {
    font-size: 0.95rem;
  }

  /* Flytta ner kvantitetsväljaren och totalpriset till rad två */
  .quantity-selector {
    grid-column: 2;
    grid-row: 2;
    margin-top: 5px;
  }

  .cart-item-total-price {
    grid-column: 3;
    grid-row: 2;
    text-align: right;
    align-self: center;
    font-size: 1rem;
    min-width: auto;
  }

  /* Sätt soptunnan absolut i övre högra hörnet så den inte bråkar med flödet */
  .remove-cart-item {
    position: absolute;
    top: 12px;
    right: 5px;
    margin-left: 0;
    padding: 4px;
  }
  
  .remove-cart-item i {
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  /* Krymp hela kvantitetsväljaren så den blir smalare */
  .quantity-selector {
    display: flex !important;
    width: auto !important;
    max-width: 90px !important; /* Begränsar totala bredden hårt */
    height: 28px !important;    /* Gör den lite lägre och smidigare */
  }

  /* Gör minus- och plusknapparna mindre */
  .quantity-selector .qty-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.9rem !important;
    line-height: 28px !important;
    padding: 0 !important;
  }

  /* Krymp själva sifferfältet i mitten */
  .quantity-selector .qty-input {
    width: 30px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
    padding: 0 !important;
  }
}

@media (max-width: 700px) {
  /* ... dina andra mobilregler ... */

  .skryt-container {
    flex-direction: column !important; /* Stapla skryt-delarna på höjden */
    gap: 15px !important;              /* Skapa luft mellan raderna */
    padding: 15px 20px !important;     /* Lägg till sidomarginaler så det inte slickar kanterna */
    margin-top: 40px !important;       /* Minska avståndet uppåt lite på mobilen */
    margin-left: 20px;
    margin-right: 20px;
    width: auto;
  }

  .skryt-del {
    justify-content: center !important; /* Centrera ikonen och texten */
    width: 100% !important;
  }
  
  .skryt-del span {
    font-size: 11pt !important;        /* Gör texten snäppet mindre så den får plats bra */
    text-align: left !important;       /* Behåll vänsterställd text bredvid ikonen */
  }
}

#oppna-pos {
  margin-top: 50px;
  cursor: pointer;
}

#inga-oppna {
  color: #909090;
}

#bread {
  color: #333;
}

#positioner-article {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.positioner-cont {
  width: 60%;
}

#positioner-logo {
  width: 30%;
  height: auto;
  filter: invert(1);
}

@media (max-width: 768px) {
  #positioner-article {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
  }

  .positioner-cont {
    width: 100%;
  }

  #positioner-logo {
    width: 50%;
    height: auto;
    filter: invert(1);
    margin-top: 25px;
  }
}

/* Dropdown / Accordion Styling */
.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  background-color: #fff;
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq-trigger:hover {
  background-color: #f7f9f5;
}

.faq-trigger i {
  color: #458500;
  transition: transform 0.2s ease;
}

/* Själva texten som göms/visas */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: #fafafa;
}

.faq-content-inner {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.95rem;
  color: #555;
}

/* Aktivt tillstånd (när dropdownen är öppen) */
.faq-item.active .faq-content {
  max-height: 500px; /* Tillräckligt högt för att rymma texten */
}

.faq-item.active .faq-trigger i {
  transform: rotate(180deg);
}

/* Kontaktkort längst ner */
.contact-card {
  background-color: #f9f9f9;
  border-left: 4px solid #458500;
  padding: 20px;
  margin-top: 40px;
  border-radius: 0 6px 6px 0;
}

.contact-card h4 {
  margin: 0 0 10px 0;
  font-size: 1.15rem;
  color: #111;
}

.contact-card p {
  margin: 5px 0;
}

.contact-card a {
  color: #458500;
  text-decoration: underline;
}

.back-btn {
  display: inline-block;
  margin-top: 25px;
  background-color: #222;
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background-color: #458500;
  color: #fff;
}

.policy-accent-box {
  background-color: #f9f9f9;
  border-left: 4px solid #458500;
  padding: 15px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
}