/* ================================================
   HENDOSHI - PRODUCTS - PRODUCT LIST
   ================================================
   
   Purpose: Product listing and grid layout styling
   
   Contains:
   - Product grid layouts
   - Product card styling
   - Filter and sort controls
   - Responsive product displays
   
   Dependencies: variables.css, ui-components.css
   Load Order: Load after foundation and components
   ================================================ */

/* Products page padding removed - now handled by vault-modals.css for consistency */

/* Products Header Section */
.products-header-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem 0;
    gap: 0.75rem;
}

/* Product Detail Hero -------------------------------------------------- */
/* Inherits from global .page-hero in hero-pages.css */
.product-hero {
    /* Only override specific properties, inherit all global page-hero styles */
    min-height: 200px;
    margin-bottom: 2.5rem;
}
/* Removed duplicate .page-hero-title and .page-hero-subtitle - using global styles from hero-pages.css */

/* Related / You Might Also Like ---------------------------------------- */
.related-products {
    margin-top: 2.5rem;
    margin-bottom: 4rem; /* add space between related section and footer */
    padding-top: 1rem;
}
.related-products .section-title,
.you-might-also-like-title,
.related-products h2,
.related-products h3,
.related-products .related-title,
.related-products-carousel-container h2 {
    font-size: 2.5rem;
}

/* Specific gradient title styling */
.related-products .section-title,
.you-might-also-like-title,
.related-products h2,
.related-products h3,
.related-products .related-title,
.related-products-carousel-container h2,
.gradient-title {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    background-clip: text;
    color: transparent;
    font-weight: 900;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}

/* Extra specific rule for h2 gradient titles */
.gradient-title,
h2.gradient-title {
    font-size: 1.5rem;
}

/* Ensure social share has breathing room before footer */
.social-share-section {
    margin-bottom: 3.5rem;
}

