/* =====================================================
   3toys Polska - Custom CSS
   #f7c694 jako kolor akcentowy
   ===================================================== */

/* =====================================================
   Color Variables
   ===================================================== */
:root {
    /* Accent color */
    --accent: #f7c694;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    /* Semantic colors */
    --primary: var(--accent);
    --background: var(--white);
    --surface: var(--gray-50);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --border: var(--gray-300);
}

/* =====================================================
   Global Styles
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gray-50);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   Typography
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
}

/* =====================================================
   Navigation
   ===================================================== */
.nav-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    max-height: 500px;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn-primary {
    background: var(--accent);
    color: var(--gray-900);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(247, 198, 148, 0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(247, 198, 148, 0.4);
    opacity: 0.9;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--gray-900);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(247, 198, 148, 0.3);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero-bg {
    background-color: #f7f7f7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192' viewBox='0 0 192 192'%3E%3Cpath fill='%23e6dbd1' fill-opacity='0.4' d='M192 15v2a11 11 0 0 0-11 11c0 1.94 1.16 4.75 2.53 6.11l2.36 2.36a6.93 6.93 0 0 1 1.22 7.56l-.43.84a8.08 8.08 0 0 1-6.66 4.13H145v35.02a6.1 6.1 0 0 0 3.03 4.87l.84.43c1.58.79 4 .4 5.24-.85l2.36-2.36a12.04 12.04 0 0 1 7.51-3.11 13 13 0 1 1 .02 26 12 12 0 0 1-7.53-3.11l-2.36-2.36a4.93 4.93 0 0 0-5.24-.85l-.84.43a6.1 6.1 0 0 0-3.03 4.87V143h35.02a8.08 8.08 0 0 1 6.66 4.13l.43.84a6.91 6.91 0 0 1-1.22 7.56l-2.36 2.36A10.06 10.06 0 0 0 181 164a11 11 0 0 0 11 11v2a13 13 0 0 1-13-13 12 12 0 0 1 3.11-7.53l2.36-2.36a4.93 4.93 0 0 0 .85-5.24l-.43-.84a6.1 6.1 0 0 0-4.87-3.03H145v35.02a8.08 8.08 0 0 1-4.13 6.66l-.84.43a6.91 6.91 0 0 1-7.56-1.22l-2.36-2.36A10.06 10.06 0 0 0 124 181a11 11 0 0 0-11 11h-2a13 13 0 0 1 13-13c2.47 0 5.79 1.37 7.53 3.11l2.36 2.36a4.94 4.94 0 0 0 5.24.85l.84-.43a6.1 6.1 0 0 0 3.03-4.87V145h-35.02a8.08 8.08 0 0 1-6.66-4.13l-.43-.84a6.91 6.91 0 0 1 1.22-7.56l2.36-2.36A10.06 10.06 0 0 0 107 124a11 11 0 0 0-22 0c0 1.94 1.16 4.75 2.53 6.11l2.36 2.36a6.93 6.93 0 0 1 1.22 7.56l-.43.84a8.08 8.08 0 0 1-6.66 4.13H49v35.02a6.1 6.1 0 0 0 3.03 4.87l.84.43c1.58.79 4 .4 5.24-.85l2.36-2.36a12.04 12.04 0 0 1 7.51-3.11A13 13 0 0 1 81 192h-2a11 11 0 0 0-11-11c-1.94 0-4.75 1.16-6.11 2.53l-2.36 2.36a6.93 6.93 0 0 1-7.56 1.22l-.84-.43a8.08 8.08 0 0 1-4.13-6.66V145H11.98a6.1 6.1 0 0 0-4.87 3.03l-.43.84c-.79 1.58-.4 4 .85 5.24l2.36 2.36a12.04 12.04 0 0 1 3.11 7.51A13 13 0 0 1 0 177v-2a11 11 0 0 0 11-11c0-1.94-1.16-4.75-2.53-6.11l-2.36-2.36a6.93 6.93 0 0 1-1.22-7.56l.43-.84a8.08 8.08 0 0 1 6.66-4.13H47v-35.02a6.1 6.1 0 0 0-3.03-4.87l-.84-.43c-1.59-.8-4-.4-5.24.85l-2.36 2.36A12 12 0 0 1 28 109a13 13 0 1 1 0-26c2.47 0 5.79 1.37 7.53 3.11l2.36 2.36a4.94 4.94 0 0 0 5.24.85l.84-.43A6.1 6.1 0 0 0 47 84.02V49H11.98a8.08 8.08 0 0 1-6.66-4.13l-.43-.84a6.91 6.91 0 0 1 1.22-7.56l2.36-2.36A10.06 10.06 0 0 0 11 28 11 11 0 0 0 0 17v-2a13 13 0 0 1 13 13c0 2.47-1.37 5.79-3.11 7.53l-2.36 2.36a4.94 4.94 0 0 0-.85 5.24l.43.84A6.1 6.1 0 0 0 11.98 47H47V11.98a8.08 8.08 0 0 1 4.13-6.66l.84-.43a6.91 6.91 0 0 1 7.56 1.22l2.36 2.36A10.06 10.06 0 0 0 68 11 11 11 0 0 0 79 0h2a13 13 0 0 1-13 13 12 12 0 0 1-7.53-3.11l-2.36-2.36a4.93 4.93 0 0 0-5.24-.85l-.84.43A6.1 6.1 0 0 0 49 11.98V47h35.02a8.08 8.08 0 0 1 6.66 4.13l.43.84a6.91 6.91 0 0 1-1.22 7.56l-2.36 2.36A10.06 10.06 0 0 0 85 68a11 11 0 0 0 22 0c0-1.94-1.16-4.75-2.53-6.11l-2.36-2.36a6.93 6.93 0 0 1-1.22-7.56l.43-.84a8.08 8.08 0 0 1 6.66-4.13H143V11.98a6.1 6.1 0 0 0-3.03-4.87l-.84-.43c-1.59-.8-4-.4-5.24.85l-2.36 2.36A12 12 0 0 1 124 13a13 13 0 0 1-13-13h2a11 11 0 0 0 11 11c1.94 0 4.75-1.16 6.11-2.53l2.36-2.36a6.93 6.93 0 0 1 7.56-1.22l.84.43a8.08 8.08 0 0 1 4.13 6.66V47h35.02a6.1 6.1 0 0 0 4.87-3.03l.43-.84c.8-1.59.4-4-.85-5.24l-2.36-2.36A12 12 0 0 1 179 28a13 13 0 0 1 13-13zM84.02 143a6.1 6.1 0 0 0 4.87-3.03l.43-.84c.8-1.59.4-4-.85-5.24l-2.36-2.36A12 12 0 0 1 83 124a13 13 0 1 1 26 0c0 2.47-1.37 5.79-3.11 7.53l-2.36 2.36a4.94 4.94 0 0 0-.85 5.24l.43.84a6.1 6.1 0 0 0 4.87 3.03H143v-35.02a8.08 8.08 0 0 1 4.13-6.66l.84-.43a6.91 6.91 0 0 1 7.56 1.22l2.36 2.36A10.06 10.06 0 0 0 164 107a11 11 0 0 0 0-22c-1.94 0-4.75 1.16-6.11 2.53l-2.36 2.36a6.93 6.93 0 0 1-7.56 1.22l-.84-.43a8.08 8.08 0 0 1-4.13-6.66V49h-35.02a6.1 6.1 0 0 0-4.87 3.03l-.43.84c-.79 1.58-.4 4 .85 5.24l2.36 2.36a12.04 12.04 0 0 1 3.11 7.51A13 13 0 1 1 83 68a12 12 0 0 1 3.11-7.53l2.36-2.36a4.93 4.93 0 0 0 .85-5.24l-.43-.84A6.1 6.1 0 0 0 84.02 49H49v35.02a8.08 8.08 0 0 1-4.13 6.66l-.84.43a6.91 6.91 0 0 1-7.56-1.22l-2.36-2.36A10.06 10.06 0 0 0 28 85a11 11 0 0 0 0 22c1.94 0 4.75-1.16 6.11-2.53l2.36-2.36a6.93 6.93 0 0 1 7.56-1.22l.84.43a8.08 8.08 0 0 1 4.13 6.66V143h35.02z'%3E%3C/path%3E%3C/svg%3E");
    position: relative;
    overflow: hidden;
}

/* =====================================================
   Text Gradient
   ===================================================== */
.text-gradient {
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* =====================================================
   Card Styles
   ===================================================== */
.card-hover {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(247, 198, 148, 0.2), 
                0 0 0 1px rgba(247, 198, 148, 0.1);
}

/* =====================================================
   Product Cards (with background image)
   ===================================================== */
.product-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 16px;
    height: 500px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.product-card-image {
    width: 100%;
    height: 320px;
    object-fit: contain;
    transition: transform 0.4s ease;
    flex-shrink: 0;
    border-radius: 14px 14px 0 0;
    background: var(--gray-50);
}

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

.product-card-overlay {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 2px solid var(--border);
    padding: 1.5rem;
    transition: all 0.3s ease;
    z-index: 1;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    display: block;
}

.product-card:hover .product-card-overlay {
    background: var(--gray-50);
    border-top-color: var(--primary);
}

.product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.product-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    display: block;
    visibility: visible;
    opacity: 1;
}

.product-card-catid {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-900);
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: block;
    visibility: visible;
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(247, 198, 148, 0.2), 
                0 0 0 1px rgba(247, 198, 148, 0.1);
}

