@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto:wght@400;500;700&family=Montserrat:wght@400;500;600;700&display=swap');

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

html {
    height: 100%;
}

body {
    font-family: 'Inter', 'Roboto', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

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

/* Header */
header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 24px 0;
    margin-bottom: 0;
    width: 100%;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

header h1 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.header-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header-logo-link:hover {
    opacity: 0.8;
}

.header-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

nav a:hover {
    color: #667eea;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 120px 0;
    margin-bottom: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Декоративні полоски */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(26, 26, 26, 0.03) 40px,
            rgba(26, 26, 26, 0.03) 80px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(26, 26, 26, 0.02) 40px,
            rgba(26, 26, 26, 0.02) 80px
        );
    animation: patternMove 20s linear infinite;
    pointer-events: none;
}

/* Декоративні кола */
.hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 26, 26, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
    pointer-events: none;
}

/* Додаткові декоративні елементи через псевдоелемент контейнера */
.hero-content::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(26, 26, 26, 0.08);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.hero-content::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    border: 2px solid rgba(26, 26, 26, 0.06);
    border-radius: 50%;
    animation: rotate 25s linear infinite reverse;
    pointer-events: none;
}

@keyframes patternMove {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(80px) translateY(80px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(26, 26, 26, 0.08);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.hero-content::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    border: 2px solid rgba(26, 26, 26, 0.06);
    border-radius: 50%;
    animation: rotate 25s linear infinite reverse;
    pointer-events: none;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    animation: expandLine 1.5s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-30px) translateX(20px);
    }
    66% {
        transform: translateY(20px) translateX(-15px);
    }
}


/* Main Content */
main {
    background: #ffffff;
    padding: 0;
    margin-bottom: 120px;
    padding-bottom: 40px;
    flex-grow: 1;
}

.section-title {
    color: #1a1a1a;
    margin-bottom: 60px;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 0;
    margin-bottom: 60px;
    align-items: stretch;
}

/* Product Card */
.product-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f0f0f0;
    opacity: 0;
    animation: fadeInScale 0.6s ease-out forwards;
    cursor: pointer;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(n+7) { animation-delay: 0.7s; }

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

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: #fafafa;
    padding: 24px;
    transition: opacity 0.3s ease;
    display: none;
}

.product-image.active {
    display: block;
}

.product-card-single-image {
    width: 100%;
    height: 280px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-single {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    box-sizing: border-box;
    transition: transform 0.4s ease;
}

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

.product-card-slider {
    position: relative;
    width: 100%;
    height: 280px;
    background: #fafafa;
    overflow: hidden;
}

.product-card-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.product-card-images .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    box-sizing: border-box;
}

.product-card-slider-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 5;
}

.product-card-slider-btn {
    background: rgba(26, 26, 26, 0.7);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.product-card-slider-btn:hover {
    background: rgba(26, 26, 26, 0.9);
    transform: scale(1.1);
}

.product-card-slider-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.product-card-slider-dots .slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card-slider-dots .slider-dot:hover {
    background: #999;
    transform: scale(1.2);
}

.product-card-slider-dots .slider-dot.active {
    background: #1a1a1a;
    width: 24px;
    border-radius: 4px;
}

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

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.4;
}

.product-description {
    display: block;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin: 0;
}

.product-price-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 20px;
}

