/* ───────────────────────────────────────────────
   1. Reset / Normalize (Modern CSS Reset)
   Source: https://piccalil.li/blog/a-modern-css-reset/
   ------------------------------------------------ */



/* ───────────────────────────────────────────────
   2. Global / Base Styles
   ------------------------------------------------ */
body {
  font-family: 'Roboto Condensed', sans-serif; /* Apply the Google Font globally */
}

button { /* Apply Outfit font to buttons */
  font-family: 'Outfit', sans-serif; /* Apply Outfit font to buttons */
  padding: 10px;
  margin: 5px;
  cursor: pointer;
  border: none; /* Ensure all buttons have no border */
  font-size: 14px; /* Ensures consistent font size */
  border-radius: 25px; /* Makes it pill-shaped */
}

button:hover {
  background-color: #ddd;
  transition: background-color 0.3s ease; /* Smooth hover effect */
}

p {
  line-height: 1.4em;
}

h1 {
  text-align: center;
  color: #46BBD7;
}

/* ───────────────────────────────────────────────
   3. Typography
   ------------------------------------------------ */
   
   
   
/* ───────────────────────────────────────────────
   4. Layout
   ------------------------------------------------ */
.page {
  max-width: 860px;
  margin: 0 auto 30px auto;
}

.panel {
  color: #666;
  box-shadow: 3px 4px 5px rgba(0, 0, 0, 0.2);
  overflow: auto;
}   

#bigWrap {
  max-width: 88%;
  margin: 0 auto;
  font-size: 0.8em;
  position: relative;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 60%;
  margin: 0.5% auto;
}

#topBlock {
  height: 130px;
}

/* ───────────────────────────────────────────────
   5. Components / Modules (buttons, cards, galleries, etc.)
   ------------------------------------------------ */

/* - - - - - Most front-end teams (and stylelint configurations) follow something like this order:
1. Positioning (position, top, right, etc.)
2. Box Model (display, width, padding, margin, etc.)
3. Typography (font, line-height, text-align, etc.)
4. Visual (color, background, border, etc.)
5. Other (animations, transforms, z-index, etc.)
- - - - - */
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 320px;
  margin: 0  auto 20px;

  border-bottom: 1px dashed #ccc; /* This acts as a fallback or base for the border-image */
	border-image: repeating-linear-gradient(
    to right,
    #ccc 0,
    #ccc 8px,      /* dash length: slightly shorter */
    transparent 8px,
    transparent 22px  /* total dash + gap length: wider gap */
  ) 1;
  padding-bottom: 2rem;
}

.gallery:last-of-type {
  border-bottom: none; /* Correctly removes the solid border if border-image fails or isn't supported */
  border-image: none; /* ⭐ THIS IS THE KEY ADDITION ⭐ */
  margin-bottom: 0;
}


.product-title {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 0.2em;
    color: #222;
    text-align: center;
}

.product-description {
    font-size: 0.85em;
    color: #666;
    text-align: center;
    margin-bottom: 1em;
    line-height: 1.4;
}

.photo-viewer {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  background-color: #FCFCFC;
}

.photo-viewer img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.thumbnails {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
  gap: 10px; /* Sets both row-gap and column-gap to 10px */
}

.thumbnails .thumb {
  width: 60px;
  height: 60px;
  /* Remove margin-right if using gap for consistent spacing */
  /* margin-right: 10px; */
}

.thumbnails .thumb img {
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.3s ease-in-out;
}

.thumbnails .thumb:hover img {
  transform: scale(1.1);
}

.thumbnails .thumb.selected img {
  opacity: 0.5;
  border: 2px solid #F7FDFF;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.thumbnails .thumb:not(.selected) img {
  opacity: 1;
}

