/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@400;500;700;800&display=swap');

:root {
    --primary-yellow: #FDE300;
    --text-dark-grey: #4D4A51;
    --text-blue-nav: #334569;
    --bg-footer: #0a0a0a;
    --text-footer: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Geologica', sans-serif;
    background-color: #ffffff;
    color: var(--text-dark-grey);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    transition: all 0.2s ease;
    text-decoration: none;
}

/* --- HEADER (Preserved) --- */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid #f0f0f0;
}

.top-bar {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delivery-badge {
    background-color: var(--primary-yellow);
    color: var(--text-dark-grey);
    font-weight: 700;
    font-style: italic;
    padding: 0.3rem 0.8rem;
    display: inline-block;
}

.top-links {
    display: flex;
    gap: 1.5rem;
}

.top-links a {
    color: var(--text-dark-grey);
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
}

.main-header {
    padding: 1.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo img {
    height: 60px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-blue-nav);
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
}

.user-actions {
    display: flex;
    gap: 1.5rem;
}

.icon-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark-grey);
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
}

/* --- HERO SECTION REFINED --- */
.hero-split {
    display: flex;
    min-height: 550px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-left {
    flex: 1;
    background: url('../images/hero-bg-left.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
}

.hero-right {
    flex: 1;
    background: url('../images/hero-bg-right.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    /* Subtle dim if needed */
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 450px;
    z-index: 3;
    margin-bottom: 2rem;
    position: relative;
}

.hero-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    /* Extra bold */
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--primary-yellow);
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #000;
}

.hero-right .hero-content h2 {
    color: var(--primary-yellow);
}

.hero-content p {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 500;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-yellow {
    background: var(--primary-yellow);
    color: #000;
    padding: 12px 30px;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    border: 2px solid #000;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
    display: inline-block;
}

.btn-yellow:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.5);
    background: #fff;
}

.hero-image-container {
    height: 250px;
    z-index: 3;
    position: relative;
    margin-top: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-product-img {
    max-height: 100%;
    width: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 5;
}

.hero-arrow-left {
    left: 0;
}

.hero-arrow-right {
    right: 0;
}

/* --- COMMON SECTION STYLES --- */
.section-header {
    text-align: center;
    margin: 6rem 0 3rem;
}

.badge-yellow {
    background: var(--primary-yellow);
    color: var(--text-dark-grey);
    padding: 5px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: inline-block;
}

.section-header h3 {
    font-size: 2.5rem;
    font-style: italic;
    font-weight: 800;
    color: var(--text-blue-nav);
    text-transform: uppercase;
    margin: 0;
}

/* --- PRODUCT GRID --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

.product-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 2rem;
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-yellow);
}

.product-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
}

.product-info h4 {
    font-size: 1.1rem;
    margin: 10px 0;
    font-weight: 700;
    min-height: 3em;
}

.brand {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-blue-nav);
}

.btn-outline-center {
    display: table;
    margin: 0 auto 4rem;
    border: 2px solid #000;
    color: #000;
    padding: 10px 30px;
    text-transform: uppercase;
    font-weight: 700;
}

.btn-outline-center:hover {
    background: #000;
    color: #fff;
}


/* --- ASSORTMENT (KATEGORIE) --- */
.assortment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 6rem;
}

.assortment-item {
    background: #fff;
    border: 1px dotted #ccc;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
    cursor: pointer;
}

.assortment-item:hover {
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border: 1px solid var(--primary-yellow);
}

.cat-img-wrap {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.cat-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    /* Ensure images don't overflow */
    object-fit: contain;
}

.assortment-item h4 {
    font-size: 0.85rem;
    font-weight: 800;
    font-style: italic;
    color: var(--text-blue-nav);
    margin: auto 0 0;
    /* Push to bottom */
    text-transform: uppercase;
}

/* --- FEATURES (DLACZEGO MY) --- */
.features-section {
    background: url('../images/hero-bg-right.png') center/cover;
    /* Reusing orange texture */
    background-color: #1a1a1a;
    padding: 5rem 0;
    position: relative;
    color: #fff;
}

