:root {
    --primary-color: #222;
    --accent-color: #007782; /* Vinted-like teal */
    --accent-hover: #00636d;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333;
    --font-main: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Navbar */
.promo-banner {
    background-color: #d32f2f;
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 101; /* Ensure it stays above the sliding menu */
}

.navbar {
    background: transparent;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: -1;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-top: 2px;
    letter-spacing: 0.5px;
    opacity: 0.5;
}

.subtitle-note {
    color: #777;
}

.dot {
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-filter {
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    background-color: white;
    color: #333;
}

.nav-filter:focus {
    border-color: var(--accent-color);
}

/* Nav Search & Dropdown */
.nav-search-container {
    display: flex;
    align-items: center;
    margin-left: auto; /* Push to the right */
    margin-right: 20px;
    position: relative;
    z-index: 2;
}

.nav-search-input {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    width: 200px;
    transition: border-color 0.3s, width 0.3s;
}

.nav-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    width: 250px;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropbtn .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.dropdown:hover .dropbtn .arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    padding: 10px 0;
    max-height: 400px;
    overflow-y: auto;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .nav-search-container {
        display: none; /* Hide on mobile for now or adjust */
    }
}

/* Main Content */
main {
    flex: 1;
    padding: 40px 0;
}

/* Hero Section (Landing) */
.hero {
    text-align: left;
    margin-bottom: 1rem;
    padding: 40px 60px;
    background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%);
    border-radius: 0 0 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    /* overflow: hidden; Removed to allow arrow to stick out if needed, but might need padding */
}

.hero-content {
    flex: 1;
    max-width: 750px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 250px; /* Reduced size */
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.hero-image img:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 2;
    color: var(--primary-color);
}

.hero-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-top: 1.5rem;
    line-height: 1.4;
}