/* =====================================================
   Pagination
   ===================================================== */
.pagination-btn {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text-primary);
    cursor: pointer;
}

.pagination-btn:hover:not(.pagination-btn-disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-btn.pagination-btn-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--gray-900);
}

.pagination-btn-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    font-weight: 500;
    color: var(--text-secondary);
}

/* =====================================================
   Price Notice Banner
   ===================================================== */
.price-notice-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--accent) 0%, rgba(247, 198, 148, 0.8) 100%);
    color: var(--gray-900);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    box-shadow: 0 4px 12px rgba(247, 198, 148, 0.3);
    transition: all 0.3s ease;
    max-width: 90%;
}

.price-notice-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(247, 198, 148, 0.4);
}

.price-notice-banner i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.price-notice-banner span {
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .price-notice-banner {
        font-size: 0.9rem;
        padding: 0.875rem 1.25rem;
        gap: 0.5rem;
        max-width: 95%;
    }
    
    .price-notice-banner i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .price-notice-banner {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* =====================================================
   Product Modal (Full Screen)
   ===================================================== */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    overflow-y: auto;
    padding: 5vh 5vw; /* Equal margins: 5% from each side */
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.product-modal-container {
    width: 100%;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--white);
    position: relative;
    padding: 4rem 2rem 2rem 2rem; /* Extra padding at top for close button */
    border-radius: 16px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.product-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: var(--gray-900);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(247, 198, 148, 0.4);
}

.product-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    opacity: 0.9;
}