.features-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    /* Darken considerably */
    z-index: 0;
}

.features-container {
    position: relative;
    z-index: 1;
}

.section-header-light {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header-light h3 {
    color: #fff;
    font-style: italic;
    font-weight: 800;
    font-size: 2.2rem;
    margin-top: 10px;
    text-transform: uppercase;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
}

.icon-box-square {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: #fff;
    border: 2px solid var(--primary-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Custom Icon Colors matching reference */
.feature-item:nth-child(1) .icon-box-square i {
    color: #e74c3c;
}

/* Red Stop */
.feature-item:nth-child(2) .icon-box-square i {
    color: #3498db;
}

/* Blue Truck */
.feature-item:nth-child(3) .icon-box-square i {
    color: #e67e22;
}

/* Orange Cylinder */
.feature-item:nth-child(4) .icon-box-square i {
    color: #f1c40f;
}

/* Yellow Shield */

.feature-text h4 {
    color: var(--primary-yellow);
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 800;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    /* Match visual */
}

.feature-text p {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

/* --- FOOTER (Preserved) --- */
.site-footer {
    background-color: var(--bg-footer);
    color: var(--text-footer);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: #fff;
    font-weight: 400;
    font-style: italic;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 40px;
    margin-bottom: 1.5rem;
    filter: none;
}

.footer-address p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #fff;
    font-weight: 400;
    font-style: italic;
    opacity: 0.9;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #ffffff;
    font-weight: 400;
    font-style: italic;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.payment-methods {
    margin-bottom: 1rem;
}

.payment-methods .msg {
    color: #aaa;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.copyright {
    color: #888;
    font-size: 0.8rem;
    margin: 0;
}

/* --- PRODUCT PAGE STYLES --- */
.product-layout-grid {
    display: flex;
    gap: 4rem;
    padding: 3rem 1rem;
    align-items: flex-start;
}

.product-gallery-section {
    flex: 1;
    max-width: 50%;
    min-width: 400px;
}

.product-gallery-section img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    padding: 1rem;
    background: #fff;
    border-radius: 4px;
}

.product-info-section {
    flex: 1;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-dark-grey);
    text-transform: uppercase;
    line-height: 1.2;
}

.product-divider {
    height: 1px;
    background: #eee;
    margin: 2rem 0;
}

.product-description-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-blue-nav);
}

.product-description-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
}