@media (max-width: 850px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-image {
        max-width: 70%;
        margin-top: -1rem;
    }

    .hero-arrow {
        right: -10px;
        width: 36px;
        height: 36px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .promo-banner {
        font-size: 0.75rem;
        padding: 8px;
    }

    .hero {
        padding: 30px 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .hero-arrow {
        right: -5px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* Filters */
.filters-container {
    margin-bottom: 40px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.search-bar {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    padding-right: 50px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 119, 130, 0.1);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.filter-dropdown {
    padding: 15px 25px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    background-color: white;
    min-width: 200px;
    transition: border-color 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 20px top 50%;
    background-size: 10px auto;
}

.filter-dropdown:focus {
    border-color: var(--accent-color);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 30px;
}

/* Tablet (Default: 2 columns) */
@media (min-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (Default: 3 columns) */
@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Compact Mode */
.products-grid.compact {
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2 columns */
    gap: 15px; /* Smaller gap for compact view */
}

/* Tablet (Compact: 3 columns) */
@media (min-width: 600px) {
    .products-grid.compact {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (Compact: 4 columns) */
@media (min-width: 992px) {
    .products-grid.compact {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* List View Mode */
.products-grid.list-view {
    grid-template-columns: 1fr !important;
    gap: 20px;
}

.products-grid.list-view .product-card {
    flex-direction: row;
    align-items: stretch;
    height: auto;
}

.products-grid.list-view .card-image-container {
    width: 150px;
    min-height: 150px;
    padding-top: 0;
    flex-shrink: 0;
}

.products-grid.list-view .card-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 30px;
    text-align: left;
}

.products-grid.list-view .card-title {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.products-grid.list-view .card-price {
    font-size: 1.3rem;
    margin-left: 20px;
    white-space: nowrap;
    margin-top: 0;
}

/* Mobile adjustments for list view */
@media (max-width: 600px) {
    .products-grid.list-view .card-image-container {
        width: 100px;
        min-height: 100px;
        height: auto;
    }
    
    .products-grid.list-view .card-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .products-grid.list-view .card-price {
        margin-left: 0;
        margin-top: 5px;
    }

    .products-grid.list-view .card-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        width: 100%;
        line-height: 1.2;
    }

    .products-grid.list-view .custom-card .card-title {
        margin-top: 30px;
    }

    .products-grid.list-view .card-title {
        font-size: 0.9rem; /* Reduced by ~25% from 1.2rem */
    }
    
    .products-grid.compact .card-title {
        font-size: 0.825rem; /* Reduced by ~25% from 1.1rem */
        text-align: center;
    }

    .products-grid.compact .card-price {
        text-align: center;
        line-height: 0.9;
    }
}

/* View Toggle Buttons */
.view-controls {
    display: flex;
    gap: 5px;
}

.view-toggle-btn {
    background: transparent;
    border: 1px solid #ddd;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-color);
    padding: 0;
}

.view-toggle-btn.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.view-toggle-btn:hover:not(.active) {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: rgba(0, 119, 130, 0.05);
}

.product-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-image-container {
    position: relative;
    width: 100%;
    padding-top: 85%; /* Square 1:1 aspect ratio */
    overflow: hidden;
    background-color: #eee;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease-in-out;
}

.card-image-hover {
    opacity: 0;
}

.product-card:hover .card-image-hover {
    opacity: 1;
}

.product-card:hover .card-image-main {
    opacity: 0;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.card-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-top: auto;
}

/* Product Detail Page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.detail-image img {
    width: 100%;
    max-height: 615px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: opacity 0.3s;
}

.detail-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--accent-color);
}

.detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.detail-price {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 800;
    margin-bottom: 20px;
}

.detail-desc {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.8;
}

.buy-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-buy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.btn-vinted {
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
    font-size: 1.2rem; /* Slightly larger */
    position: relative;
    overflow: hidden;
}

.btn-vinted::after {
    content: 'NAJTANIEJ!';
    position: absolute;
    top: 5px;
    right: -25px;
    background: #ffeb3b;
    color: #333;
    font-size: 0.6rem;
    padding: 2px 16px 2px 34px;
    transform: rotate(45deg);
    font-weight: 800;
}

.btn-vinted.no-badge::after {
    display: none;
}

.btn-olx {
    background-color: #002f34;
}

.btn-allegro {
    background-color: #ff5a00;
}

.price-tag {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap; /* Prevent price wrapping */
}

.back-link {
    display: inline-block;
    margin: 12px auto;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Custom Product Card */
.product-card.custom-card {
    border: 2px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    position: relative;
}

.custom-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd700;
    color: #333;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Form Styles */
.custom-order-form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.custom-order-form.full-width {
    margin-top: 1rem;
    width: 100%;
    grid-column: 1 / -1; /* If inside grid */
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

/* Tooltip */
.tooltip-container {
    position: relative;
}

.tooltip-container label {
    cursor: help;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    font-weight: 400;
    pointer-events: none;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.btn-submit {
    width: 100%;
    background-color: #333;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    word-spacing: 4px;
    cursor: pointer;
    transition: background-color 0.3s, word-spacing 0.3s, letter-spacing 0.3s;
}

.btn-submit:hover {
    background-color: #000;
    word-spacing: 6px;
    letter-spacing: 1.5px;
}

/* Thumbnails with Labels */
.detail-thumbnails {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.thumbnail-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.thumbnail {
    width: 100%;
    height: 120px; /* Fixed height for strip-like appearance */
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border-color 0.2s, filter 0.2s;
    filter: brightness(0.6); /* Darkened by default */
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--accent-color);
    transition: border-color 0.2s, filter 0.2s;
    filter: brightness(1.05); /* Bright on hover/active */
}

.thumbnail-label {
    font-size: 0.7rem;
    margin-top: 5px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.2s;
}

.thumbnail.active + .thumbnail-label {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.footer-separator {
    margin-left: 24px;
}

@media (max-width: 768px) {
    .footer-separator {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    position: relative;
    width: 90vh;
    height: 90vh;
    max-width: 90vw;
    max-height: 90vw;
    aspect-ratio: 1 / 1;
}

.lightbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
    text-shadow: 0 0 10px rgba(0,0,0,1);
    line-height: 0.8;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    user-select: none;
    transition: background 0.3s;
    z-index: 1002;
}

.lightbox-nav:hover {
    background: var(--accent-color);
}

.lightbox-nav.prev {
    left: 10px;
}

.lightbox-nav.next {
    right: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Pricing Table Styles */
.pricing-table {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.pricing-card.popular {
    border: 2px solid var(--accent-color);
    z-index: 1;
}

.pricing-card.popular:hover {
    transform: translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: -30px;
    background: #ffeb3b;
    color: #333;
    padding: 5px 22px 5px 38px;
    transform: rotate(45deg);
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pricing-header {
    padding: 30px 20px;
    color: white;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.pricing-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.pricing-features {
    list-style: none;
    padding: 20px;
    margin: 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: #444;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li.disabled {
    color: #999;
    text-decoration: line-through;
    opacity: 0.7;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Mobile Break Utility - Removed as we use inline-block for wrapping */

/* Global Button Styles for Wrapping */
.btn-allegro {
    height: auto;
    min-height: 54px; /* Maintain original height */
    padding: 10px 25px;
}

/* Mobile Responsive Styles */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 10px;
        left: auto;
        width: 250px;
        height: auto;
        padding: 20px 0;
        border-radius: 0 0 12px 12px;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        
        /* Animation: Slide up/down behind header */
        transform: translateY(-20px);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
        z-index: 1000; /* On top of everything */
        
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        border: 1px solid #f0f0f0;
        margin: 0; /* Ensure no margins interfere */
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        margin: 12px 0;
    }

    .nav-search-container {
        margin-right: 10px;
        gap: 5px;
    }

    .nav-search-input {
        width: 85px; /* Smaller input on mobile */
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .nav-search-input:focus {
        width: 150px;
    }

    .dropbtn {
        font-size: 0.8rem;
        padding: 5px;
    }
    
    .dropbtn .arrow {
        display: inline; /* Show arrow when text is hidden */
        margin-right: -6px;
    }

    .nav-search-container:has(.nav-search-input:focus) .dropbtn-text {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.125rem; /* 25% smaller than 1.5rem */
    }

    .logo-subtitle {
        font-size: 0.5rem; /* Adjusted proportionally */
    }

    .dropbtn-text {
        display: none;
    }

    .nav-search-input:focus {
        width: 140px;
    }
    
    .dropbtn .arrow {
        display: inline; /* Show arrow when text is hidden */
        font-size: 1rem;
        margin-right: -6px;
    }

    .nav-search-container:has(.nav-search-input:focus) .dropbtn .arrow {
        display: none;
    }

    /* Fix for dropdown on small screens */
    .nav-search-container,
    .dropdown {
        position: static;
    }

    .dropdown-content {
        left: 10px;
        right: 10px;
        width: auto;
        min-width: auto;
        max-width: none;
        white-space: normal;
    }

    .dropdown-content a {
        white-space: normal;
    }

    /* Fix for hamburger menu on small screens */
    .nav-links {
        left: 10px;
        right: 10px;
        width: auto;
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 20px; /* Reduced padding from 40px */
        gap: 25px; /* Reduced gap from 50px */
    }

    /* Mobile Product Detail Typography (-25%) */
    /* Moved here to ensure it overrides default styles defined earlier in the file */
    .detail-info h1 {
        font-size: 1.8rem;
    }

    .detail-price {
        font-size: 1.5rem;
    }

    .detail-desc {
        font-size: 0.85rem;
    }

    .btn-buy {
        font-size: 0.85rem;
        padding: 12px 20px;
    }

    .btn-vinted {
        font-size: 0.9rem;
    }
    
    .btn-vinted::after {
        font-size: 0.45rem;
        padding: 2px 12px 2px 25px;
        right: -20px;
    }
}

@media (max-width: 600px) {
    .product-detail {
        display: flex;
        flex-direction: column;
        gap: 0; /* Remove gap to allow margins to control spacing tightly */
    }

    .detail-info {
        display: contents; /* Allows children to be reordered within the parent flex container */
    }

    /* Reordering elements */
    .detail-info h1 {
        order: 1;
        text-align: center;
    }

    .detail-price {
        order: 2;
        text-align: center;
        margin-bottom: 15px;
    }

    .detail-image {
        order: 3;
    }

    .detail-thumbnails {
        gap: 0.5rem;
        margin-top: 0;
    }

    .thumbnail {
        height: 75px;
    }

    .buy-buttons {
        order: 4;
        margin-top: 1.5rem;
    }

    .detail-desc {
        order: 5;
        margin-top: 1.5rem;
        margin-bottom: 0;
    }

    /* Force 1:1 crop for main product image on mobile */
    .detail-image img {
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    /* Remove 1:1 crop for lightbox on mobile, show full image */
    .lightbox-content {
        aspect-ratio: auto;
        height: auto;
        width: auto;
        max-height: 80vh;
    }

    .lightbox img {
        object-fit: contain;
        height: auto;
        max-height: 80vh;
    }

    /* Custom Order Form Mobile */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .custom-order-form p, .custom-order-form h2, .custom-order-form h3{
        text-align: center;
    }
}

/* FAQ Page Styles */
.how-it-works-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .how-it-works-steps {
        grid-template-columns: 1fr;
    }
}

.step-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.step-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 50px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
    border-top: 1px solid #eee;
    margin-top: 0;
    padding-top: 15px;
}

.btn-vinted.no-badge::after {
    display: none;
}

/* Dark Mode Variables */
body.dark-mode {
    --primary-color: #f0f0f0;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --accent-color: #00a8b5;
    --accent-hover: #008c99;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid transparent;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-left: 0;
    padding: 0;
}

.theme-toggle:hover {
    background-color: rgba(0,0,0,0.05);
    transform: rotate(15deg);
}

body.dark-mode .theme-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Dark Mode Overrides */
body.dark-mode .navbar::before {
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.dark-mode .logo {
    color: var(--primary-color);
}

body.dark-mode .logo-subtitle {
    color: #aaa;
}

body.dark-mode .nav-search-input {
    background-color: #2d2d2d;
    color: white;
    border-color: #444;
}

body.dark-mode .product-card {
    background-color: var(--card-bg);
    border-color: #333;
}

body.dark-mode .card-title {
    color: var(--text-color);
}

body.dark-mode .card-price {
    color: var(--accent-color);
}

body.dark-mode .footer {
    background-color: #000;
}

body.dark-mode .filter-dropdown {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: #444;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23e0e0e0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
}

body.dark-mode .view-toggle-btn {
    color: var(--text-color);
}

body.dark-mode .view-toggle-btn:hover,
body.dark-mode .view-toggle-btn.active {
    background-color: #333;
}

/* Overrides for inline styles in script.js */
body.dark-mode .contact-grid > div,
body.dark-mode .shipping-info-box {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
    color: var(--text-color) !important;
}

body.dark-mode .contact-grid p,
body.dark-mode .shipping-info-box p {
    color: #ccc !important;
}

body.dark-mode .shipping-info-box h3 {
    color: var(--accent-color) !important;
}

body.dark-mode .faq-item {
    background-color: var(--card-bg);
    color: var(--text-color);
}

body.dark-mode .faq-item p {
    color: #ccc;
    border-top-color: #333;
}

body.dark-mode .product-detail-container {
    background-color: var(--card-bg);
}

body.dark-mode .detail-info h1 {
    color: var(--text-color);
}

body.dark-mode .detail-desc {
    color: #ccc;
}

body.dark-mode .custom-order-form {
    background-color: var(--card-bg);
}

body.dark-mode .form-group label {
    color: var(--text-color);
}

body.dark-mode .form-control {
    background-color: #2d2d2d;
    border-color: #444;
    color: white;
}

body.dark-mode .form-control:focus {
    border-color: var(--accent-color);
}

@media (max-width: 900px) {
    .theme-toggle {
        margin: 0; /* Reset margins (especially left margin from desktop) */
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        border-width: 2px;
    }
}

body.dark-mode .contact-container {
    background-color: var(--card-bg) !important;
    color: var(--text-color);
}

/* Dark Mode - Additional Elements */

/* Hero Section */
body.dark-mode .hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

body.dark-mode .hero h1 {
    color: var(--text-color);
}

body.dark-mode .hero p {
    color: #ccc;
}

/* Pricing Cards / Shipping Info */
body.dark-mode .pricing-card {
    background-color: var(--card-bg);
    border-color: #444;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

body.dark-mode .pricing-card.popular {
    border-color: var(--accent-color);
}

body.dark-mode .pricing-features li {
    color: #ccc;
    border-bottom-color: #333;
}

body.dark-mode .pricing-features li.disabled {
    color: #666;
}

/* General Inputs */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background-color: #2d2d2d;
    color: white;
    border-color: #444;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: var(--accent-color);
}

/* Dark Mode - Dropdown & Hamburger Menu */

/* Category Dropdown */
body.dark-mode .dropdown-content {
    background-color: var(--card-bg);
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    border: 1px solid #444;
}

body.dark-mode .dropdown-content a {
    color: var(--text-color);
}

body.dark-mode .dropdown-content a:hover {
    background-color: #333;
    color: var(--accent-color);
}

body.dark-mode .dropbtn {
    color: white;
    border-color: #444;
}

body.dark-mode .dropbtn:hover {
    border-color: var(--accent-color);
}

/* Hamburger Menu (Mobile) */
@media (max-width: 900px) {
    body.dark-mode .nav-links {
        background-color: var(--card-bg);
        border-top-color: #444;
        box-shadow: -5px 5px 15px rgba(0,0,0,0.5);
    }

    body.dark-mode .nav-links a {
        color: var(--text-color);
    }

    body.dark-mode .hamburger span {
        background-color: var(--text-color);
    }
}