.product-modal-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Left Side - Gallery Grid */
.product-modal-gallery {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    max-height: 60vh;
    padding-right: 0.5rem;
}

/* Custom scrollbar for gallery */
.product-modal-gallery::-webkit-scrollbar {
    width: 8px;
}

.product-modal-gallery::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.product-modal-gallery::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.product-modal-gallery::-webkit-scrollbar-thumb:hover {
    background: #f5b876;
}

.product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 200px));
    gap: 1rem;
    width: fit-content;
}

.product-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: all 0.3s ease;
}

.product-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(247, 198, 148, 0.3);
}

.product-gallery-item:hover img {
    transform: scale(1.05);
}

/* Right Side - Product Info */
.product-modal-info {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.product-modal-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-modal-catid {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    font-style: italic;
}

.product-modal-short-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-modal-price-section {
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.product-modal-price-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.product-modal-price-suffix {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 0.5rem;
    letter-spacing: 0.025em;
}

/* Dimensions section */
.product-modal-dimensions {
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-modal-dimensions-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.product-modal-dimensions-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.product-modal-features {
    margin-bottom: 2rem;
}

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

.product-modal-features-list {
    list-style: none;
    padding: 0;
}

.product-modal-features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-modal-features-list li:before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.product-modal-actions {
    margin-top: 2rem;
}

.product-modal-btn {
    width: 100%;
    text-align: center;
}

/* Bottom Section - Description */
.product-modal-description {
    border-top: 2px solid var(--border);
    padding-top: 2rem;
}

.product-modal-description-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.product-modal-description-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 1200px;
}

.product-modal-description-text p {
    margin-bottom: 1rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .product-modal-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-modal-info {
        position: static;
    }
    
    .product-modal-gallery {
        max-height: none;
    }
    
    .product-gallery-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        width: 100%;
    }
    
    .product-modal-container {
        padding: 3.5rem 1.5rem 1.5rem 1.5rem;
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .product-modal-close {
        top: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .product-card {
        height: 400px;
    }
    
    .product-card-overlay {
        height: 160px;
    }
    
    .product-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .product-card-title {
        font-size: 1.25rem;
    }
    
    .product-card-catid {
        font-size: 0.75rem;
    }
    
    .product-modal-title {
        font-size: 2rem;
    }
    
    .product-modal-catid {
        font-size: 0.8rem;
    }
    
    .product-modal-price {
        font-size: 1.125rem;
    }
    
    .product-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.service-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: var(--white);
}

.service-card-content {
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gray-200);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 1.5rem;
    color: var(--gray-700);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent);
    color: var(--gray-900);
    box-shadow: 0 4px 12px rgba(247, 198, 148, 0.3);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
}

.service-card:hover .service-card-overlay {
    opacity: 0.95;
}

.service-card:hover .service-card-content {
    opacity: 0;
    transform: scale(0.95);
}

.service-card-overlay-text {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--gray-900);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* =====================================================
   Gallery Modal
   ===================================================== */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.gallery-modal-content {
    background: var(--white);
    border-radius: 24px;
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--gray-900);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(247, 198, 148, 0.4);
}