.btn-add-to-cart {
    flex: 1;
    padding: 14px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add-to-cart:hover::before {
    width: 300px;
    height: 300px;
}

.product-card:hover .btn-add-to-cart {
    background: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-add-to-cart:active {
    transform: scale(0.98);
}

.btn-add-to-cart.added {
    background: #4caf50;
}

/* Cart */
.cart-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 6px;
    background: #fafafa;
    padding: 12px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.cart-item-price {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 16px;
}

.cart-item-quantity {
    color: #666;
    font-size: 14px;
    margin-top: 4px;
}

.cart-item-total {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-right: 24px;
}

.btn-remove {
    padding: 10px 20px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-remove:hover {
    background: #d32f2f;
}

.cart-total {
    margin-top: 40px;
    padding: 32px 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.cart-total::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.cart-total-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.cart-total-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.cart-total-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 500;
}

.cart-total-price {
    color: #4caf50;
    font-size: 36px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    line-height: 1.2;
}

#total-price {
    color: #4caf50;
}

.btn-pay {
    padding: 16px 40px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-pay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-pay:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.btn-pay:hover::before {
    width: 300px;
    height: 300px;
}

.btn-pay:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.4);
}

.btn-pay:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-pay-icon {
    font-size: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-pay:hover .btn-pay-icon {
    transform: scale(1.2) rotate(5deg);
}

.btn-pay:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.empty-cart p {
    font-size: 18px;
    margin-bottom: 24px;
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

.product-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.product-modal-content {
    background-color: white;
    margin: auto;
    padding: 0;
    border-radius: 12px;
    width: 600px;
    height: 600px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: row;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    animation: modalSlideIn 0.4s ease forwards;
}

@keyframes modalSlideIn {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.product-modal-close {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 32px;
    font-weight: bold;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
    border: 1px solid #f0f0f0;
}

.product-modal-close:hover {
    background: #f5f5f5;
}

.product-modal-image-container {
    width: 35%;
    height: 100%;
    overflow: hidden;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 15px;
    box-sizing: border-box;
}

.product-modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Слайдер зображень */
.product-image-slider {
    width: 35%;
    height: 100%;
    background: #fafafa;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.slider-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.slider-images {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: block;
}

.product-modal-image.active {
    opacity: 1;
    position: relative;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
}

.slider-btn:hover {
    background: rgba(26, 26, 26, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn-prev {
    left: 20px;
}

.slider-btn-next {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: white;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: #999;
    transform: scale(1.2);
}

.slider-dot.active {
    background: #1a1a1a;
    width: 30px;
    border-radius: 5px;
}

.product-modal-details {
    padding: 40px;
    width: 65%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
}

.product-modal-name {
    color: #1a1a1a;
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.product-modal-price {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.product-modal-description {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.product-modal-description h3 {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-modal-description p {
    color: #666;
    line-height: 1.7;
    font-size: 16px;
}

.product-modal-actions {
    margin-top: auto;
}

.btn-add-to-cart-modal {
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.3px;
}

.btn-add-to-cart-modal:hover {
    background: #667eea;
}

.btn-add-to-cart-modal.added {
    background: #4caf50;
}

/* Footer */
footer {
    background: #2a2a2a;
    padding: 60px 0 30px;
    text-align: center;
    color: #ffffff;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 40px;
    text-align: left;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #ffffff;
}

footer > .container > p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Cart Button */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: visible;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

.floating-cart-btn:active {
    transform: scale(0.95);
}

.cart-icon {
    font-size: 28px;
    transition: transform 0.3s ease;
}

.floating-cart-btn:hover .cart-icon {
    transform: scale(1.2);
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.5);
    animation: bounceIn 0.3s ease;
}

.floating-cart-btn:hover .cart-count-badge,
.cart-count-badge.show {
    display: flex;
}

.cart-count-badge:empty {
    display: none;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Delivery Modal */
.delivery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

.delivery-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.delivery-modal-content {
    background-color: white;
    margin: auto;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    animation: modalSlideIn 0.4s ease forwards;
}

.delivery-modal-content h2 {
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.delivery-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
    border: 1px solid #f0f0f0;
}

.delivery-modal-close:hover {
    background: #f5f5f5;
}

.delivery-modal-content .form-group {
    margin-bottom: 20px;
}

.delivery-modal-content label {
    display: block;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
}

.delivery-modal-content input,
.delivery-modal-content textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.delivery-modal-content input:focus,
.delivery-modal-content textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.delivery-modal-content textarea {
    resize: vertical;
    min-height: 80px;
}

.delivery-info {
    background: #f5f7fa;
    padding: 16px;
    border-radius: 8px;
    margin: 24px 0;
}

.delivery-info p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin: 8px 0;
}

.delivery-info p:first-child {
    margin-top: 0;
}

.delivery-info p:last-child {
    margin-bottom: 0;
}

.btn-pay-modal {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.btn-pay-modal:hover:not(:disabled) {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.btn-pay-modal:active:not(:disabled) {
    transform: translateY(0);
}

.btn-pay-modal:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Footer Modal */
.footer-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.footer-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-modal-content {
    background-color: white;
    margin: auto;
    padding: 40px;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.footer-modal-close {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 32px;
    font-weight: bold;
    color: #1a1a1a;
    cursor: pointer;
    transition: color 0.2s;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-modal-close:hover {
    color: #667eea;
}

#footer-modal-body h2 {
    color: #1a1a1a;
    margin-bottom: 24px;
    font-size: 28px;
    font-weight: 700;
}

#footer-modal-body h3 {
    color: #1a1a1a;
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

#footer-modal-body p {
    line-height: 1.7;
    margin-bottom: 16px;
    color: #666;
    font-size: 15px;
}

#footer-modal-body ul {
    list-style-type: none;
    padding-left: 0;
}

#footer-modal-body ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

#footer-modal-body ul li:last-child {
    border-bottom: none;
}

#footer-modal-body a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

#footer-modal-body a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

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

    header .container {
        flex-direction: column;
        gap: 16px;
    }

    nav {
        gap: 20px;
    }

    .hero-section {
        padding: 60px 0;
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

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

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .product-modal-content {
        flex-direction: column;
        width: 95%;
        height: auto;
        max-height: 90vh;
    }
    
    .product-modal-image-container,
    .product-image-slider {
        width: 100%;
        min-width: auto;
        height: 250px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .slider-btn-prev {
        left: 10px;
    }
    
    .slider-btn-next {
        right: 10px;
    }

    .product-modal-details {
        width: 100%;
        padding: 24px 20px;
        height: auto;
    }

    .product-modal-name {
        font-size: 24px;
    }

    .product-modal-price {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .floating-cart-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .cart-icon {
        font-size: 24px;
    }
    
    .cart-count-badge {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
    .cart-total {
        padding: 24px 20px;
    }
    
    .cart-total-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .cart-total-info {
        text-align: center;
    }
    
    .cart-total-price {
        font-size: 32px;
    }
    
    .btn-pay {
        width: 100%;
        justify-content: center;
    }
}
