/* ================= VARIABLES ================= */ :root {
 --bg-color: #1a1a1a;
 --primary-color: #ff69b4;
 --primary-grad: #1a1a1a;
 --secondary-color: #ffa500;
 --secondary-grad: #1a1a1a;
 --card-border: #ff69b4;
 --card-border-accent: #ffa500;
 --title-color: #ff69b4;
 --share-hover: #ffa500;
 --text-color: #ffffff;
}


























/* --- Optional light theme --- */ [data-theme="light"] { --bg-color: #f9fafb; --text-color: #111; --card-bg-featured: #fff; --card-bg-carousel: #f3f4f6; --card-border: #3b82f6; --card-border-accent: #f97316; --title-color: #1f2937; --desc-color: #4b5563; --share-color: #1f2937; --share-hover: #ef4444; }

/* ================= GLOBAL ================= */ body { background: var(--bg-color); color: var(--text-color); font-family: Arial, sans-serif; margin: 0; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }

h1, h2 { text-align: center; margin: .5em 0; }

.tagline { text-align: center; margin-bottom: 20px; color: #ff9; } .footer { text-align: center; margin-top: 30px; color: #aaa; }

/* ================= HEADER / LOGO ================= */ header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; }

.logo { display: flex; align-items: center; gap: 1rem; justify-content: var(--logo-align); flex: 1 1 280px; }

.logo img { max-height: 60px; max-width: 160px; object-fit: contain; display: block; }

.site-name { flex: 2 1 auto; font-size: 1.6rem; font-weight: 700; text-align: var(--name-align); color: var(--title-color); margin: 0; }

@media (max-width: 640px) { .site-name { font-size: 1.3rem; } .logo img { max-height: 48px; } }

/* ================= INTRO & QR ================= */ .intro-text { max-width: 920px; margin: 1rem auto; font-size: 1.05rem; line-height: 1.45; text-align: center; color: var(--text-color); padding: 0 .75rem; }

.qr-code { text-align: center; margin-top: 1rem; }

/* ================= FEATURED & CARDS ================= */ #featured-item, .carousel { display: flex; gap: 20px; padding: 20px; }

#featured-item { justify-content: center; flex-wrap: wrap; background: linear-gradient(#222, #333); }

.featured-section {
  display: grid;
  grid-template-columns: repeat(var(--featured-columns), 1fr);
  gap: 1rem;
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.featured-section .product-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 400px; /* adjust if you want */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .featured-section {
    grid-template-columns: 1fr !important; /* stack single column on smaller screens */
    padding: 0 0.5rem;
  }
}

/* base product card */ .product-card { border-radius: 10px; display: flex; flex-direction: column; padding: 10px; margin: 10px auto; transition: transform .18s ease, box-shadow .18s ease; background: var(--card-bg-featured); color: var(--font-color); overflow: hidden; }

#featured-item .product-card, .featured-section .product-card { min-height: 420px; width: 300px; border: 3px solid var(--card-border); box-shadow: 0 6px 18px rgba(0,0,0,0.55); }

.product-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; background: var(--card-image-bg); display: block; }