.gallery-modal-close:hover {
    opacity: 0.9;
    transform: rotate(90deg) scale(1.1);
}

.gallery-modal-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-primary);
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1rem;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: var(--white);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 32px rgba(247, 198, 148, 0.3);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-caption {
    padding: 1rem;
    background: var(--white);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* =====================================================
   Lightbox
   ===================================================== */
.lightbox-image-container {
    max-height: 85vh;
    max-width: 90vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image {
    max-height: 80vh;
    max-width: 90vw;
    object-fit: contain;
    border-radius: 8px;
}

#lightbox-container {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#lightbox-prev,
#lightbox-next {
    -webkit-user-select: none;
    user-select: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(247, 198, 148, 0.9);
    color: var(--gray-900);
    border: none;
    font-size: 2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

#lightbox-prev:hover:not(.cursor-not-allowed),
#lightbox-next:hover:not(.cursor-not-allowed) {
    background: var(--primary);
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(247, 198, 148, 0.5);
}

#lightbox-prev.opacity-30,
#lightbox-next.opacity-30 {
    pointer-events: none;
    opacity: 0.3;
}

#lightbox-close {
    transition: all 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
    background: rgba(247, 198, 148, 0.9) !important;
    color: var(--gray-900) !important;
    font-weight: bold;
}

#lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: var(--primary) !important;
    box-shadow: 0 8px 20px rgba(247, 198, 148, 0.5);
}

#lightbox-counter {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.1rem;
    color: var(--white);
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1.5rem;
    border-radius: 24px;
    backdrop-filter: blur(8px);
}

.lightbox-thumbnail {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 3px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    overflow: hidden;
}

.lightbox-thumbnail:hover {
    opacity: 1;
    transform: scale(1.08);
    border-color: var(--accent);
}

.lightbox-thumbnail.border-blue-600 {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(247, 198, 148, 0.3);
}

/* =====================================================
   Scroll Animations
   ===================================================== */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Always show on mobile/tablet */
@media (max-width: 1023px) {
    .section-reveal {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* =====================================================
   Form Styles
   ===================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-primary);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(247, 198, 148, 0.15);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-modal-content {
        padding: 2rem 1.5rem;
    }
    
    .gallery-modal-title {
        font-size: 1.75rem;
    }
    
    .lightbox-thumbnail {
        width: 70px;
        height: 70px;
    }
    
    #lightbox-prev,
    #lightbox-next {
        font-size: 1.5rem;
        padding: 0.75rem 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* =====================================================
   Scrollbar Styling
   ===================================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
    border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
    opacity: 0.8;
}

/* =====================================================
   Utility Classes
   ===================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

/* =====================================================
   Language Toggle - Elegant Style
   ===================================================== */
.lang-toggle {
    display: inline-flex;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--white);
    border: none;
    border-right: 1px solid var(--gray-300);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    color: var(--gray-700);
}

.lang-btn:last-child {
    border-right: none;
}

