/* RC BRICK SHOP - Clean Styles */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: 193, 40, 45;
    --color-primary-hex: #c1282d;
    --color-primary-text: #ffffff;
    --color-accent: 0, 104, 55;
    --color-accent-hex: #006837;
    --color-accent-text: #ffffff;
    --color-text: 103, 103, 103;
    --color-text-alt: 35, 35, 35;
    --color-border: #dadada;
    --color-background: #ffffff;
    --color-background-alt: #f8f8f8;
    --font-family: 'Roboto', sans-serif;
    --container-width: 146rem;
    --spacing: 2rem;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    color: rgb(var(--color-text));
    line-height: 1.6;
    background-color: var(--color-background);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 9999;
    padding: 1rem;
    background: var(--color-primary-hex);
    color: var(--color-primary-text);
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--color-background-alt);
    padding: 1.3rem 0;
    text-align: center;
    font-weight: 500;
}

/* Header */
.header {
    background-color: rgb(var(--color-primary));
    color: var(--color-primary-text);
    padding: 3.5rem 0;
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

.header-logo img {
    max-width: 250px;
    height: auto;
}

.header-search {
    max-width: 600px;
    width: 100%;
}

.search-form {
    display: flex;
    background: var(--color-background);
    border-radius: 2px;
    overflow: hidden;
}

.search-filter {
    padding: 0.75rem;
    border: none;
    background: transparent;
    color: var(--color-text);
    border-right: 1px solid var(--color-border);
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--color-primary-hex);
    color: var(--color-primary-text);
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.search-button svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-link {
    color: var(--color-primary-text);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 2px;
    transition: opacity 0.2s;
}

.header-link:hover {
    opacity: 0.8;
}

.header-link svg {
    fill: currentColor;
    width: 24px;
    height: 24px;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--color-primary-text);
    cursor: pointer;
    padding: 0.5rem;
    display: none;
}

.mobile-menu-toggle svg {
    fill: currentColor;
    width: 24px;
    height: 24px;
}

/* Main Content */
.main {
    padding: 3rem 0;
}

/* Product Grid */
.featured-products {
    margin-bottom: 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--color-background);
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.product-info h3 a {
    color: rgb(var(--color-text-alt));
    text-decoration: none;
}

.product-info h3 a:hover {
    color: var(--color-primary-hex);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.stock-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.stock-badge.in-stock {
    color: var(--color-accent-hex);
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent-hex);
}

.price {
    font-weight: 500;
    color: rgb(var(--color-text-alt));
}

.price-from {
    font-size: 0.9rem;
    color: rgb(var(--color-text));
}

/* Newsletter */
.newsletter {
    background-color: var(--color-background-alt);
    padding: 2rem 0;
    margin: 3rem 0;
}

.newsletter-content {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-icon svg {
    fill: var(--color-primary-hex);
    width: 32px;
    height: 32px;
}

.newsletter-text h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: rgb(var(--color-text-alt));
}

.newsletter-form {
    display: flex;
}

.newsletter-input-wrap {
    display: flex;
    width: 100%;
}

.newsletter-input-wrap input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: 2px 0 0 2px;
    outline: none;
}

.newsletter-input-wrap button {
    padding: 0.75rem 1.5rem;
    background: var(--color-primary-hex);
    color: var(--color-primary-text);
    border: none;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--color-background-alt);
    margin-top: 3rem;
}

/* Features */
.features {
    padding: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: var(--color-background);
    border-radius: 2px;
}

.feature-icon {
    flex-shrink: 0;
}

.feature-icon svg {
    fill: var(--color-primary-hex);
    width: 32px;
    height: 32px;
}

.feature-content h4 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: rgb(var(--color-text-alt));
}

.feature-content p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer Content */
.footer-content {
    background-color: var(--color-primary-hex);
    color: var(--color-primary-text);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--color-primary-text);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-column ul li a:hover {
    opacity: 1;
}

.footer-text p {
    margin-bottom: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Footer Bottom */
.footer-bottom {
    background-color: var(--color-primary-hex);
    color: var(--color-primary-text);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright a {
    color: var(--color-primary-text);
    text-decoration: none;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-icons {
    display: flex;
    gap: 0.5rem;
}

.payment-icon {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Mini Cart */
.mini-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: var(--color-background);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s;
}

.mini-cart[style*="block"] {
    transform: translateX(0);
}

.mini-cart-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.mini-cart-header h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgb(var(--color-text-alt));
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: rgb(var(--color-text));
    line-height: 1;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
}

.cart-empty svg {
    fill: rgb(var(--color-text));
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-empty p {
    color: rgb(var(--color-text));
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 990px) {
    .header {
        padding: 2rem 0;
    }

    .header-content {
        grid-template-columns: 1fr auto;
        gap: 1rem;
    }

    .header-search {
        grid-column: 1 / -1;
        order: 3;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 750px) {
    .container {
        padding: 0 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .mini-cart {
        width: 100%;
    }

    .header-logo img {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .announcement-bar {
        padding: 1rem 0;
        font-size: 0.9rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-filter {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .search-button {
        justify-content: center;
    }
}