.item-title, .product-title { margin: 10px 0 6px; color: var(--title-color); font-weight:700; font-size: 1.05rem; } .item-desc, .product-desc { font-size: .95em; color: var(--desc-color, #ddd); margin-bottom: .5rem; white-space: pre-line; }

.product-price { font-weight: 700; color: var(--secondary-color); margin: 0 0.6rem 0.6rem; } .product-link { margin: 0.6rem; text-align: center; } .product-link a { padding: 8px 14px; border-radius: 6px; background: linear-gradient(var(--primary-color), var(--primary-grad)); color: #111; text-decoration: none; font-weight: 700; display: inline-block; } .product-link a:hover { background: var(--secondary-color); color: #fff; }

#featured-item .product-card:hover, .featured-section .product-card:hover { transform: translateY(-6px); }

/* ================= CAROUSEL (horizontal list) ================= */ .carousel-wrapper { max-width: 960px; margin: 2.5rem auto; position: relative; overflow: hidden; padding: 0 1rem; }

.carousel { display: flex; gap: 1rem; overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: 16px 8px; align-items: stretch; }

.carousel::-webkit-scrollbar { display: none; } .carousel { scrollbar-width: none; }

.carousel .product-card { flex: 0 0 220px; min-height: 320px; background: var(--card-bg-carousel); border: 2px solid var(--card-border); width: 220px; box-shadow: none; transition: none; }

/* Carousel nav buttons */ .carousel-wrapper .carousel-prev, .carousel-wrapper .carousel-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 30; background: var(--primary-color); width: 44px; height: 44px; border-radius: 50%; border: none; color: #111; font-size: 22px; cursor: pointer; opacity: 0.9; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.4); } .carousel-wrapper .carousel-prev { left: 8px; } .carousel-wrapper .carousel-next { right: 8px; } .carousel-wrapper .carousel-prev:hover, .carousel-wrapper .carousel-next:hover { opacity: 1; }

.carousel:focus { outline: 2px dashed rgba(255,255,255,0.08); outline-offset: 6px; }

/* ================= SOCIAL LINKS ================= */ .social-links { display: flex; justify-content: center; gap: 1.25rem; margin: 1.5rem 0; } .social-links a { display: inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:6px; background:transparent; transition: background .18s ease, color .18s ease; } .social-links img { width:22px; height:22px; display:block; } .social-links a:hover { color: var(--secondary-color); }

/* ================= ADMIN (kept intact) ================= / / General styling for all inputs, textareas, selects in admin forms */ .admin-page input, .admin-page textarea, .admin-page select, form input, form textarea, form select { background: #333; color: var(--text-color); border: 1px solid var(--secondary-color); border-radius: 5px; padding: 6px; box-sizing: border-box; }

/* Make all inputs, textareas, selects full width in config table by default */ .config-table td input, .config-table td textarea, .config-table td select { width: 100%; box-sizing: border-box; }

/* Preserve checkboxes natural size */ .config-table td input[type="checkbox"], .config-table td input[type="radio"] { width: auto; vertical-align: middle; margin: 0; }

/* Vertical alignment for images and file inputs in table cells */ .config-table td img, .config-table td input[type="file"] { vertical-align: middle; }

/* Buttons */ button { background: linear-gradient(var(--primary-color), var(--primary-grad)); color: #111; border: 1px solid var(--secondary-color); border-radius: 5px; padding: 6px 12px; cursor: pointer; }

/* Admin description boxes */ .admin-description { min-height: 180px; width: 400px !important; max-width: 100%; resize: both; }

/* Config table */ .config-table { width: 1200px; max-width: 90%; margin: 0 auto; border-collapse: collapse; }

.config-table th, .config-table td { padding: 6px; border: 1px solid var(--card-border); }

.config-table th { background: color-mix(in srgb, var(--primary-color) 20%, transparent); color: #111; }

/* ================= LOGO ALIGN TOGGLES (kept) ================= */ .logo-align-options { display: flex; gap: 8px; } .logo-toggle { flex: 1; text-align: center; padding: 6px 0; border-radius: 5px; background: var(--bg-color); border: 2px solid var(--secondary-color); cursor: pointer; font-size: 12px; font-weight: bold; } .logo-toggle.active { background: linear-gradient(var(--primary-color), var(--primary-grad)); color: #111; }

/* ================= LOGO PREVIEW (kept) ================= */ .logo-preview { width: 100%; min-height: 60px; border: 1px solid var(--secondary-color); padding: 4px 8px; box-sizing: border-box; display: flex; flex-direction: column; position: relative; }

.logo-preview-box { min-width: 50px; min-height: 50px; display: flex; justify-content: center; align-items: center; border: 1px solid var(--secondary-color); }

.logo-preview-box img { max-height: 50px; max-width: 100%; }

/* absolute mode */ .logo-preview-box.align-left { position: absolute; left: 0; } .logo-preview-box.align-center { position: absolute; left: 50%; transform: translateX(-50%); } .logo-preview-box.align-right { position: absolute; right: 0; }

/* stacked mode */ .logo-preview-column { display: flex; flex-direction: column; gap: 4px; position: relative; width: fit-content; }

.logo-preview-column.align-left { margin-left: 0; } .logo-preview-column.align-center { margin: 0 auto; } .logo-preview-column.align-right { margin-left: auto; }

.logo-preview-column .logo-preview-box, .logo-preview-box.stacked { position: relative; left: auto; transform: none; }

/* social media */

.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; 
          background-color: #ccc; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; 
                 bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(20px); }
.switch-sm { width: 36px; height: 20px; }
.switch-sm .slider:before { height: 14px; width: 14px; left: 3px; bottom: 3px; }
input:checked + .switch-sm .slider:before { transform: translateX(16px); }