.products-header h1 {
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    background-clip: text;
    color: transparent;
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.product-count {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Filters & Sort Button and Dropdown */
.filters-sort-wrapper {
    position: relative;
}

.filters-sort-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    border: 2px solid var(--neon-pink);
    background-color: transparent;
    color: var(--neon-pink);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.filters-sort-btn:hover {
    background-color: var(--neon-pink);
    color: var(--black);
}

.filters-dropdown {
    display: none;
    visibility: hidden;
    z-index: 1000;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 600px;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 105, 180, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    /* Apply same style as navbar dropdown menu */
    background: rgba(20, 20, 20, 0.95);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 20, 147, 0.1);
    opacity: 0;
    transition:
        opacity 0.3s,
        visibility 0.3s;
}

.filters-dropdown.show {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Tabbed Filter Interface - Applied to both desktop and mobile */
.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem 0.5rem;
    border-bottom: 1px solid rgba(255, 105, 180, 0.2);
}

.filters-title {
    margin: 0;
    color: var(--neon-pink);
    font-weight: 600;
    font-size: 1.2rem;
}

.filters-tabs {
    display: flex;
    margin-bottom: 1rem;
    padding: 0 1.5rem;
    gap: 0.5rem;
}

.filter-tab {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    gap: 0.25rem;
    border: 1px solid rgba(255, 105, 180, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--off-white);
    font-weight: 500;
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab i {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.filter-tab.active {
    border-color: var(--neon-pink);
    background: rgba(255, 20, 147, 0.1);
    color: var(--neon-pink);
}

.filter-tab:hover {
    border-color: rgba(255, 105, 180, 0.4);
    background: rgba(255, 20, 147, 0.05);
}

.filters-tab-content {
    padding: 0 1.5rem 1.5rem;
}

.filter-tab-pane {
    display: none;
    max-height: 400px;
    padding-right: 0.5rem;
    overflow-y: auto;
}

.filter-tab-pane.active {
    display: block;
}

.filter-tab-pane::-webkit-scrollbar {
    width: 6px;
}

.filter-tab-pane::-webkit-scrollbar-track {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.filter-tab-pane::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: rgba(255, 20, 147, 0.5);
}

.filter-tab-pane::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 20, 147, 0.8);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-option {
    display: flex;
    position: relative;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    border: var(--border-glass);
    border-radius: 8px;
    background: var(--bg-glass-light);
    color: var(--off-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.filter-option:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 105, 180, 0.3);
    background: rgba(255, 20, 147, 0.05);
}

.filter-option.active {
    border-color: var(--neon-pink);
    background: rgba(255, 20, 147, 0.1);
    color: var(--neon-pink);
}

.filter-option i:first-child {
    width: 20px;
    color: var(--neon-pink);
    text-align: center;
}

.filter-option i.fa-check {
    margin-left: auto;
    color: var(--electric-yellow);
}

.filter-option span {
    flex: 1;
    font-weight: 500;
}

/* Checkbox styling for multi-select filters */
.checkbox-option {
    position: relative;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"],
.checkbox-option input[type="radio"] {
    position: absolute;
    width: 0;
    height: 0;
    cursor: pointer;
    opacity: 0;
}

.checkbox-option .checkmark {
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    border: 2px solid rgba(255, 105, 180, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.checkbox-option input[type="checkbox"]:checked ~ .checkmark,
.checkbox-option input[type="radio"]:checked ~ .checkmark {
    border-color: var(--neon-pink);
    background: var(--neon-pink);
}

.checkbox-option input[type="checkbox"]:checked ~ .checkmark::after,
.checkbox-option input[type="radio"]:checked ~ .checkmark::after {
    display: block;
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 10px;
    transform: rotate(45deg);
    border: solid white;
    border-width: 0 2px 2px 0;
    content: "";
}

.checkbox-option:hover .checkmark {
    border-color: rgba(255, 105, 180, 0.6);
    background: rgba(255, 20, 147, 0.1);
}

.checkbox-option input[type="checkbox"]:checked ~ *,
.checkbox-option input[type="radio"]:checked ~ * {
    color: var(--neon-pink);
}

.checkbox-option input[type="checkbox"]:checked ~ i:first-child,
.checkbox-option input[type="radio"]:checked ~ i:first-child {
    color: var(--electric-yellow);
}

/* Radio button specific styling for sort options */
.radio-option .checkmark {
    border-radius: 50%;
}

.radio-option input[type="radio"]:checked ~ .checkmark::after {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    border: none;
    border-radius: 50%;
    background: white;
    content: "";
}

/* Filter Actions */
.filters-actions {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 105, 180, 0.2);
}

.filter-note {
    margin-bottom: 1rem;
    color: var(--off-white);
    font-size: 0.8rem;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

/* Mobile: Make filter actions sticky at bottom of filter panel */
@media (max-width: 991px) {
    .filters-actions {
        z-index: 10;
        position: sticky;
        bottom: 0;
        margin: 0 -1.5rem;
        padding: 1rem 1.5rem 1.5rem;
        border-top: 1px solid rgba(255, 105, 180, 0.3);
        backdrop-filter: blur(10px);
        background: rgba(20, 20, 20, 0.98);
    }

    :root.light-mode .filters-actions {
        background: rgba(255, 255, 255, 0.98);
    }

    /* Ensure filter tab content has enough bottom padding for sticky buttons */
    .filters-tab-content {
        padding-bottom: 0;
    }

    .filter-tab-pane {
        max-height: calc(70vh - 280px);
    }
}

.apply-filters-btn,
.clear-filters-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* Mobile: Compact filter buttons */
@media (max-width: 991px) {
    .filters-actions .btn.apply-filters-btn,
    .filters-actions .btn.clear-filters-btn {
        min-height: auto;
        padding: 0.45rem 0.6rem;
        font-size: 0.75rem;
        letter-spacing: 0.2px;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-note {
        margin-bottom: 0.5rem;
    }

    .filter-note small {
        font-size: 0.65rem;
    }

    .filters-actions {
        padding: 0.5rem 2rem 1rem;
    }
}

.apply-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.3);
}

.clear-filters-btn:hover {
    border-color: var(--neon-pink);
    background: rgba(255, 20, 147, 0.1);
    color: var(--neon-pink);
}

/* Neutral ghost Clear button used across the site */
.btn-clear-ghost {
    border: var(--border-glass);
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    transition:
        background-color 150ms ease,
        color 150ms ease,
        border-color 150ms ease;
}
.btn-clear-ghost:hover,
.btn-clear-ghost:focus {
    border-color: rgba(255, 45, 122, 0.18);
    background: rgba(255, 45, 122, 0.06);
    color: #ff2d7a;
    text-decoration: none;
}

/* Mobile Filter Overlay */
.filters-overlay {
    visibility: hidden;
    z-index: 999;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition:
        opacity 0.3s,
        visibility 0.3s;
}

.filters-overlay.show {
    visibility: visible;
    opacity: 1;
}

/* Mobile Filter Close Button */
.filters-close-btn {
    display: none;
    z-index: 10;
    position: absolute;
    top: 0.25rem;
    right: 1rem;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--neon-pink);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filters-close-btn:hover {
    transform: rotate(90deg);
    color: var(--electric-yellow);
}

@media (max-width: 991px) {
    .filters-close-btn {
        display: block;
    }
}

.filters-dropdown-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 2rem;
    gap: 2rem;
}

.filter-column h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 20, 147, 0.3);
    color: var(--neon-pink);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.filter-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.filter-column ul li {
    margin-bottom: 0.5rem;
}

.filter-column ul li a {
    display: block;
    padding: 0.3rem 0;
    color: var(--off-white);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.filter-column ul li a:hover,
.filter-column ul li a.active {
    padding-left: 0.5rem;
    color: var(--neon-pink);
}

/* Products Grid - Responsive: 6 -> 5 -> 4 -> 2 (mobile) */
.products-grid-wrapper {
    width: 100%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: start;
    gap: 1.5rem;
}

/* Prevent grid items from stretching to the height of the tallest item
   and ensure flex children can shrink properly. Fixes cases where a
   single tall child forces a very large row height. */

/* Allow product cards and their inner flex containers to shrink below
   content size when necessary (prevents unexpected large heights). */
.product-card,
.product-card-inner {
    min-height: 0;
}

/* 5 columns for very large but not ultra-wide screens */
@media (max-width: 1700px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 4 columns for large screens */
@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 3 columns for medium screens */
@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* 2 columns for tablets and mobile - includes filter dropdown mobile positioning */
@media (max-width: 991px) {
    /* products-page padding-top removed - handled by vault-modals.css canonical wrapper */

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem; /* Reduced gap to give more space for cards */
    }

    .filters-dropdown {
        z-index: 1001;
        position: fixed;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        min-width: 100%;
        max-height: 70vh;
        margin-top: 0;
        overflow-y: auto;
        transform: translateY(100%);
        border-bottom: none;
        border-radius: 20px 20px 0 0;
        transition:
            transform 0.3s ease,
            opacity 0.3s,
            visibility 0.3s;
    }

    .filters-dropdown.show {
        display: block;
        transform: translateY(0);
        border: 1px solid rgba(255, 105, 180, 0.2);
        border-bottom: none;
        backdrop-filter: blur(20px);
        /* Apply same style as navbar dropdown menu */
        background: rgba(20, 20, 20, 0.95);
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(255, 20, 147, 0.1);
    }

    .filters-dropdown-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        padding-top: 3rem;
        gap: 1.5rem;
    }

    /* New Mobile Filter Design */
    .filters-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1rem;
        padding: 1rem 1.5rem 0.5rem;
        border-bottom: 1px solid rgba(255, 105, 180, 0.2);
    }

    .filters-title {
        margin: 0;
        color: var(--neon-pink);
        font-weight: 600;
        font-size: 1.2rem;
    }

    .products-header-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters-sort-wrapper,
    .filters-sort-btn {
        width: 100%;
    }

    .filters-sort-btn {
        justify-content: center;
        padding: 0.5rem 1rem;
    }

    .products-header h1 {
        font-size: 2rem;
    }
}

/* Additional tablet-only adjustments */
@media (max-width: 768px) {
    .products-grid {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .products-grid,
    .products-grid .product-card,
    .products-grid .product-card-inner {
        width: 100%;
    }

    /* Keep filters and sort compact on the right */
    .products-header-section {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .filters-sort-wrapper {
        display: flex;
        justify-content: flex-end;
        width: auto;
    }

    .filters-sort-btn {
        width: auto;
        padding: 0.4rem 0.8rem;
    }
}

/* Mobile adjustments (small) */
@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-header h1 {
        font-size: 1.8rem;
    }
}

.products-page .filters-sort-wrapper {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.products-page .page-container {
    padding-top: 1rem;
    padding-bottom: 2rem;
    /* Allow products page to expand wider on large screens so grid stretches across big monitors */
    --vault-max-width: 2560px;
    max-width: var(--vault-max-width);
    margin: 0 auto; /* Center the container */
}

@media (max-width: 991px) {
    .products-page .page-container {
        max-width: 100%; /* Full width on mobile */
        margin: 0;
        padding-left: 1.5rem;
        padding-right: 1.5rem; /* Increase padding to ensure cards aren't cut off */
    }
}

.product-card-wrapper {
    width: 100%;
}

/* Quick Add overlay bar */
.quick-add {
    z-index: 10;
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: auto;
    padding: 0;
    background: transparent;
    opacity: 0;
    pointer-events: all;
    transition: all 0.3s ease;
}

.product-card:hover .quick-add {
    bottom: 20px;
    opacity: 1;
}

@media (max-width: 991px) {
    .quick-add {
        bottom: 15px;
        opacity: 1;
    }
}

.btn-quick-add {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-quick-add:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.5);
    color: #000;
}

/* Mobile: Make add to cart button bigger */
@media (max-width: 768px) {
    .btn-quick-add {
        padding: 0.75rem 2rem;
        font-weight: 800;
        font-size: 0.95rem;
    }
}

/* Mobile menu search box */
.mobile-search-box {
    display: flex;
    z-index: 10;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 0;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 20, 147, 0.2);
    border-bottom: 1px solid rgba(255, 20, 147, 0.2);
    background-color: var(--black);
    transition:
        max-height 0.3s ease,
        padding 0.3s ease;
}

.mobile-search-box.show {
    max-height: 100px;
    padding: 1rem 0;
}

.mobile-search-box .search-form {
    width: 90%;
    max-width: 500px;
    padding: 0 1rem;
}

.mobile-search-box .search-wrapper {
    display: flex;
    position: relative;
    align-items: center;
    width: 100%;
}

.mobile-search-box .search-input {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 2px solid var(--neon-pink);
    border-radius: 20px;
    background-color: var(--charcoal);
    color: var(--off-white);
    font-size: 1rem;
}

.mobile-search-box .search-input:focus {
    border-color: var(--neon-pink);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
}

.mobile-search-box .search-input::placeholder {
    color: var(--gray);
}

.mobile-search-box .search-btn {
    z-index: 5;
    position: absolute;
    top: 50%;
    right: 1rem;
    padding: 0.5rem;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--neon-pink);
    font-size: 1.1rem;
    cursor: pointer;
}