.product-action-area {
    background: #fdfdfd;
    padding: 2rem;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.product-action-area .form-item {
    margin-bottom: 1.5rem;
}

.product-action-area label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.product-action-area .layout--one-col {
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .assortment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-split {
        flex-direction: column;
        height: auto;
    }

    .hero-left,
    .hero-right {
        height: 400px;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-actions {
        gap: 1.5rem;
    }

    .main-nav ul {
        gap: 1rem;
    }

    .action-link,
    .icon-link {
        font-size: 0.8rem;
        text-transform: uppercase;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-layout-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .product-gallery-section {
        max-width: 100%;
        min-width: 100%;
    }

    /* Top Bar Mobile Fixes */
    .top-bar-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0.5rem 0;
    }

    .top-links {
        justify-content: center;
        width: 100%;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .delivery-badge {
        display: inline-block;
        white-space: normal;
        font-size: 0.75rem;
        padding: 4px 10px;
        width: auto;
    }

    /* Hero Fixes */
    .hero-content h2 {
        font-size: 1.5rem;
        /* Much smaller on mobile */
        word-wrap: break-word;
        /* Prevent overflow */
    }

    .hero-content {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-image-container {
        height: 150px;
        /* Smaller image on mobile */
    }

    .hero-left,
    .hero-right {
        height: auto;
        padding: 3rem 1rem;
    }

    /* Section Header Fixes */
    .section-header h3 {
        font-size: 1.8rem;
        padding: 0 1rem;
        word-wrap: break-word;
    }

    .section-header-light h3 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }

    /* Assortment Grid Fixes */
    .assortment-grid {
        grid-template-columns: 1fr;
        /* Stack singly on narrow screens */
        gap: 1rem;
    }

    .assortment-item {
        padding: 1.5rem;
    }

    /* Features Grid Fixes */
    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .features-section {
        padding: 3rem 0;
    }

    .feature-item {
        gap: 1rem;
        /* Reduce gap */
    }

    .icon-box-square {
        width: 60px;
        /* Slightly smaller icon box */
        height: 60px;
        min-width: 60px;
        font-size: 1.5rem;
    }

    .feature-text {
        flex: 1;
        /* Allow text to take remaining width */
        min-width: 0;
        /* Enable flex item shrinking properly */
    }

    .feature-text h4 {
        font-size: 1.1rem;
        /* Smaller header */
        word-wrap: break-word;
        /* Ensure wrapping */
    }

    /* Product Grid Fixes */
    .product-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .section-header h3,
    .section-header-light h3 {
        font-size: 1.5rem;
    }
}

/* User Account Menu in Header Top */
.top-links .block-system-menu-block-account {
    display: inline-block;
}

.top-links .block-system-menu-block-account ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 1.5rem;
}

.top-links .block-system-menu-block-account li {
    display: inline-block;
}

.top-links .block-system-menu-block-account a {
    color: var(--text-dark-grey);
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.top-links .block-system-menu-block-account a.is-active {
    text-decoration: underline;
}


/* --- USER AUTHENTICATION PAGE --- */
.user-page-wrapper {
    background-color: #f8f8f8;
    min-height: 80vh;
    padding: 6rem 0;
    display: flex;
    align-items: center;
    position: relative;
    background-image: radial-gradient(circle at 10% 20%, #fde3000d 0%, transparent 20%), radial-gradient(circle at 90% 80%, #3345690d 0%, transparent 20%);
}

.user-auth-card {
    background: #fff;
    max-width: 550px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    text-align: center;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    font-style: italic;
    color: var(--text-blue-nav);
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: #888;
    margin: 0;
}

/* Drupal Tabs Styling (Login/Register/Password) */
.user-auth-card .tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    border-bottom: 2px solid #eee;
}

.user-auth-card .tabs li {
    margin-bottom: -2px;
}

.user-auth-card .tabs a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 2px solid transparent;
}

.user-auth-card .tabs a.is-active {
    color: var(--text-dark-grey);
    border-bottom-color: var(--primary-yellow);
}

.user-auth-card .tabs a:hover {
    color: var(--text-blue-nav);
}

/* Form Styling */
.user-auth-card form {
    text-align: left;
}

.user-auth-card .form-item {
    margin-bottom: 1.5rem;
}

.user-auth-card label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark-grey);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.user-auth-card .form-text,
.user-auth-card .form-email,
.user-auth-card .form-tel,
.user-auth-card input[type="text"],
.user-auth-card input[type="email"],
.user-auth-card input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    /* Slight roundness */
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.2s;
}

.user-auth-card input:focus {
    border-color: var(--text-blue-nav);
    outline: none;
    box-shadow: 0 0 0 3px rgba(51, 69, 105, 0.1);
}

/* Buttons */
.user-auth-card .form-submit,
.user-auth-card .button {
    width: 100%;
    background-color: var(--primary-yellow);
    color: #000;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    padding: 14px;
    border: 2px solid #000;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8);
    transition: all 0.2s;
    margin-top: 1rem;
}

.user-auth-card .form-submit:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.8);
    background-color: #fff;
}

/* Social Auth Integration styles */
.social-auth-links {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
    text-align: center;
}

.social-auth-links h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #aaa;
    margin: 0 0 1rem;
    font-weight: 700;
}

.social-buttons-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-auth-links a.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    background: #fff;
    transition: all 0.2s;
}

.social-auth-links a.social-btn:hover {
    background: #f9f9f9;
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.social-google:hover {
    border-color: #4285F4 !important;
    background: #fff !important;
}

.social-facebook:hover {
    border-color: #1877F2 !important;
    background: #fff !important;
}

/* --- AUTH PAGES (LOGIN / REGISTER) --- */
.auth-wrapper {
    display: flex;
    justify-content: center;
    padding: 6rem 1rem;
    background: #f9f9f9;
    min-height: 60vh;
    align-items: center;
}

.auth-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    max-width: 480px;
    width: 100%;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-yellow);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 2rem;
    color: var(--text-dark-grey);
    text-transform: uppercase;
    font-weight: 800;
    font-style: italic;
    margin: 0 0 0.5rem;
}