/* Custom Spinner Styles */
.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  z-index: 10;
  display: none;
  background-color: transparent;
}
.spinner svg {
  width: 100%;
  height: 100%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



@keyframes spinEase {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

@keyframes arcPulse {
  0%   { stroke-dasharray: 75 25; }
  50%  { stroke-dasharray: 90 10; }
  100% { stroke-dasharray: 75 25; }
}

#logo {
  width: 130px;
  height: auto; /* Ensures proportional scaling */
}

.buy-now {
  background-color: #FFC02B; /* paypal color */
}

#cart-toggle-btn {
  position: fixed;
  top: 3%;
  right: 0.08%; /* Adjusted to match feedbackButton */
  background-color: transparent;
  border: 2px dashed #40A2AD;  /* peacock blue */
  z-index: 1000;
}


#cart-sidebar {
	position: fixed;
	top: 0;
	right: -320px; /* Start off-screen */
	width: 300px;
	height: 100%;
	background-color: white;
	box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
	padding: 20px;
	overflow-y: auto;
	transition: right 0.3s ease-in-out;
	box-sizing: border-box;
	z-index: 1000;
	border-left: 8px solid rgba(0, 180, 150, 0.7);
}

/* Slide-in class */
#cart-sidebar.open {
	right: 0;
}



.cart-item {
  display: flex;
  align-items: center;  /* Ensure that quantity and remove button are aligned horizontally */
  margin-bottom: 15px;   /* Adds spacing between cart items */
  padding: 10px;
  border-bottom: 1px solid #ccc; /* Optional: for better item separation */
}

.cart-item img {
  margin-right: 10px; /* Adds space between the image and the rest of the content */
}

.cart-item p { /* Legacy for removal? */
  margin: 0 0 5px 0; /* Adjusts the spacing of text elements */
}

.cart-item-quantity { /* Legacy for removal? */
  width: 40px;  /* Adjust the width of the quantity input */
  padding: 5px;
  text-align: center;
  margin-right: 10px; /* Adds space between quantity input and the remove button */
  border-radius: 5px;
  border: 1px solid #ccc;  /* Adjust border thickness and color */
  /* You can reduce the border thickness here by setting a smaller value for `1px` */
}

/* Make sure the remove-item button itself has no background, padding, or border */
.remove-item {
  background: transparent !important;  /* Make background transparent */
  border: none !important;  /* Remove the border */
  padding: 10px;  /* Add padding around the image to make it more clickable */
  cursor: pointer;
  display: inline-flex;  /* Use inline-flex to ensure the button only takes the necessary space */
  justify-content: center;  /* Horizontally center the image */
  align-items: center;  /* Vertically center the image */
  border-radius: 0 !important;  /* Remove pill shape */
  width: auto; /* Ensure the width fits the image size and padding */
  height: auto; /* Ensure the height fits the image size and padding */
  background-size: 60%; /* Scale the image to 50% of the button size */
}

/* Target the image inside the remove-item */
.remove-item img {
  width: 15px;
  height: 15px;
  background: transparent !important;  /* Make the background transparent */
  border: none !important;  /* Remove the border */
  padding: 0 !important;  /* Remove any padding */
  display: block;  /* Prevent any inline spacing issues */
  margin: 0;  /* Reset any default margin */
  pointer-events: none;  /* Ensure image is part of clickable area */
}

/* Hover effect for remove button */
/* Change image on hover */
.remove-item:hover img {
  content: url('/images/bin-opened.png');  /* Path to the hover image */
}

/* Style for Checkout and Close buttons */
#checkout-btn,
#close-cart-btn {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  width: auto; /* Allow the buttons to take their natural width */
  display: block; /* Ensure the buttons are block elements, stacking one below the other */
  margin-left: auto;  /* Optional: center the buttons if desired */
  margin-right: auto; /* Optional: center the buttons if desired */
}

#checkout-btn {
  background-color: #FFC02B; /* paypal color */
}

#close-cart-btn {
  background-color: #FF6542; /* poppy */
}

#checkout-btn:hover,
#close-cart-btn:hover {
  background-color: #218838;
}