/* Product Cards */
.product-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 2px solid rgba(255, 20, 147, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

/* Ensure product cards are equal-height and contents align so prices sit on the same baseline
   regardless of title length. Using flexbox makes the image sit above and the info
   fill the remaining space; the price is pushed to the bottom with margin-top:auto. */

.product-card,
.product-card-inner {
    display: flex;
    flex-direction: column;
}

.product-card-inner {
    flex: 1 1 auto;
}

.product-card:hover {
    z-index: 1000;
    margin-top: -5px;
    border-color: var(--neon-pink);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.3);
}

.product-card a {
    color: inherit;
    text-decoration: none;
}

.product-image {
    position: relative;
    /* Use 4:5 portrait ratio so a single AI-generated image works well
       across desktop and mobile. Keeps consistent card heights while
       providing more vertical room for product photos. */
    aspect-ratio: 4 / 5;
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        opacity 0.4s ease,
        transform 0.3s ease;
}

.product-img-main {
    z-index: 1;
    position: relative;
}

.product-img-hover {
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Desktop hover effect */
@media (min-width: 992px) {
    .product-card:hover .product-img-main {
        opacity: 0;
    }

    .product-card:hover .product-img-hover {
        opacity: 1;
    }
}

/* Mobile tap/click effect */
@media (max-width: 991px) {
    .product-card.image-flipped .product-img-main {
        opacity: 0;
    }

    .product-card.image-flipped .product-img-hover {
        opacity: 1;
    }
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--gray);
}

