/* --- BASE STYLES (PC/Default - No Changes) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.product-carousel-container {
    font-family: Arial, sans-serif;
    background-color: transparent;
    overflow-x: hidden;
}

.product-carousel-container .container {
    width: 100%;
    position: relative;
}

.product-carousel-container .products-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-carousel-container .products-wrapper::-webkit-scrollbar {
    display: none;
}

.product-carousel-container .products-grid {
    display: flex;
    gap: 8px;
    padding: 12px;
    min-width: max-content;
    transition: transform 0.3s ease;
}

.product-carousel-container .product-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 200px;
    max-width: 200px;
}

@media (min-width: 800px) {
    .product-carousel-container .products-grid {
        max-width: calc(4 * 250px + 3 * 8px + 24px);
    }
    .product-carousel-container .product-card {
        min-width: 250px;
        max-width: 250px;
        flex: 0 0 250px;
    }
}

@media (min-width: 769px) {
    .product-carousel-container .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }
    .product-carousel-container .product-card:hover .product-image img {
        transform: scale(1.05);
    }
}

.product-carousel-container .product-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-carousel-container .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-carousel-container .product-content {
    padding: 16px 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-carousel-container .product-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-carousel-container .product-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.product-carousel-container .product-features {
    font-size: 14px;
    color: #718096;
    line-height: 1.4;
    margin-bottom: 8px;
    flex-grow: 1;
}

.product-carousel-container ul li {
    font-size: 105%;
    list-style-position: inside;
}

.product-carousel-container .price-section {
    margin-top: auto;
}

.product-carousel-container .amazon-link {
    display: inline-block;
    background: linear-gradient(135deg, #ff9500 0%, #ff6b35 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(255, 149, 0, 0.3);
    text-align: center;
}

.product-carousel-container .amazon-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
    background: linear-gradient(135deg, #ff6b35 0%, #ff9500 100%);
}

.product-carousel-container .navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.product-carousel-container .nav-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-weight: bold;
    user-select: none;
}

/* --- MOBILE UPDATES (Fixed List View) --- */

@media (max-width: 768px) {
    /* 1. Stop Sliding & Force Vertical Layout */
    .product-carousel-container .products-wrapper {
        overflow: visible;
    }

    .product-carousel-container .products-grid {
        display: block !important; /* Forces vertical stacking */
        transform: none !important; /* CRITICAL: Stops JS from sliding items away */
        width: 100% !important; /* Ensures it stays full width */
        padding: 10px;
        min-width: 0;
        margin: 0;
    }

    /* 2. Hide Navigation Controls */
    .product-carousel-container .navigation {
        display: none;
    }

    /* 3. Card Styling: Box with border */
    .product-carousel-container .product-card {
        display: flex;
        flex-direction: column;
        min-width: 100%;
        max-width: 100%;
        box-shadow: none;
        border: 1px solid #e7e7e7;
        border-radius: 0;
        margin-bottom: 20px; /* Space between products */
    }

    /* 4. Magic: Reorder elements to put Subtitle on Top */
    /* We use display: contents to 'unbox' the container so we can reorder children */
    .product-carousel-container .product-content {
        display: contents; 
    }

    /* The Header (Subtitle from HTML) */
    .product-carousel-container .product-subtitle {
        display: block;
        order: -1; /* Moves to very top */
        background-color: #ffffff;
        color: #0f1111;
        font-weight: 700;
        font-size: 14px;
        padding: 10px;
        text-align: center;
        border-bottom: 1px solid #e7e7e7;
        width: 100%;
        margin: 0;
    }

    /* Image Order */
    .product-carousel-container .product-image {
        order: 0;
        background: #fff;
        height: auto;
        padding: 20px;
        border-radius: 0;
    }

    .product-carousel-container .product-image img {
        max-width: 100%;
        max-height: 200px;
        width: auto;
        display: block;
        margin: 0 auto;
        object-fit: contain;
    }

    /* Title Styling (Amazon Link Blue) */
    .product-carousel-container .product-title {
        order: 1;
        color: #007185;
        font-size: 15px;
        font-weight: 400;
        margin: 0;
        padding: 10px 15px;
        text-align: center;
        width: 100%;
        background: #fff;
    }

    /* Hide Features List */
    .product-carousel-container .product-features {
        display: none;
    }

    /* Button Section Styling */
    .product-carousel-container .price-section {
        order: 2;
        border-top: 1px solid #f0f0f0;
        padding: 12px 15px;
        background: #fbfbfb;
        width: 100%;
        text-align: center;
    }

    /* Amazon Yellow Button */
    .product-carousel-container .amazon-link {
        background: #f0c14b;
        background: linear-gradient(to bottom,#f7dfa5,#f0c14b);
        border: 1px solid #a88734;
        box-shadow: 0 1px 0 rgba(255,255,255,.4) inset;
        border-radius: 3px;
        color: #111;
        font-size: 0; /* Hide original text */
        padding: 8px 15px;
        width: auto;
        min-width: 200px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .product-carousel-container .amazon-link::before {
        content: "\1F6D2"; /* Cart Icon */
        font-size: 16px;
        margin-right: 8px;
    }

    .product-carousel-container .amazon-link::after {
        content: "View on Amazon"; /* New Text */
        font-size: 13px;
        font-weight: 400;
    }
}


/* =========================================
   EEEEEEEEEENNNNDDDDDDDD
   ========================================= */
/* Table wrapper - this makes scrolling work */
table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
  -webkit-overflow-scrolling: touch;
  background-color: white;
}

/* Keep table structure intact */
thead, tbody {
  display: table;
  width: 100%;
}

tr {
  display: table-row;
}

th, td {
  display: table-cell;
}

/* Table headers */
th {
  background-color: #2c3e50;
  color: white;
  font-weight: 600;
  text-align: left;
  padding: 16px 20px;
  border: 1px solid #34495e;
  min-width: 200px;
  white-space: nowrap;
}

/* Table cells */
td {
  padding: 14px 20px;
  border: 1px solid #ddd;
  vertical-align: top;
  min-width: 200px;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.6;
}

/* Alternating row colors */
tbody tr:nth-child(odd) {
  background-color: #f8f9fa;
}

tbody tr:nth-child(even) {
  background-color: #ffffff;
}

/* Hover effect */
tbody tr:hover {
  background-color: #e3f2fd;
  transition: background-color 0.2s ease;
}

/* Scrollbar styling */
table::-webkit-scrollbar {
  height: 10px;
}

table::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

table::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

table::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Mobile - keep columns readable, allow scrolling */
@media screen and (max-width: 768px) {
  th, td {
    min-width: 180px;
    padding: 12px 16px;
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  th, td {
    min-width: 160px;
    padding: 10px 14px;
    font-size: 13px;
  }
}