/* Feedback Button Styles */
#feedbackButton {
    position: fixed; 
    right: 0.08%;
    bottom: 27%;
    width: 50px;
    height: 50px;
    padding: 0;
    background-color: transparent;
    border: 2px dashed #40A2AD; 
    cursor: pointer;
    display: flex; 
    justify-content: center;
    align-items: center;
    z-index: 998; 
}
#f-btn {
    display: block; 
    margin: auto; 
    width: 27px; 
    height: 27px; 
    max-width: 100%; 
    max-height: 100%;
}
#feedbackButton:hover,
#f-btn:hover {
    background-color: transparent; 
}
#feedback-draft-indicator {
    position: absolute;
    top: -6px; 
    right: -6px; 
    width: 12px;
    height: 12px;
    background-color: #FFA500; 
    border-radius: 50%;
    border: 2px solid white;
    z-index: 1000;
    
    display: none; 
}
#feedback-draft-indicator.show-dot {
    display: block; 
}



#feedbackPopup {
    position: fixed; /* Keep it fixed to the viewport */
    top: 0;          /* Start from the top edge of the viewport */
    right: -320px;   /* Initially off-screen (adjust to be wider than its width for full hide) */
    width: 300px;    /* Desired width of your new sidebar (match your existing sidebar's width if possible) */
    height: 100vh;   /* Make it full viewport height */
    background-color: #fff; /* Or your preferred background color */
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2); /* Add a subtle shadow on the left edge */
    z-index: 1000;   /* Ensure it's above other content */
    transition: right 0.3s ease-in-out; /* Smooth slide-in/out transition */
    border-left: 8px solid #8B008B; /* New border color: Dark Magenta */
    overflow-y: auto; /* Add scroll for content that exceeds height */
    padding: 20px; /* Add some padding inside the popup */
    box-sizing: border-box; /* Include padding and border in the total width/height */
}

/* This class should be added by your JavaScript to open the sidebar */
#feedbackPopup.open {
    right: 0; /* Slide into view */
}

/* --- Internal Styling for Elements within the Sidebar --- */
/* These are suggestions to make your form look good in the new sidebar layout.
   Adjust them to fit your site's overall design. */
#feedbackPopup .close-button { /* Adjust your close button if it's not working right */
    position: absolute; /* Position it relative to the popup */
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

#feedbackPopup h2 {
    margin-top: 0; /* Remove top margin from heading */
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}

#feedbackPopup form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between form elements */
}

#feedbackPopup label {
    font-weight: bold;
    margin-bottom: -10px; /* Pull label closer to input */
    color: #555;
}

#feedbackPopup input[type="text"],
#feedbackPopup input[type="email"],
#feedbackPopup textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Crucial for consistent sizing */
}

/* Styling for the buttons within the form */
#feedbackPopup .buttons { /* Assuming you wrap your main action buttons in a div with class 'buttons' */
    display: flex;
    flex-direction: column; /* Stack them vertically */
    gap: 10px;
    margin-top: 20px;
}

#feedbackPopup .buttons button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    width: 100%; /* Make buttons full width */
}

#feedbackPopup #sendFeedback {
    background-color: #4CAF50; /* Green for send */
    color: white;
}

#feedbackPopup #remindLater {
    background-color: #f0ad4e; /* Orange for remind */
    color: white;
}

#feedbackPopup #closePopup { /* The dedicated close button at the bottom */
    background-color: #f44336; /* Red for close */
    color: white;
    /* This button might be outside the '.buttons' div, adjust its margin/position as needed */
    margin-top: 20px; /* Space from form */
}

/* Adjust the error message styling to fit the sidebar */
#feedbackPopup #errorMessage {
    margin-top: 15px; /* Adjust spacing */
    margin-bottom: 15px; /* Adjust spacing */
}

/* Make sure your '.note' paragraph fits well */
#feedbackPopup .note {
    font-size: 0.85em;
    color: #666;
    margin-top: 10px;
    margin-bottom: 10px;
}




/* --- Keep these two styles as they are generic for messages --- */
.message {
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
    margin-top: 10px; /* Space above the message */
    margin-bottom: 10px; /* Space below the message */
    display: none; /* Hide by default */
}

/* --- Specific styles for error messages --- */
.error-message {
    background-color: #ffe0e0; /* Light red background */
    color: #cc0000; /* Darker red text */
    border: 1px solid #ff9999;
}