.badge-featured {
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    color: var(--black);
}

.badge-featured,
.badge-sale {
    display: inline-block;
    z-index: 20;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
}

.badge-sale {
    background: linear-gradient(135deg, #ff0000, #ff1493);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Absolute positioning in product images */
.product-image .badge-featured,
.product-image .badge-sale,
.main-image .badge-featured,
.main-image .badge-sale {
    z-index: 20;
    position: absolute;
    top: 10px;
    left: 10px;
}

/* Move second badge below first when both are present */
.product-image .badge-featured + .badge-sale,
.product-image .badge-sale + .badge-featured,
.main-image .badge-featured + .badge-sale,
.main-image .badge-sale + .badge-featured {
    top: 35px;
}

/* Product Card Battle Vest Button */
.product-vest-btn {
    display: flex;
    z-index: 11;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--neon-pink);
    border-radius: 50%;
    /* positioning removed - now handled by .product-vest-btn-positioned class */
    background: rgba(255, 20, 147, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: var(--neon-pink);
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-vest-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 20, 147, 0.3);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.4);
}

.product-vest-btn.in-vest {
    border-color: var(--neon-pink);
    background: rgba(0, 0, 0, 0.7);
}

.product-vest-btn.in-vest:hover {
    transform: scale(1.1);
    background: rgba(255, 20, 147, 0.2);
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.5);
}

.product-vest-btn i {
    transition: transform 0.3s ease;
}

.product-vest-btn:hover i {
    transform: scale(1.2);
}

/* Gradient fill only for heart icon when in vest */
.product-vest-btn.in-vest i {
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    background-clip: text;
    color: transparent;
}

.product-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: var(--padding-glass) 1.25rem;
}

.product-info h3 {
    display: -webkit-box;
    margin-bottom: 0.5rem;
    color: var(--off-white);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: calc(2 * 1.3em);
    overflow: hidden;
}

/* Clamp product title to two lines so product-type below it sits consistently */

.product-card:hover .product-info h3 {
    color: var(--neon-pink);
}