.lang-btn:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.lang-btn.active {
    background: var(--accent);
    color: var(--gray-900);
    font-weight: 600;
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-code {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .lang-btn {
        padding: 8px 14px;
    }
    
    .lang-flag {
        font-size: 1.125rem;
    }
    
    .lang-code {
        font-size: 0.8125rem;
    }
}


/* =====================================================
   Promotional Offer System (Polish Only)
   ===================================================== */

/* ===== Promotional Inline Display (Matches 3-column product grid width) ===== */
.promo-inline {
    display: none; /* Hidden by default, shown by JS */
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

.promo-inline.active {
    display: block;
}

.promo-inline-container {
    width: 100%; /* Match full container width like products grid */
    max-width: 100%;
    margin: 0 auto;
    background: var(--white);
    border: 3px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Close Button */
.promo-inline-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    z-index: 10;
    transition: all 0.2s ease;
}

.promo-inline-close:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Content Grid - Match product grid layout */
.promo-inline-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns like product cards */
    gap: 2rem;
    padding: 3rem;
    align-items: start;
}

/* Image Section */
.promo-inline-image {
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-50);
}

.promo-inline-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Text Section */
.promo-inline-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.promo-inline-title {
    font-size: 2.25rem; /* Larger, more readable */
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    line-height: 1.2;
}

.promo-inline-title i {
    color: var(--primary);
    font-size: 2rem;
}

.promo-inline-offer {
    background: rgba(247, 198, 148, 0.15);
    border: 3px solid var(--primary);
    border-radius: 12px;
    padding: 1.75rem;
}

.promo-inline-description {
    font-size: 1.125rem; /* Much more readable */
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0;
}