.slideshow-container {
	position: relative;
    top: 0;
    left: 0;
    width: 27%;  /* Take 27% of the window width */
    display: flex;
    align-items: center;  /* Centers content vertically */
    justify-content: space-between;  /* Places arrows on left and right */
    color: black;
    height: 32px;  /* Set the container height */
    z-index: 9999;
    padding: 0 10px;
    overflow: hidden;
    border: 2px dashed #40A2AD;  /* Peacock blue */
    border-radius: 10px;  /* Makes it pill-shaped */
}

/* Slide Images */
.slides {
	display: flex;
      overflow: hidden;
      max-width: calc(100% - 60px);  /* Subtract space for navigation arrows (30px left and right) */
      height: 100%; /* Make sure slides fit within the 32px height */
}

.slides img {
	width: auto;
      height: 100%;  /* Make sure images take up the full height of the container */
      object-fit: contain;  /* Ensure images are scaled properly within the container */
}
	
	/* Slide as clickable */
.slides .slide {
	cursor: pointer; /* Show hand cursor to indicate it's clickable */
  transition: transform 0.3s ease; /* Add a transition for a smooth effect when hovered */
}

.slides .slide:hover {
	transform: scale(1.05); /* Slightly enlarge the slide when hovered for a more interactive feel */
}

/* Navigation Arrows */
.nav-btn {
	width: 32px;  /* Explicit button size (adjust as needed) */
    height: 32px; /* Matches the container height */
    background: transparent;
    border: 2px dashed #FFD885;  /* Copper disable */
    cursor: pointer;
    z-index: 10;
    background-image: url('img/thedarn/forward.png'); /* Add the path to your background image */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat;
    background-size: contain;  /* Ensures the image fits within the button */
    display: flex; /* Optional: In case you need content inside */
    align-items: center;
    justify-content: center;
}

/* Left and Right Arrows */
.left {
	left: 10px;  /* Place on the left side */
}

.right {
	right: 10px;  /* Place on the right side */
}

#gotoTop {
  display: none; /* Initially hidden */
  position: fixed;
  bottom: 8%;
  right: 0.08%; /* Adjusted to match feedbackButton */
  background-color: transparent; /* Ensure transparent background */
  cursor: pointer;
  border: 2px dashed #40A2AD;  /* peacock blue */
  padding: 0; /* Remove any padding */
}

#gotoTop:hover {
  /* Optional: if you want a hover effect, you can add styles here */
  /* For example, you could add a scale effect for the image */
  transform: scale(1.1);
  transition: transform 0.3s ease; /* Smooth scaling effect */
}


#smart-search-container {
    margin: 20px auto; /* Center it, give some space */
    max-width: 600px; /* Adjust width as needed for your layout */
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#smartSearchInput {
    width: 100%;
    min-height: 80px; /* Give it some height for a message */
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical; /* Allow vertical resizing by user */
    box-sizing: border-box; /* Include padding in width/height */
}

#searchResults {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.search-result-item {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item h3 {
    margin: 0 0 5px 0;
    color: #007bff; /* Link color */
}

.search-result-item p {
    font-size: 0.9em;
    color: #555;
}


/* ───────────────────────────────────────────────
   6. Utility Classes
   ------------------------------------------------ */
#custom-tooltip {
  position: absolute;
  background: rgba(255, 255, 255, 0.85); /* Soft white overlay */
  backdrop-filter: blur(6px);            /* Glassy blur effect */
  color: #333;                           /* Gentle contrast for readability */
  padding: 8px 12px;
  border-radius: 14px;                   /* Ultra-rounded corners */
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Soft shadow for lift */
  pointer-events: none;
  z-index: 9999;
  max-width: 240px;
  white-space: normal;
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0;
  transform: scale(0.95);
}

.mobile-tooltip {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  pointer-events: none;
  z-index: 1000;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.mobile-tooltip.fade-out {
  opacity: 0;
}


/* ───────────────────────────────────────────────
   7. Media Queries
   ------------------------------------------------ */




    