.product-type {
    background: linear-gradient(90deg, var(--electric-yellow), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    overflow: hidden;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Ensure product type occupies a single line and doesn't shift layout */

/* New drops date styling - smaller text */
.new-drop-date {
    margin-top: 0.25rem;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.65rem;
}

/* Push price to the bottom of the product info area so it aligns across cards */
.product-price {
    margin-top: auto;
}

.product-collection {
    margin-bottom: 0.75rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.product-collection i {
    margin-right: 0.25rem;
    color: var(--neon-pink);
}

.product-price {
    margin-top: 0.25rem;
    margin-bottom: 0;
    color: var(--neon-pink);
    font-weight: 700;
    font-size: 1.2rem;
}

.original-price {
    margin-bottom: 0.25rem;
    color: #888;
    font-size: 0.9rem;
    text-decoration: line-through;
}

.sale-price {
    color: var(--neon-pink);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Mobile: add padding to product-info to prevent quick-add overlap */
@media (max-width: 991px) {
    .product-info {
        padding-bottom: 3.5rem;
    }
}

/* Product Detail Page */
.product-detail-page {
    position: static;
    min-height: 100vh;
    margin-top: 90px;
    padding-top: 3rem;
    padding-bottom: 5rem;
    transform: none;
}

@media (min-width: 768px) and (max-width: 991px) {
    .product-detail-page {
        margin-top: 95px;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .product-detail-page {
        margin-top: 85px;
    }
}

@media (max-width: 767px) {
    .product-detail-page {
        margin-top: 85px;
    }
}

.breadcrumb {
    padding: 0;
    background-color: transparent;
}

.breadcrumb-item a {
    color: var(--off-white);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--neon-pink);
}

.breadcrumb-item.active,
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--gray);
}

.main-image {
    position: relative;
    overflow: hidden;
    border: 3px solid var(--neon-pink);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.main-image img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.main-image .main-img-primary {
    z-index: 1;
    position: relative;
}

.main-image .main-img-hover {
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

/* Desktop hover effect for main image */
@media (min-width: 992px) {
    .main-image:hover .main-img-primary {
        opacity: 0;
    }

    .main-image:hover .main-img-hover {
        opacity: 1;
    }
}

/* Mobile tap effect for main image */
@media (max-width: 991px) {
    .main-image.image-flipped .main-img-primary {
        opacity: 0;
    }

    .main-image.image-flipped .main-img-hover {
        opacity: 1;
    }
}

.placeholder-image-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background-color: var(--charcoal);
    color: var(--gray);
}

.image-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border: 2px solid var(--gray);
    border-radius: 4px;
    cursor: pointer;
    transition:
        border-color 0.3s,
        transform 0.2s;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--neon-pink);
}

.thumbnail.active {
    border-width: 3px;
    border-color: var(--neon-pink);
}

/* Mobile Killstar-style layout - thumbnails on side */
@media (max-width: 768px) {
    .product-images {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
    }

    .main-image {
        flex: 1;
        margin-bottom: -3rem !important;
        margin-top: -0.5rem;
    }

    .image-thumbnails {
        display: flex;
        flex-shrink: 0;
        flex-direction: column;
        flex-wrap: nowrap; /* Prevent wrapping */
        width: 80px;
        gap: 0.75rem;
    }

    .thumbnail {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .product-images {
        gap: 0.75rem;
    }

    .image-thumbnails,
    .thumbnail {
        width: 70px;
    }

    .thumbnail {
        height: 70px;
    }
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Header - Brand and Rating */
.product-header {
    padding-bottom: 1rem;
}

.brand-name .brand-text {
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    background-clip: text;
    color: transparent;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-rating,
.rating-summary,
.no-reviews {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.stars i {
    color: var(--gray);
    font-size: 1rem;
}

.stars i.filled,
.stars i.fas {
    color: var(--electric-yellow);
}

.rating-count {
    color: var(--off-white);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Reviews Section Styling */
.reviews-summary-container {
    margin-bottom: 2rem;
}

.rating-breakdown {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

.rating-breakdown h5,
.rating-breakdown h3 {
    margin-bottom: 1rem;
    color: var(--off-white);
    font-weight: 600;
}

.rating-row {
    font-size: 0.9rem;
}

.star-label {
    min-width: 45px;
    color: var(--electric-yellow);
    font-weight: 500;
}

.rating-row .count {
    min-width: 20px;
    color: var(--off-white);
    text-align: right;
    opacity: 0.8;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
}

.progress-bar.bg-pink {
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
}

.reviews-filters {
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

.reviews-filters h5,
.reviews-filters h3 {
    margin-bottom: 1rem;
    color: var(--off-white);
    font-weight: 600;
}

.search-reviews .form-control {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--off-white);
}

.search-reviews .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-reviews .form-control:focus {
    border-color: var(--neon-pink);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.25);
    color: var(--off-white);
}

.filter-rating .form-label {
    margin-bottom: 0.5rem;
    color: var(--off-white);
    font-weight: 500;
}

.filter-rating .form-select {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--off-white);
}

.filter-rating .form-select:focus {
    border-color: var(--neon-pink);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.25);
    color: var(--off-white);
}

.popular-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-tag {
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--off-white);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topic-tag:hover,
.topic-tag.active {
    border-color: var(--neon-pink);
    background: var(--neon-pink);
    color: var(--black);
}

/* Carousel Heart Buttons */
.battle-vest-btn-carousel {
    display: flex;
    z-index: 10;
    position: absolute;
    top: 10px;
    right: 10px;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: var(--off-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.battle-vest-btn-carousel:hover {
    transform: scale(1.1);
    border-color: var(--neon-pink);
    background: var(--neon-pink);
    color: var(--black);
}

.battle-vest-btn-carousel .heart-icon {
    font-size: 0.875rem;
}

.battle-vest-btn-carousel.active .heart-icon:before {
    content: "\f004"; /* Filled heart */
    color: var(--neon-pink);
}

.product-title {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    background-clip: text;
    color: transparent;
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-meta {
    display: flex;
    gap: 1rem;
}

.collection-badge,
.type-badge {
    padding: 0.3rem 1rem;
    border-radius: 20px;
    background-color: var(--charcoal);
    color: var(--off-white);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.collection-badge {
    border: 2px solid var(--neon-pink);
}

.product-detail-page .product-price {
    margin-bottom: 1.5rem;
    color: var(--neon-pink);
    font-weight: 700;
    font-size: 2.5rem;
}

/* Ensure original and sale prices sit inline and are styled consistently */
.product-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 1.25rem; /* slightly larger for grid and simple listings */
}
.product-card .product-price {
    font-weight: 700;
    /* explicit grid/card override */
    font-size: 1.25rem;
}
.product-price .original-price {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: line-through;
    opacity: 0.95;
}
.product-price .sale-price {
    color: var(--neon-pink);
    font-weight: 900;
    font-size: 1.3rem; /* larger sale price in grid */
}

/* Larger sale price on product detail pages */
.product-detail-page .product-price .sale-price {
    font-size: 2.8rem;
}
.product-detail-page .product-price .original-price {
    font-size: 1.2rem;
}

.product-description {
    position: relative;
    margin-bottom: 1rem;
    padding: 1.5rem;
    overflow: hidden;
    border: var(--border-glass);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    background: var(--bg-glass-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.product-description .section-title {
    display: block;
    margin-bottom: 1.5rem;
    text-align: center;
}

.product-description::before {
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 20, 147, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 105, 180, 0.03) 0%, transparent 50%);
    content: "";
    pointer-events: none;
}

.product-description p {
    z-index: 2;
    position: relative;
    margin: 0;
    color: var(--off-white);
}

.design-story {
    position: relative;
    padding: 1.5rem;
    overflow: hidden;
    border: var(--border-glass);
    border-left: 4px solid var(--neon-pink);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    background: var(--bg-glass-light);
}

.design-story::before {
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 20, 147, 0.08) 0%, transparent 60%);
    content: "";
    pointer-events: none;
}

.design-story .story-title,
.design-story .story-text,
.design-story .story-author {
    z-index: 2;
    position: relative;
}

.design-story h3 {
    margin-bottom: 1rem;
    color: var(--neon-pink);
    font-size: 1.3rem;
}

.btn-outline-pink {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    background-color: var(--neon-pink);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-outline-pink:hover,
.btn-check:checked + .btn-outline-pink {
    transform: translateY(-3px);
    border: none;
    background-color: var(--electric-yellow);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.5);
    color: var(--black);
}

/* No Products */
.no-products {
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .products-header h1 {
        font-size: 2rem;
    }

    .product-title {
        font-size: 1.8rem;
    }
}

/* User Dropdown Menu */
.dropdown-menu {
    min-width: 200px;
    margin-top: 0;
    padding: 0;
    border: 2px solid var(--neon-pink);
    border-radius: 0;
    background-color: var(--charcoal);
}

/* Light mode override for user dropdown menu */
:root.light-mode .dropdown-menu {
    border: 2px solid var(--neon-pink);
    background-color: white;
}

/* Add invisible bridge to prevent dropdown from closing when moving mouse */
.desktop-menu .nav-item.dropdown .dropdown-menu::before {
    position: absolute;
    top: -15px;
    right: 0;
    left: 0;
    height: 15px;
    background: transparent;
    content: "";
}

.desktop-menu .dropdown-menu {
    margin-top: 10px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 105, 180, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    background: rgba(20, 20, 20, 0.95);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 20, 147, 0.1);
}

/* Light mode override for desktop menu dropdown */
:root.light-mode .desktop-menu .dropdown-menu {
    border: 1px solid rgba(255, 105, 180, 0.3);
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(255, 20, 147, 0.1);
}

.dropdown-item {
    margin-bottom: 2px;
    padding: 0.7rem 1rem;
    border-bottom: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    text-transform: none;
    transition: all 0.3s ease;
}

.dropdown-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(255, 20, 147, 0.15);
    color: var(--neon-pink);
}

/* Light mode overrides for dropdown items */
:root.light-mode .dropdown-item {
    color: rgba(0, 0, 0, 0.85);
}

:root.light-mode .dropdown-item:hover,
:root.light-mode .dropdown-item:focus {
    background: rgba(255, 20, 147, 0.15);
    color: var(--neon-pink);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(255, 105, 180, 0.2);
    opacity: 1;
}

/* Mobile Menu Styles */
.mobile-section-header {
    pointer-events: none;
}

.mobile-section-header .nav-link {
    margin-top: 0.5rem;
    padding: 1rem 1.5rem 0.5rem;
    border-top: 1px solid rgba(255, 20, 147, 0.3);
    color: var(--neon-pink);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.mobile-section-header:first-child .nav-link {
    margin-top: 0;
    border-top: none;
}

.mobile-submenu-item {
    padding-left: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.mobile-submenu-item:hover {
    background-color: rgba(255, 20, 147, 0.1);
}

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 0.5rem;
        padding: 1rem 0;
        border: 2px solid var(--neon-pink);
        border-top: none;
        background-color: var(--charcoal);
    }

    :root.light-mode .navbar-collapse {
        border-color: #e71f7f;
        background-color: #f5f5f5;
    }
}

/* User Icon Highlight When Authenticated */
.nav-item.dropdown .nav-link {
    position: relative;
}

.user-authenticated .nav-link::after {
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 6px;
    height: 6px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--neon-pink);
    content: "";
}

/* Authentication Pages - padding removed, handled by vault-modals.css */
/* Auth pages can use vault-page class for consistent spacing */

.connections-subtitle {
    color: var(--neon-pink);
    font-size: 1.5rem;
}

.btn-close-auth {
    display: flex;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 20, 147, 0.1);
    color: var(--neon-pink);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-close-auth:hover {
    transform: rotate(90deg);
    background-color: var(--neon-pink);
    color: white;
}

.auth-title {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    font-weight: 900;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-icon {
    margin-bottom: 2rem;
    color: var(--neon-pink);
}

.auth-form-input {
    padding: 0.8rem;
    border: 2px solid var(--gray);
    border-radius: 4px;
    background-color: var(--black);
    color: var(--off-white);
}

.auth-form-input.has-value {
    border-color: rgba(204, 255, 0, 0.5);
    background: rgba(0, 0, 0, 0.5);
}

.auth-form-input:focus {
    border-color: var(--neon-pink);
    outline: none;
    background-color: var(--black);
    box-shadow: 0 0 0 0.2rem rgba(255, 20, 147, 0.25);
    color: var(--off-white);
}

.auth-form-input::placeholder {
    color: #fff;
}

.auth-link {
    color: var(--neon-pink);
    text-decoration: none;
    transition: opacity 0.3s;
}

.auth-link:hover {
    color: var(--neon-pink);
    opacity: 0.8;
}

@media (max-width: 768px) {
}

.form-check-input {
    border: 2px solid var(--gray);
    background-color: var(--black);
}

.form-check-input:checked {
    border-color: var(--neon-pink);
    background-color: var(--neon-pink);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 20, 147, 0.25);
}

.form-label {
    margin-bottom: 0.5rem;
    color: var(--off-white);
    font-weight: 600;
}

/* Profile Page - padding removed, handled by profile-account.css */

/* Profile Hero Section */
.profile-hero {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 20, 147, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.02);
}

.profile-hero::before {
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 20, 147, 0.05) 0%, transparent 50%);
    content: "";
    pointer-events: none;
}