.promo-inline-description strong {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.promo-inline-specs {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    background: var(--gray-50);
}

.promo-inline-specs-title {
    font-size: 1.25rem; /* More readable */
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.promo-inline-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.promo-inline-specs-list li {
    color: var(--text-secondary);
    font-size: 1rem; /* More readable */
    line-height: 1.5;
}

.promo-inline-specs-list strong {
    color: var(--text-primary);
    font-weight: 600;
}

.promo-inline-deadline {
    background: var(--primary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    font-size: 1.125rem; /* More readable */
    color: var(--text-primary);
    font-weight: 600;
}

.promo-inline-deadline i {
    margin-right: 0.5rem;
}

.promo-inline-deadline strong {
    font-weight: 800;
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .promo-inline-content {
        gap: 1.75rem;
        padding: 2.5rem;
    }
    
    .promo-inline-title {
        font-size: 2rem;
    }
    
    .promo-inline-description {
        font-size: 1rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .promo-inline {
        margin-bottom: 2rem;
    }
    
    .promo-inline-container {
        border-radius: 12px;
    }
    
    .promo-inline-content {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
    
    .promo-inline-image {
        max-height: 300px;
        order: -1; /* Image first on mobile */
    }
    
    .promo-inline-image img {
        object-fit: contain;
    }
    
    .promo-inline-title {
        font-size: 1.75rem;
    }
    
    .promo-inline-title i {
        font-size: 1.5rem;
    }
    
    .promo-inline-description {
        font-size: 1rem;
    }
    
    .promo-inline-description strong {
        font-size: 1.1rem;
    }
    
    .promo-inline-specs-title {
        font-size: 1.1rem;
    }
    
    .promo-inline-specs-list li {
        font-size: 0.95rem;
    }
    
    .promo-inline-deadline {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .promo-inline-content {
        padding: 1.5rem 1rem;
        gap: 1.25rem;
    }
    
    .promo-inline-title {
        font-size: 1.5rem;
    }
    
    .promo-inline-offer {
        padding: 1.25rem;
    }
    
    .promo-inline-specs {
        padding: 1.25rem;
    }
}

/* =====================================================
   MOBILE IFRAME OPTIMIZATION
   Fixes for when drewnianeplacezabaw.com is embedded 
   in woodenplaygrounds.eu iframe on mobile devices
   ===================================================== */

/* Base iframe detection class (added via JavaScript) */
body.in-iframe {
    /* Prevent horizontal scrolling issues in iframe */
    overflow-x: hidden;
    max-width: 100vw;
}

/* Mobile-specific iframe optimizations */
@media (max-width: 768px) {
    body.in-iframe-mobile {
        /* Force full width in mobile iframe */
        min-width: 100vw;
        width: 100vw !important;
    }
    
    /* Fix container widths in mobile iframe */
    .in-iframe-mobile .container {
        max-width: 100% !important;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Navigation fixes for mobile iframe */
    .in-iframe-mobile nav {
        /* Use sticky instead of fixed - works better in iframe */
        position: sticky;
        top: 0;
    }
    
    /* Ensure nav doesn't overflow in iframe */
    .in-iframe-mobile nav .container {
        width: 100%;
    }
    
    /* Hero section optimization in mobile iframe */
    .in-iframe-mobile .hero-bg {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    
    /* Product grid optimization in mobile iframe */
    .in-iframe-mobile #products-grid {
        grid-template-columns: 1fr; /* Single column on mobile iframe */
    }
    
    /* Product cards in mobile iframe */
    .in-iframe-mobile .product-card {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Modal optimization in mobile iframe */
    .in-iframe-mobile .product-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
    }
    
    .in-iframe-mobile .product-modal-content {
        flex-direction: column;
        overflow-y: auto;
    }
    
    /* Images optimization in mobile iframe */
    .in-iframe-mobile img {
        max-width: 100%;
        height: auto;
    }
    
    /* Font size adjustments for better readability in mobile iframe */
    .in-iframe-mobile h1 {
        font-size: 2rem;
    }
    
    .in-iframe-mobile h2 {
        font-size: 1.75rem;
    }
    
    /* Contact form optimization in mobile iframe */
    .in-iframe-mobile #contact-form input,
    .in-iframe-mobile #contact-form textarea {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Touch target optimization for mobile iframe */
    .in-iframe-mobile button,
    .in-iframe-mobile a.btn-primary,
    .in-iframe-mobile .lang-btn {
        min-height: 44px; /* iOS recommended touch target */
        min-width: 44px;
    }
}

/* Extra small mobile devices in iframe (< 480px) */
@media (max-width: 480px) {
    .in-iframe-mobile .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .in-iframe-mobile .hero-bg h1 {
        font-size: 1.75rem;
    }
    
    .in-iframe-mobile .hero-bg p {
        font-size: 1rem;
    }
}

/* Landscape mode optimization for mobile iframe */
@media (max-width: 768px) and (orientation: landscape) {
    .in-iframe-mobile .hero-bg {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 2rem;
    }
}

/* iOS Safari specific fixes for iframe */
@supports (-webkit-touch-callout: none) {
    .in-iframe-mobile {
        /* Fix for iOS Safari 100vh issue in iframe */
        min-height: -webkit-fill-available;
    }
    
    .in-iframe-mobile .hero-bg {
        min-height: -webkit-fill-available;
    }
}

/* Android Chrome specific optimizations */
@media screen and (max-width: 768px) {
    .in-iframe-mobile {
        /* Improve touch scrolling on Android */
        -webkit-overflow-scrolling: touch;
        touch-action: manipulation;
    }
}

/* ===================================================================
   YOUTUBE MODAL (Polish only)
   =================================================================== */

/* Hide regulations link and YouTube link on English site */
.regulations-link,
.youtube-link-container {
    display: none !important;
}

/* Show only on Polish site (controlled by JavaScript) */
body[data-lang="pl"] .regulations-link {
    display: inline-block !important;
}

/* Mobile menu regulations link needs block display */
body[data-lang="pl"] #mobile-menu .regulations-link {
    display: block !important;
}

body[data-lang="pl"] .youtube-link-container {
    display: flex !important;
}

/* YouTube Modal Overlay */
.youtube-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.youtube-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Dark overlay background */
.youtube-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

/* Modal container */
.youtube-modal-container {
    position: relative;
    z-index: 10001;
    width: 90%;
    max-width: 1000px;
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.youtube-modal.active .youtube-modal-container {
    transform: scale(1);
}

/* Close button */
.youtube-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
}

.youtube-modal-close:hover {
    background: var(--accent);
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* Modal title */
.youtube-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* YouTube embed container (16:9 aspect ratio) */
.youtube-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.youtube-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .youtube-modal-container {
        width: 95%;
        padding: 1.5rem;
    }
    
    .youtube-modal-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .youtube-modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .youtube-modal-container {
        width: 98%;
        padding: 1rem;
        border-radius: 12px;
    }
    
    .youtube-modal-title {
        font-size: 1.25rem;
    }
}

/* Prevent body scroll when modal is open */
body.youtube-modal-open {
    overflow: hidden;
}

/* Animation for modal content */
@keyframes youtubeModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.youtube-modal.active .youtube-modal-content {
    animation: youtubeModalSlideIn 0.4s ease;
}

