/* =========================================================
   PERSON SECTION
   ========================================================= */
.person-basket-section {
  margin-bottom: 40px;
}

.person-basket-section h2 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #222;
}

/* =========================================================
   GRID LAYOUT
   ========================================================= */
.basket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* =========================================================
   UNIFIED CARD (MERGED + CLEAN)
   ========================================================= */
.unified-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 460px;
  padding: 14px;
  box-sizing: border-box;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Image */
.unified-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
}

.unified-card h3,
.item-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #2A3350;
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* keep title to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price */
.item-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #111;
}

/* Footer */
.unified-card .card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Buttons */
.unified-card button {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

/* =========================================================
   TAG
   ========================================================= */
.tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  margin-bottom: 10px;
  font-weight: 600;
}

/* =========================================================
   MEGA SEARCH
   ========================================================= */
.mega-search {
  width: 100%;
  margin-bottom: 20px;
}

.mega-search input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* =========================================================
   HEADER ALIGNMENT FIXES
   ========================================================= */
#reminder-nav {
  margin-top: 0 !important;
}

/* =========================================================
   CAROUSEL
   ========================================================= */
.dl-carousel {
  position: relative;
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
}

.dl-carousel-track-wrapper {
  overflow: hidden;
}

.dl-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.25, 1.25, 0.5, 1);
  user-select: none;
}

.dl-slide {
  flex: 0 0 260px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.dl-slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.dl-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  font-size: 1.8rem;
  border: none;
  z-index: 10;
  transition: background 0.25s ease;
}

.dl-prev { left: 10px; }
.dl-next { right: 10px; }

/* =========================================================
   DONE BUTTON
   ========================================================= */
.done-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: #4CAF50;
  color: #fff;
  padding: 14px 22px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.done-btn:hover {
  background: #3e8e41;
}

/* =========================================================
   PRINT MODE
   ========================================================= */
@media print {
  .done-btn {
    display: none !important;
  }
}


.reminder-hero {
  background: linear-gradient(135deg, #dfffe2, #f4fff7);
  padding: 40px 25px;
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* FORCE DESKTOP VIEW & LOCK COLORS */
@media (max-width: 1024px) {
    :root {
        color-scheme: only light !important; /* Tells mobile Chrome: "Light mode only!" */
    }

    body, #cart-layout, .unified-card {
        min-width: 1200px !important;
        background-color: #ffffff !important; /* Force true white */
        color: #000000 !important; /* Keep text solid black */
    }

    /* Keeps the basket grid from collapsing into one column */
    #cart-items-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, 280px) !important;
        gap: 20px !important;
        width: 1200px !important;
    }

    /* Prevent mobile from scaling fonts weirdly during zoom */
    * {
        -webkit-text-size-adjust: none !important;
    }
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

#basket-hero {
    position: relative;
    z-index: 1;
}

#reminder-nav {
    position: relative;
    z-index: 10;
}


/* =========================================================
   TITLE TOOLTIP (MATCHES INDEX PAGE)
   ========================================================= */
.unified-card h3 {
    position: relative;
    cursor: pointer;
}

.unified-card [data-fulltitle]:hover::after {
    content: attr(data-fulltitle);
    position: absolute;
    left: 0;
    top: 110%;
    width: 260px;
    background: #2A3350;
    color: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.3;
    white-space: normal;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.unified-card [data-fulltitle] {
    position: relative;
    cursor: pointer;
}

/* Tooltip arrow */
.unified-card h3:hover::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 100%;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #2A3350 transparent;
    z-index: 10000;
}

/* =========================================================
   FIX TOOLTIP CLIPPING
   ========================================================= */

/* Let tooltip escape the title */
.unified-card h3 {
    overflow: visible !important;
    height: auto !important; /* keeps it from clipping pseudo-elements */
}

/* Let tooltip escape the slide container */
.dl-slide {
    overflow: visible !important;
}
/* Tooltip needs this */
.unified-card h3 {
    overflow: visible !important;
}

/* Image popper needs this */
.dl-slide {
    overflow: hidden !important;
}
/* Group Title */
.mega-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Group Description */
.mega-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

/* Column Titles */
.mega-col h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

/* Links */
.mega-col a {
    display: block;
    font-size: 14px;
    color: #222;
    padding: 3px 0;
}

/* Optional: subtle background tint per group */
.mega-group {
    background: rgba(255, 255, 255, 0.85);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
/* Base group styling */
.mega-group {
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Travel Gear */
.mega-group:nth-child(1) {
    background: rgba(0, 120, 255, 0.06); /* soft blue */
}

/* Travel Tech */
.mega-group:nth-child(2) {
    background: rgba(0, 200, 180, 0.06); /* soft teal */
}

/* Family Travel */
.mega-group:nth-child(3) {
    background: rgba(255, 220, 0, 0.08); /* soft yellow */
}

/* Resort Wear */
.mega-group:nth-child(4) {
    background: rgba(255, 150, 80, 0.07); /* soft peach */
}

/* Relaxing */
.mega-group:nth-child(5) {
    background: rgba(180, 120, 255, 0.07); /* soft lavender */
}
.mega-title {
    font-size: 20px;
    font-weight: 800; /* stronger bold */
    color: #1a1a1a;
    margin-bottom: 4px;
}
.mega-desc {
    font-size: 13px;
    color: #666;
    font-weight: 400;
    margin-bottom: 12px;
}


.mega-col a {
    display: block;
    font-size: 14px;
    color: #111;
    padding: 3px 0;
    font-weight: 500;
}

