:root {
    --primary: #232F3E;
    --secondary: #FF9900;
    --text: #333333;
    --background: #FFFFFF;
    --card-bg: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    background: url('/assets/img/bg.jpg') repeat;
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

#main-container {
    background-color: var(--background);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 2rem;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.container { 
    margin: 0 auto;
    padding: 0 1rem;
    padding-bottom: 2rem;
    flex: 1;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.product-card {
    flex: 0 1 calc(33.333% - 2rem);
    max-width: calc(33.333% - 2rem);
    min-width: 280px;
    background: var(--card-bg);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-container {
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* This creates a 4:3 ratio (600/800 = 0.75 = 75%) */
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
    padding: 1rem;
}

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

.product-content {
    padding: 1rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.price-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tooltip-icon {
    cursor: help;
    color: #999;
    transition: color 0.2s ease;
}

.tooltip-icon:hover {
    color: var(--primary);
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    white-space: nowrap;
    border-radius: 4px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.price-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.product-description {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em; /* Fallback for non-webkit browsers: 1.5em line-height * 3 lines */
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tags-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tag {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
    text-transform: capitalize;
}

.tag:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag.active {
    background: var(--secondary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.affiliate-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.affiliate-button:hover {
    background: #ffad33;
    transform: translateY(-2px);
}

.affiliate-button:hover svg {
    transform: translateX(3px);
}

.affiliate-button svg {
    transition: transform 0.2s ease;
}

.load-more {
    display: block;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.load-more:hover {
    background: var(--secondary);
}

.no-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Top Bar Styles */

.logo-container {
    width: 100%;
    text-align: center;
    padding-top: 1rem;
    background-color: var(--background);
}

.logo-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    max-width: 150px;
    text-align: center;
    margin: auto;
    margin-bottom: 1rem;
}

@media (max-width: 980px) {
    .product-card {
        flex: 0 1 calc(50% - 2rem);
        max-width: calc(50% - 2rem);
    }
}

@media (max-width: 640px) {
    .product-card {
        flex: 0 1 100%;
        max-width: 100%;
    }
}

/* Footer Styles */
.footer {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 2rem 0;
    background-color: var(--primary);
    color: white;
}

.footer .container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    font-size: 0.9rem;
    padding: 0 1rem;
}

.footer .copyright {
    margin-bottom: 0.5rem;
}

.footer .disclaimer {
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.4;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-lists {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-lists h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-lists-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-lists-grid a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
}

.footer-lists-grid a:hover {
    opacity: 1;
    color: var(--secondary);
}

/* Static Pages */
.static-page {
    padding: 2rem;
    background: var(--background);
}

.static-page h1 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.static-page h2 {
    color: var(--primary);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.static-page p, 
.static-page ul {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.static-page ul {
    list-style: none;
    padding-left: 1rem;
}

.static-page ol {
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.static-page ol li {
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.static-page ul li {
    position: relative;
    padding-left: 1rem;
}

.static-page ul li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: -0.5rem;
}

/* Back Button */
.back-button-container {
    padding: 1rem 2rem;
    background: var(--background);
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 4px;
    background: rgba(255, 153, 0, 0.1);
}

.back-button:hover {
    color: var(--secondary);
    transform: translateX(-3px);
    background: rgba(255, 153, 0, 0.1);
}

.back-button svg {
    width: 20px;
    height: 20px;
    fill: var(--secondary);
}

/* Recommended Badge */
.recommended-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 153, 0, 0.1);
    color: var(--primary);
    padding: 0.35rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 1;
}

.recommended-badge svg {
    width: 16px;
    height: 16px;
    fill: var(--secondary);
}

/* List Page Styles */
.list-header {
    text-align: center;
    margin-bottom: 2rem;
}

.list-header h1 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.list-description {
    color: var(--text);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Lists Grid Styles */
.lists-title {
    color: var(--primary);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.list-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.list-card h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0;
}

.list-card p {
    color: var(--text);
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
}

/* Floating Lists Button */
.floating-lists-button {
    position: fixed;
    right: -115px;
    top: 50%;
    transform: rotate(-90deg) translateX(50%);
    background: var(--secondary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
}

.floating-lists-button svg {
    transform: rotate(90deg);
    width: 20px;
    height: 20px;
}

.floating-lists-button:hover {
    right: -110px;
    background: #ffad33;
}

@media (max-width: 768px) {
    .floating-lists-button {
        display: none;
    }
}

/* Lists Quick Access */
.top-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1000px;
    margin: auto;
    margin-bottom: 1rem;
    padding: 0 1rem;
    width: 100%;
}

.lists-quick-access {
    flex-shrink: 0;
    width: 250px;  /* Fixed width for the lists button */
}

.lists-quick-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--secondary);
    color: var(--primary);
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    justify-content: center;
}

.lists-quick-button:hover {
    transform: translateY(-2px);
    background: #ffad33;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.lists-quick-button svg {
    width: 20px;
    height: 20px;
}

/* Search Styles */
.search-container {
    position: relative;
    flex-grow: 1;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    height: 48px;
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

.search-icon {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    pointer-events: none;
}

@media (max-width: 768px) {
    .top-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .lists-quick-access {
        width: 100%;
    }

    .lists-quick-button {
        width: 100%;
        justify-content: center;
    }

    .floating-lists-button {
        display: none;
    }
} 