/* ============================================
   Azpimuytpin Board Games - Main Stylesheet
   Google Ads Compliant E-commerce Site
   ============================================ */

:root {
    --primary-blue: #1a365d;
    --dark-blue: #0f2027;
    --medium-blue: #2c5282;
    --light-blue: #4299e1;
    --accent-blue: #3182ce;
    --white: #ffffff;
    --light-gray: #f7fafc;
    --gray: #e2e8f0;
    --dark-gray: #4a5568;
    --text-dark: #2d3748;
    --text-light: #718096;
    --success: #48bb78;
    --warning: #ed8936;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* ============================================
   Header & Navigation
   ============================================ */

header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 4px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

nav {
    position: relative;
    transition: all 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    opacity: 0.8;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.25rem;
    display: inline-block;
    transition: opacity 0.3s;
}

.cart-icon:hover {
    opacity: 0.8;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--warning);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ============================================
   Main Content
   ============================================ */

main {
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--medium-blue) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--accent-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--light-blue);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--light-gray);
}

/* ============================================
   Category Blocks
   ============================================ */

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.category-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--text-dark);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px var(--shadow-lg);
}

.category-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* ============================================
   Product Grid
   ============================================ */

.section-title {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--gray);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--gray);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.product-category {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    flex: 1;
}

/* ============================================
   Filters
   ============================================ */

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background-color: var(--white);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* ============================================
   Product Detail Page
   ============================================ */

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.product-detail-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-lg);
}

.product-detail-info h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.product-detail-meta {
    margin-bottom: 1.5rem;
}

.product-detail-meta span {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--light-gray);
    border-radius: 4px;
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.availability {
    color: var(--success);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-description-full {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.product-actions-large {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.product-actions-large .btn {
    flex: 1;
    text-align: center;
}

/* ============================================
   Trust Badges
   ============================================ */

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.trust-badge {
    text-align: center;
}

.trust-badge-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.trust-badge h4 {
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.trust-badge p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   Forms
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   Content Pages
   ============================================ */

.content-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.content-page h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.content-page h2 {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-page p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-page ul,
.content-page ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-page li {
    margin-bottom: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--light-blue);
}

.footer-section p,
.footer-section a {
    color: var(--gray);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-blue);
    color: var(--gray);
}

/* ============================================
   Responsive Design
   ============================================ */

/* ============================================
   Tablet Styles (481px - 1024px)
   ============================================ */

/* ============================================
   Tablet Styles (481px - 1024px)
   ============================================ */

@media (max-width: 1024px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .container {
        padding: 1.5rem 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .categories {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    .product-detail {
        gap: 2rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .content-page {
        padding: 0 1.5rem;
    }
}

/* ============================================
   Mobile & Tablet Styles (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
        position: relative;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo img {
        height: 40px;
    }

    .menu-toggle {
        display: flex;
        order: 3;
    }

    nav {
        width: 100%;
        order: 4;
        display: none;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        background-color: var(--medium-blue);
        padding: 0.5rem 0;
        border-radius: 5px;
        margin-top: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        padding: 1rem 1.5rem;
        border-radius: 0;
        transition: background-color 0.3s;
        width: 100%;
    }

    nav a:hover {
        background-color: var(--light-blue);
        opacity: 1;
    }

    .cart-icon {
        order: 2;
    }

    .hero {
        padding: 2.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .product-card {
        border-radius: 6px;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1.25rem;
    }

    .categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-detail-info h1 {
        font-size: 2rem;
    }

    .product-actions-large {
        flex-direction: column;
    }

    .product-actions-large .btn {
        width: 100%;
    }

    .trust-badges {
        flex-direction: column;
        gap: 1.5rem;
    }

    .trust-badge {
        padding: 0 1rem;
    }

    .filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .content-page {
        padding: 0 1rem;
    }

    .content-page h1 {
        font-size: 2rem;
    }

    .content-page h2 {
        font-size: 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Cart page mobile styles */
    .cart-item {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 1rem !important;
    }

    .cart-item img {
        width: 100% !important;
        height: auto !important;
        max-width: 200px;
        margin: 0 auto 1rem;
    }

    .cart-item > div {
        min-width: auto !important;
        text-align: center;
    }

    .cart-item > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .cart-item > div:last-child > div {
        justify-content: center;
    }

    .cart-item button {
        width: 100%;
    }

    /* Contact page mobile */
    .content-page > div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }

    /* Google Maps iframe mobile */
    iframe {
        height: 300px !important;
    }
}

/* ============================================
   Cookie Banner
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 3px solid var(--primary-blue);
    box-shadow: 0 -4px 12px var(--shadow-lg);
    padding: 1.5rem 2rem;
    z-index: 10000;
    display: none;
    animation: slideUp 0.3s ease;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.cookie-banner-text a {
    color: var(--accent-blue);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-cookie-accept {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-cookie-accept:hover {
    background-color: var(--medium-blue);
}

.btn-cookie-decline {
    background-color: var(--gray);
    color: var(--text-dark);
}

.btn-cookie-decline:hover {
    background-color: var(--dark-gray);
    color: var(--white);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   Small Mobile Styles (max-width: 480px)
   ============================================ */

@media (max-width: 480px) {
    .header-container {
        padding: 0.75rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo img {
        height: 35px;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 1rem 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-image {
        height: 250px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-small {
        width: 100%;
    }

    .categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card {
        padding: 1.25rem;
    }

    .category-card h3 {
        font-size: 1.1rem;
    }

    .product-detail-info h1 {
        font-size: 1.75rem;
    }

    .product-price {
        font-size: 1.75rem;
    }

    .product-description-full {
        font-size: 1rem;
    }

    .trust-badges {
        gap: 1rem;
    }

    .trust-badge-icon {
        font-size: 2rem;
    }

    .trust-badge h4 {
        font-size: 1rem;
    }

    .trust-badge p {
        font-size: 0.85rem;
    }

    .filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }

    .content-page {
        padding: 0 0.75rem;
    }

    .content-page h1 {
        font-size: 1.75rem;
    }

    .content-page h2 {
        font-size: 1.35rem;
    }

    .content-page p {
        font-size: 0.95rem;
    }

    .footer-container {
        padding: 0;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    .cookie-banner {
        padding: 1rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-banner-text {
        min-width: auto;
    }

    .cookie-banner-text p {
        font-size: 0.9rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-cookie {
        width: 100%;
        padding: 0.75rem;
    }
}