.auth-header p {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}

.spawaj-auth-form .form-item {
    margin-bottom: 1.5rem;
}

.spawaj-auth-form label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
    color: var(--text-dark-grey);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.spawaj-auth-form .form-control,
.spawaj-auth-form input[type="text"],
.spawaj-auth-form input[type="email"],
.spawaj-auth-form input[type="password"],
.spawaj-auth-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    /* Square edges for industrial look */
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #fdfdfd;
}

.spawaj-auth-form .form-control:focus {
    border-color: var(--text-blue-nav);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(51, 69, 105, 0.1);
}

.spawaj-auth-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    letter-spacing: 0.5px;
}

.spawaj-auth-form .btn-primary {
    background: var(--text-blue-nav);
    color: #fff;
}

.spawaj-auth-form .btn-primary:hover {
    background: #253350;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 51, 80, 0.2);
}

/* Social Login */
.social-login-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.social-login-label {
    display: block;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    color: #aaa;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 10px;
    border: 1px solid #eee;
    background: #fff;
    color: #555;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s;
    text-decoration: none;
    border-radius: 4px;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.btn-social.facebook {
    color: #1877f2;
    border-color: #e7f1ff;
    background: #fbfdff;
}

.btn-social.google {
    color: #ea4335;
    border-color: #fce8e6;
    background: #fffcfc;
}

.btn-social i {
    font-size: 1.2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-footer a {
    color: var(--text-dark-grey);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--primary-yellow);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

.auth-footer a:hover {
    background: var(--primary-yellow);
    text-decoration: none;
}


/* Custom Sort Dropdown Styles */
.custom-sort-dropdown {
    position: relative;
    display: inline-block;
    font-family: 'Inter', sans-serif;
    width: 300px;
    /* Fixed width as per design roughly */
    user-select: none;
}

.custom-sort-dropdown .sort-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e1e4e8;
    padding: 12px 16px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.custom-sort-dropdown .sort-trigger:hover {
    border-color: #cbd0d6;
}

.custom-sort-dropdown .sort-label {
    color: #1a202c;
    /* Dark text */
    font-weight: 700;
    margin-right: 8px;
    font-size: 14px;
}

.custom-sort-dropdown .current-value {
    color: #4a5568;
    /* Gray text */
    flex-grow: 1;
    text-align: right;
    margin-right: 12px;
    font-size: 14px;
}

.custom-sort-dropdown .chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #4a5568;
    border-bottom: 2px solid #4a5568;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s;
}

.custom-sort-dropdown.open .chevron {
    transform: rotate(225deg) translateY(-2px);
}

.custom-sort-dropdown .sort-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-top: none;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.custom-sort-dropdown.open .sort-options {
    display: block;
}

.custom-sort-dropdown .sort-options li {
    padding: 10px 16px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    transition: background 0.1s;
}

.custom-sort-dropdown .sort-options li:hover {
    background: #f7fafc;
    color: #1a202c;
}

.custom-sort-dropdown .sort-options li.selected {
    font-weight: 700;
    color: #1a202c;
    background: #edf2f7;
}


/* User Dashboard Layout */
.user-dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 3rem 0;
    min-height: 600px;
}

@media (max-width: 900px) {
    .user-dashboard {
        grid-template-columns: 1fr;
    }
}

.dashboard-sidebar {
    background: #fff;
    border: 1px solid #eee;
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
}

.dashboard-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-nav li {
    margin-bottom: 0.5rem;
}

.dashboard-nav a {
    display: block;
    padding: 12px 16px;
    color: #4a5568;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dashboard-nav a:hover,
.dashboard-nav a.is-active {
    background: var(--primary-yellow);
    color: #000;
    text-decoration: none;
}

.dashboard-content-area {
    background: #fff;
    border: 1px solid #eee;
    padding: 2.5rem;
    border-radius: 8px;
}

.dashboard-title {
    font-size: 1.8rem;
    font-weight: 800;
    font-style: italic;
    color: var(--text-dark-grey);
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-yellow);
}