.profile-hero-title {
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    background-clip: text;
    font-weight: 900;
    font-size: 3rem;
    letter-spacing: 2px;
    -webkit-background-clip: text;
    z-index: 2;
    position: relative;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.profile-hero-subtitle {
    z-index: 2;
    position: relative;
    background-clip: text;
    color: var(--off-white);
    font-size: 1.2rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .profile-hero {
        padding: 3rem 0;
    }

    .profile-hero-title {
        font-size: 2.5rem;
    }

    .profile-hero-subtitle {
        font-size: 1.1rem;
    }
}

.page-title {
    margin-top: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-card {
    position: relative;
    padding: 0.5rem;
    overflow: hidden;
    border: var(--border-glass);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    background: var(--bg-glass-light);
    transition: all 0.3s ease;
}

.profile-card::before {
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 20, 147, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 105, 180, 0.03) 0%, transparent 50%);
    content: "";
    pointer-events: none;
}

.profile-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 105, 180, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.2);
}

.profile-card > * {
    z-index: 2;
    position: relative;
}

.profile-card h2 {
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    gap: 0.75rem;
    border-bottom: var(--border-glass);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.profile-card h2,
.profile-card h2 i {
    color: var(--neon-pink);
}

/* Center profile-card headings when a page requests it (e.g. newsletter unsubscribe) */
.newsletter-unsubscribe .profile-card h2 {
    justify-content: center;
    text-align: center;
}

/* Newsletter subscribers admin styles moved from template */

/* Mobile Card Styles */
@media (max-width: 768px) {
    .card {
        margin-bottom: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.05);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        color: var(--off-white);
    }

    .card-title {
        margin-bottom: 0.5rem;
        font-size: 1rem;
        line-height: 1.3;
    }

    .card-title,
    .card-title strong,
    .badge {
        color: var(--off-white);
    }

    .btn-group-vertical .btn {
        margin-bottom: 0.125rem;
        border-radius: 6px;
    }

    .btn-group-vertical .btn:last-child {
        margin-bottom: 0;
    }

    /* Desktop button group styles */
    .btn-group .btn {
        border-radius: 0;
    }

    .btn-group .btn:first-child {
        border-top-left-radius: 6px;
        border-bottom-left-radius: 6px;
    }

    .btn-group .btn:last-child {
        border-top-right-radius: 6px;
        border-bottom-right-radius: 6px;
    }

    /* Match desktop button colors */
    .btn-outline-info {
        border-color: #0dcaf0;
        background: transparent;
        color: #0dcaf0;
    }

    .btn-outline-info:hover {
        border-color: #0dcaf0;
        background-color: #0dcaf0;
        color: #000;
    }

    .btn-outline-primary {
        border-color: #0d6efd;
        background: transparent;
        color: #0d6efd;
    }

    .btn-outline-primary:hover {
        border-color: #0d6efd;
        background-color: #0d6efd;
        color: #fff;
    }

    .btn-outline-success {
        border-color: #198754;
        background: transparent;
        color: #198754;
    }

    .btn-outline-success:hover {
        border-color: #198754;
        background-color: #198754;
        color: #fff;
    }

    .btn-outline-danger {
        border-color: #dc3545;
        background: transparent;
        color: #dc3545;
    }

    .btn-outline-danger:hover {
        border-color: #dc3545;
        background-color: #dc3545;
        color: #fff;
    }
}