.dashboard-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-blue-nav);
}

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

.info-card {
    background: #fdfdfd;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* --- COMMERCE PAGES (SHOP PATH) --- */

/* Cart Page */
.cart-form table,
.view-commerce-cart-form table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: #fff;
    border: 1px solid #eee;
}

.cart-form th {
    background: #f8f8f8;
    color: var(--text-dark-grey);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--primary-yellow);
}

.cart-form td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-form tr:last-child td {
    border-bottom: none;
}

.cart-form .views-field-order-item-total {
    font-weight: 700;
    color: var(--text-blue-nav);
    font-size: 1.1rem;
}

/* Order Total Area */
.order-total-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 1rem;
}

.order-total-line__label {
    color: #666;
    font-weight: 600;
}

.order-total-line__value {
    font-weight: 700;
    color: #333;
}

.order-total-line--total .order-total-line__label,
.order-total-line--total .order-total-line__value {
    font-size: 1.3rem;
    color: var(--text-blue-nav);
    border-top: 2px solid #eee;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

/* Checkout Page */
.checkout-pane {
    background: #fff;
    border: 1px solid #eee;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.checkout-pane-header {
    font-size: 1.4rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    color: var(--text-dark-grey);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-yellow);
}

.checkout-pane-review table {
    width: 100%;
}

.checkout-pane-review td {
    padding: 0.8rem 0;
    border-bottom: 1px dashed #eee;
}

/* Steps Indicator (Progress Bar) */
.checkout-progress {
    list-style: none;
    padding: 0;
    display: flex;
    margin-bottom: 3rem;
    justify-content: center;
    counter-reset: step;
}

.checkout-progress li {
    position: relative;
    padding: 0 2rem;
    color: #aaa;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.checkout-progress li::before {
    counter-increment: step;
    content: counter(step);
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 26px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 10px;
    text-align: center;
    background: #fff;
    transition: all 0.3s;
}

.checkout-progress li.checkout-progress--step__current,
.checkout-progress li.checkout-progress--step__completed {
    color: var(--text-dark-grey);
}

.checkout-progress li.checkout-progress--step__current::before,
.checkout-progress li.checkout-progress--step__completed::before {
    border-color: var(--primary-yellow);
    background: var(--primary-yellow);
    color: #000;
}

/* Add to Cart Button override */
.button--add-to-cart {
    background-color: var(--primary-yellow);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    padding: 12px 24px;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.8);
    transition: all 0.2s;
    cursor: pointer;
}

.button--add-to-cart:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.8);
    background-color: #fff;
}

/* --- FULL PRODUCT PAGE DETAILS --- */

/* Safe Shopping Block */
.safe-shopping-static {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.safe-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #eee;
}

.safe-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.safe-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark-grey);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.safe-info {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.safe-info strong {
    color: var(--text-dark-grey);
    margin-bottom: 2px;
}

.safe-info span {
    color: #666;
}

.safe-shopping-badge {
    background: #eefecf;
    color: #2e6213;
    padding: 0.5rem;
    text-align: center;
    border-radius: 4px;
    font-weight: 700;
    margin-top: 1.5rem;
    border: 1px solid #c9ebb0;
}

.payment-logos-static {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 1.5rem;
    color: #888;
}

/* Tabs Styling */
.product-tabs-wrapper {
    margin-top: 4rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.tabs-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.tabs-nav li {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    color: #888;
    border-right: 1px solid #eee;
    transition: all 0.2s;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.tabs-nav li:hover {
    background: #fff;
    color: var(--text-dark-grey);
}

.tabs-nav li.active {
    background: #fff;
    color: var(--primary-yellow);
    box-shadow: inset 0 3px 0 var(--primary-yellow);
    /* Top border effect */
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
    background: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tab-heading {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-dark-grey);
    font-weight: 800;
    text-transform: uppercase;
}

/* Attributes / Short Specs */
.product-short-attributes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.product-short-attributes>div {
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
}