/* Mobile card styles for subscribers */
.subscriber-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-glass-light);
    color: var(--off-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscriber-card:hover {
    transform: translateY(-2px);
    border-color: var(--neon-pink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.subscriber-card .card-body {
    color: var(--off-white);
}

.subscriber-link {
    color: var(--neon-pink);
    text-decoration: none;
}

.subscriber-link:hover {
    color: var(--electric-yellow);
}

/* Custom text color classes */

.text-off-white,
.card-label {
    color: var(--off-white);
}

.card-label {
    opacity: 0.8;
}

.text-green {
    color: #00ff88;
}

.text-red {
    color: #ff6b6b;
}

.text-electric-yellow {
    color: var(--electric-yellow);
}

.text-gray-888 {
    color: #888;
}

/* Mobile responsive styles for subscribers management */
@media (max-width: 768px) {
    /* Reduce column gutters inside the admin area */
    .row.g-3 {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }

    /* Let content span the full width available within their column */
    .card {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    /* Search form responsive */
    .d-flex.gap-2.flex-wrap {
        gap: 0.5rem;
    }

    .d-flex.gap-2.flex-wrap .form-control {
        flex: 1;
        min-width: auto;
    }

    .d-flex.gap-2.flex-wrap .btn {
        flex-shrink: 0;
    }

    /* Pagination responsive */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination .page-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Search card utility moved from inline template style */
.search-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Moved from templates/cart/cart.html */

/* ================================================
   LIGHT MODE OVERRIDES - Products Page
   ================================================ */

/* Product card text */
:root.light-mode .product-info h3 {
    color: #222;
}

:root.light-mode .product-card:hover .product-info h3 {
    color: var(--neon-pink);
}

/* Discounted price - make visible in light mode */
:root.light-mode .product-price .original-price {
    color: rgba(0, 0, 0, 0.6);
}

:root.light-mode .product-price .sale-price {
    color: var(--neon-pink);
}

/* Product collection text */
:root.light-mode .product-collection {
    color: #666;
}

/* Product type gradient - keep visible */
:root.light-mode .product-type {
    background: linear-gradient(90deg, #d9b000, var(--neon-pink));
    background-clip: text;
    color: transparent;
}

/* Filters dropdown for light mode */
:root.light-mode .filters-dropdown {
    border-color: rgba(255, 20, 147, 0.3);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(255, 20, 147, 0.1);
}

:root.light-mode .filters-dropdown,
:root.light-mode .filters-dropdown.show {
    background: rgba(255, 255, 255, 0.98);
}

:root.light-mode .filters-title {
    color: var(--neon-pink);
}

:root.light-mode .filter-tab {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
    color: #333;
}

:root.light-mode .filter-tab.active {
    border-color: var(--neon-pink);
    background: rgba(255, 20, 147, 0.1);
    color: var(--neon-pink);
}

:root.light-mode .filter-tab:hover {
    border-color: rgba(255, 20, 147, 0.3);
    background: rgba(255, 20, 147, 0.05);
}

:root.light-mode .filter-option {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
    color: #333;
}

:root.light-mode .filter-option:hover {
    border-color: rgba(255, 20, 147, 0.3);
    background: rgba(255, 20, 147, 0.05);
}

:root.light-mode .filter-option.active {
    border-color: var(--neon-pink);
    background: rgba(255, 20, 147, 0.1);
    color: var(--neon-pink);
}

:root.light-mode .filter-column h3 {
    border-bottom-color: rgba(255, 20, 147, 0.2);
    color: var(--neon-pink);
}

:root.light-mode .filter-column ul li a {
    color: #333;
}

:root.light-mode .filter-column ul li a:hover,
:root.light-mode .filter-column ul li a.active {
    color: var(--neon-pink);
}

:root.light-mode .filter-note {
    color: #555;
}

:root.light-mode .checkbox-option .checkmark {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.05);
}

:root.light-mode .checkbox-option:hover .checkmark {
    border-color: rgba(255, 20, 147, 0.5);
    background: rgba(255, 20, 147, 0.05);
}

/* Product card */
:root.light-mode .product-card {
    border-color: rgba(255, 20, 147, 0.15);
    background: rgba(255, 255, 255, 0.8);
}

:root.light-mode .product-card:hover {
    border-color: var(--neon-pink);
}
