:root {
    --primary-color: #ff4e50;
    --primary-dark: #d63031;
    --secondary-color: #f9cb28;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --font-family: 'Geomanist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@font-face {
    font-family: 'Geomanist';
    src: url('../fonts/geomanist-regular.woff2') format('woff2'),
         url('../fonts/geomanist-regular.woff') format('woff'),
         url('../fonts/geomanist-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Geomanist-Fallback';
    src: local('Arial'), local('Helvetica'), local('sans-serif');
    font-weight: 400;
    font-style: normal;
}

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

html, body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 320px;
    overflow-x: hidden;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    overflow: visible;
}

.header {
    background-color: #fff;
    border-bottom: 2px solid var(--primary-color);
    z-index: 1000;
    min-height: 60px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 15px;
    overflow: visible;
    min-height: 60px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 120px;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #ff4e50;
    margin: 0;
	text-transform: uppercase;
}

.phone-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.phone-icon {
    width: 40px;
    height: 40px;
    background: #ff4e50;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.phone-details {
    display: flex;
    flex-direction: column;
}

.phone-label {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

.phone-number {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.phone-link {
    color: inherit;
    text-decoration: none;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    overflow: visible;
}

.phone-action-link {
    display: none;
}

@media (max-width: 768px) {
    .phone-action-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: var(--primary-color);
        border-radius: 10%;
        color: white;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .phone-action-link:hover {
        background: var(--primary-dark);
        transform: scale(1.05);
    }
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #ff4e50;
    border: none;
    width: 36px;
    height: 36px;
    text-decoration: none;
    border-radius: 10%;
    margin-right: 10px;
}

.cart-link:hover {
    background: #e04446;
    color: white;
}

.cart-icon {
    width: 28px;
    height: 28px;
}

.cart-badge {
    position: absolute;
    background: #ff4d4f;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    font-weight: 500;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 24px;
    height: 24px;
    font-size: 14px;
    top: 5px;
    right: -15px;
    border-width: 1.5px;
    box-shadow: 0 0 0 2px #ffffff;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 24px;
    cursor: pointer;
}

.header-bottom {
    position: relative;
}

.header-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: #eee;
    z-index: 1;
}

.main-nav ul {
    display: flex;
    padding: 10px 0;
}

.main-nav li {
    position: relative;
}

.main-nav li a {
    padding: 10px 15px;
    display: block;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav li a:hover {
    color: var(--primary-color);
}

.main-nav li.has-dropdown > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    border-radius: 4px;
    display: none;
    z-index: 1000;
}

.main-nav li:hover .dropdown {
    display: block;
}

.dropdown li a {
    padding: 10px 15px;
    display: block;
    color: var(--dark-color);
    font-weight: normal;
}

.dropdown li a:hover {
    background-color: #f5f5f5;
}

.nav-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}

.desktop-nav {
    flex: 1;
    margin: 0 20px;
}

.horizontal-menu {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    justify-content: center;
}

.menu-item {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    position: relative;
}

.menu-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: #e9ecef;
}

/* Footer menülerinde ayırıcı çizgileri kaldır */
.footer-nav .menu-item::after,
.footer-links .menu-item::after {
    display: none;
}

/* Footer menü elemanları için düzenlemeler */
.footer-nav .menu-item,
.footer-links .menu-item {
    position: relative;
    padding: 0;
    margin: 0;
}

.footer-nav .menu-item a,
.footer-links .menu-item a {
    display: block;
    padding: 5px 0;
}

/* Footer menü hover stillerini düzelt */
.footer-nav .menu-item:hover,
.footer-links .menu-item:hover {
    background: transparent !important;
}

.footer-nav .menu-item:hover a,
.footer-links .menu-item:hover a {
    color: var(--primary-color);
    background: transparent;
}

.menu-item:last-child::after {
    display: none;
}

.menu-item:hover {
    background: white;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .header {
        position: sticky;
        top: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 50%;
        font-size: 16px;
        cursor: pointer;
        order: 1;
        color: #333;
        font-weight: normal;
    }

    .mobile-menu-toggle i {
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 16px;
        color: #333;
    }

    .mobile-menu-toggle:hover {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .mobile-menu-toggle:hover i {
        color: white;
    }

    .logo {
        order: 2;
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    .user-actions {
        order: 3;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }
    
    .mobile-menu-toggle {
        order: 1;
        flex-shrink: 0;
    }
    
    .logo {
        order: 2;
        flex: 1;
        text-align: center;
    }
    
    .phone-info {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        order: 3;
    }
    
    .phone-info .phone-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .phone-info .phone-details {
        display: flex;
        flex-direction: column;
    }
    
    .phone-info .phone-label {
        font-size: 10px;
        color: #666;
    }
    
    .phone-info .phone-number {
        font-size: 12px;
        font-weight: 600;
        color: #333;
    }

    .header-bottom {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-column.footer-logo {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
}

.products-section {
    padding: 20px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 0px;
    min-height: 320px;
    will-change: contents;
    transform: translateZ(0);
}

.product-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    will-change: transform;
    min-height: 320px;
    width: 100%;
    display: flex;
    flex-direction: column;
}



.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff4e50, #e63946);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 78, 80, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.product-image {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
    background: #f5f5f5;    
    flex-shrink: 0;
}

.product-image::before {
    content: '';
    display: block;
    padding-top: 100%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: all 0.3s ease;
    will-change: transform;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #ccc;
    font-size: 36px;
}

.image-divider {
    height: 1px;
    background: linear-gradient(to right, transparent 12px, #e0e0e0 20px, #e0e0e0 calc(100% - 20px), transparent calc(100% - 12px));
    margin: 0;
}

.product-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.4;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-title-simple {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    line-height: 2.2;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    height: 30px;
    flex-shrink: 0;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    width: 100%;
}

.package-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff4e50;
    flex-shrink: 0;
    white-space: nowrap;
}

.product-price-simple {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 0px;
}

.product-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.product-left {
    flex: 1;
    min-width: 0;
}

.product-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.free-shipping-badge {
    background: #d32f2f;
    color: white;
    font-size: 10px;
    font-weight: 500;
    padding: 3px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    font-family: var(--font-family);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.product-actions {
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: center;
    margin-top: 0px;
    width: 100%;
    height: 46px;
    flex-shrink: 0;
}

.product-actions .cta-button {
    flex: 1;
    background: #d32f2f;
    color: white;
    border: none;
    padding: 12px 8px;
    border-radius: 0 0 5px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.product-actions .cta-button:hover {
    background: var(--primary-dark);
}

.btn-add-cart {
    flex: 1;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 8px;
    border-radius: 0 0 0 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-buy-now {
    flex: 1;
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 12px 8px;
    border-radius: 0 0 5px 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-cart i,
.btn-buy-now i {
    font-size: 12px;
}

.btn-add-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-add-cart:disabled:hover {
    transform: none;
    box-shadow: none;
}

.box-count-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff4e50, #e63946);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(255, 78, 80, 0.3);
    white-space: nowrap;
}

.package-savings {
    position: absolute;
    top: 6px;
    right: 12px;
    background: #d4edda;
    color: #155724;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid #c3e6cb;
    z-index: 2;
    white-space: nowrap;
}

.btn-buy-now.full-width {
    flex: 1;
    width: 100%;
    border-radius: 0 0 5px 5px;
}

.product-image[onclick] {
    transition: transform 0.3s ease;
}

.product-image[onclick]:hover {
    transform: scale(1.02);
}

.product-title-simple[onclick]:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.product-location {
    font-size: 14px;
    color: #666;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
    margin: 40px 0;
}

.no-products i {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 24px;
    color: #6c757d;
    margin-bottom: 12px;
}

.no-products p {
    font-size: 16px;
    color: #adb5bd;
}

.load-more-section {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
    min-height: 50px;
}

.btn-load-more {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    transform: translateZ(0);
}

.btn-load-more:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.loading-indicator {
    color: #666;
    font-size: 14px;
    padding: 12px;
}

.loading-indicator i {
    margin-right: 8px;
    color: var(--primary-color);
}

.scroll-trigger {
    visibility: hidden;
    height: 10px;
    width: 100%;
}

.banner-section {
        margin-bottom: 30px;
    padding: 0 0px;
}

.banner-grid {
    display: grid;
        gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-item {
    position: relative;
        height: auto;
    border-radius: 8px;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.banner-item:hover {
    opacity: 0.85;
}

.banner-item a {
        display: block;
        width: 100%;
        height: 100%;
    }
    
.banner-image {
        width: 100%;
    height: 100%;
    object-position: center;
    border-radius: 8px;
}

.promo-banner {
    background: var(--primary-color);
    color: white;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.promo-wrapper {
    width: 100%;
    position: relative;
}

.promo-text-container {
    display: flex;
    animation: scroll 25s linear infinite;
    white-space: nowrap;
    min-width: 200%;
}

.promo-text-container span {
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .promo-banner {
        padding: 6px 0;
    }
    
    .promo-text-container span {
        padding: 0 30px !important;
        font-size: 14px !important;
    }
}

.footer {
    background: #202020;
    color: #fff;
    padding: 40px 0 0;
    margin-top: 0;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links-wrapper {
    display: contents;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.footer-description {
    color: #fff;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    opacity: 0.9;
}

.footer-column-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-style: normal;
}

.contact-item i {
    width: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
    font-size: 16px;
    text-align: center;
}

.contact-link,
.contact-text {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-style: normal;
    font-weight: normal;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-link span {
    font-style: normal;
    font-weight: normal;
}

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

.footer-bottom {
    background: var(--primary-color);
    margin-top: 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
}

.payment-label {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.payment-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.cart-modal-overlay.show {
    display: flex;
}

.cart-modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.cart-modal-header .modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.close-btn:hover {
    background: #f5f5f5;
    color: var(--dark-color);
}

.close-btn:hover i {
    transform: rotate(90deg);
}

.cart-modal-content {
    padding: 0;
    max-height: calc(80vh - 180px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cart-modal-content::-webkit-scrollbar {
    display: none;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.loading i {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
}

.empty-cart i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.empty-cart h4 {
    margin: 0 0 10px;
    color: var(--dark-color);
}

.empty-cart p {
    margin: 0 0 20px;
    color: #999;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.quantity-display {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    min-width: 60px;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    font-size: 24px;
}

.remove-btn {
    background: #f8f9fa;
    border: none;
    color: #6b6b6b;
    cursor: pointer;
    font-size: 12px;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: #ffe6e6;
    color: var(--danger-color);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cart-total-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

.cart-total-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-actions {
    display: flex;
    gap: 8px;
}

.btn-outline {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #bbb;
    color: #333;
}

.btn-primary {
    flex: 1;
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}


.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-package {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cart-item-quantity button {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-item-quantity button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.cart-item-quantity span {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    min-width: 30px;
    text-align: center;
}

.cart-item-total {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    flex-shrink: 0;
    text-align: right;
}

.cart-item-remove {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: #ffe6e6;
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.cart-summary {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f1f1f1;
}

.cart-items::-webkit-scrollbar {
    width: 4px;
}

.cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.btn-secondary {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    font-family: var(--font-family);
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #bbb;
    color: #333;
}

.price {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .cart-items {
        max-height: 400px;
        padding-left: 2px;   
        padding-right: 2px;
    }
    
    .cart-item-quantity {
        gap: 6px;
    }
    
    .cart-item-quantity button {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .cart-item-quantity span {
        font-size: 12px;
        min-width: 25px;
    }
    
    .cart-item-total {
        font-size: 14px;
    }
    
    .cart-item-remove {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .cart-summary {
        padding: 15px;
    }
    
    .cart-total {
        font-size: 16px;
        margin-bottom: 12px;
    }
}

.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    z-index: 1000;
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.mobile-menu-overlay.show {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.show {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-header .menu-title {
    margin: 0;
    font-size: 18px;
    color: var(--primary-color);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.mobile-menu-close:hover {
    color: var(--primary-color);
}

.mobile-menu-content {
    padding: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f1f1f1;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.mobile-menu-link i {
    margin-right: 10px;
    width: 16px;
    color: #6c757d;
}

.phone-menu-item {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.mobile-phone-info {
    padding: 15px 20px;
}

.mobile-phone-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

.mobile-phone-number {
    margin-top: 5px;
}

.mobile-phone-link {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-phone-link:hover {
    color: var(--primary-dark);
}

.mobile-phone-link i {
    margin-right: 10px;
    width: 16px;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .user-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .user-actions .phone-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: var(--primary-color);
        color: white;
        border-radius: 50%;
        font-size: 14px;
        margin-right: 0;
        transition: all 0.3s ease;
    }
    
    .user-actions .phone-icon:hover {
        background: var(--primary-dark);
        transform: scale(1.05);
    }
    
    .user-actions .phone-details {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-actions .phone-label {
        font-size: 10px;
        margin-bottom: 2px;
        line-height: 1;
    }
    
    .user-actions .phone-number {
        margin-top: 0;
    }
    
    .user-actions .phone-link {
        font-size: 12px;
        font-weight: 600;
        line-height: 1;
    }
}

.mobile-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #eee;
    padding: 12px 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    animation: slideUp 0.3s ease-out;
}

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

.mobile-cart-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

.mobile-cart-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.mobile-cart-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.mobile-cart-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-cart-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.mobile-cart-total {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-cart-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.mobile-cart-button:hover {
    background: var(--primary-dark);
}

.mobile-cart-button i {
    font-size: 14px;
}

body.has-mobile-cart {
    padding-bottom: 70px;
}

@media (min-width: 769px) {
    .mobile-cart-bar {
        display: none !important;
    }
    
    body.has-mobile-cart {
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    body.has-mobile-cart {
        padding-bottom: 70px;
    }
    
    .footer-bottom {
        margin-bottom: 0;
        padding-bottom: 20px;
    }
    
    .mobile-cart-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #eee;
        padding: 12px 16px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        margin: 0;
    }
}

.promo-banner-container {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    font-family: var(--font-family);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.promo-banner-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.promo-banner-text {
    display: inline-flex;
    white-space: nowrap;
    animation: scrollText 60s linear infinite;
    transition: transform 0.3s ease;
}

.promo-message {
    padding: 0 30px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-column.footer-logo {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .footer .container {
        padding: 0 12px;
    }
    
    .footer-content {
        gap: 30px;
    }

    .footer-column.footer-logo {
        text-align: center;
    }

    .footer-links-wrapper {
        display: grid;
        gap: 20px;
    }

    .footer-column.footer-contact {
        text-align: center;
    }

    .footer-column {
        text-align: center;
        align-items: center;
    }

    .footer-column-title {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links li {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .footer .container {
        padding: 0 12px;
    }
}

@media (max-width: 360px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .container {
        padding: 0 6px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .footer .container {
        padding: 0 10px;
    }
    
    .header-top {
        padding: 6px 0;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .home-container .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .featured-section .product-grid,
    .latest-section .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .home-container .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .featured-section .product-grid,
    .latest-section .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.product-details-section {
    margin: 40px 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tab-content {
    padding: 0 30px;
}

.description-content h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
}

.toc-container {
    border-radius: 0;
    padding: 20px 30px;
    margin: 00px -30px 30px -30px;
    width: calc(100% + 60px);
    margin-left: -30px;
    position: relative;
}

.toc-container:nth-of-type(1) {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.toc-container .toc-title {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.toc-container .toc-title::before {
    content: '\f0ca';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 16px;
    line-height: 1;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 6px;
    font-size: 14px;
}

.toc-list li.level-1 { padding-left: 0px; }
.toc-list li.level-2 { padding-left: 20px; }
.toc-list li.level-3 { padding-left: 40px; }
.toc-list li.level-4 { padding-left: 60px; }
.toc-list li.level-5 { padding-left: 80px; }
.toc-list li.level-6 { padding-left: 100px; }

.toc-list a {
    color: #495057;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0px 0;
    transition: color 0.2s ease;
}

.toc-list a:hover {
    color: var(--primary-color);
}

.toc-number {
    font-weight: 600;
    color: #2c3e50;
    min-width: 6px;
    font-size: 13px;
}

.description-text {
    line-height: 1.8;
    color: #495057;
    margin-bottom: 30px;
    font-size: 15px;
    margin-top: 32px;
}

.description-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 20px 0 15px 0;
    line-height: 1.3;
}

.description-text h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 18px 0 12px 0;
    line-height: 1.3;
}

.description-text h3 {
    position: relative;
    padding-left: 30px;
    margin: 25px 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.description-text h3::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 16px;
    transition: transform 0.3s ease;
}

.description-text h3:hover::before {
    transform: translateY(-50%) translateX(5px);
}

.description-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 14px 0 8px 0;
    line-height: 1.3;
}

.description-text h5 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 12px 0 6px 0;
    line-height: 1.3;
}

.description-text h6 {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 10px 0 5px 0;
    line-height: 1.3;
}

.description-text p {
    margin: 0 0 15px 0;
    line-height: 1.8;
    color: #495057;
}

.description-text strong {
    font-weight: 700;
    color: #2c3e50;
}

.description-text em {
    font-style: italic;
    color: #6c757d;
}

.description-text ul {
    margin: 15px 0;
    padding-left: 25px;
    list-style-type: disc;
}

.description-text ol {
    margin: 15px 0;
    padding-left: 25px;
    list-style-type: decimal;
}

.description-text li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #495057;
    display: list-item;
}

.description-text blockquote {
    margin: 20px -30px;
    padding: 16px 30px;
    border-radius: 0;
    color: #495057;
    position: relative;
    width: calc(100% + 60px);
    margin-left: -30px;
}

.description-text blockquote:nth-child(odd) {
    background: #fff9f9;
    border-left: 3px solid var(--primary-color);
}

.description-text blockquote:nth-child(even) {
    background: #f0f8ff;
    border-left: 3px solid #007bff;
}

.description-text blockquote:nth-of-type(3n+1) {
    background: #f0fff0;
    border-left: 3px solid #28a745;
}

.description-text blockquote:nth-of-type(4n) {
    background: #fff8f0;
    border-left: 3px solid #fd7e14;
}

.description-text blockquote:nth-of-type(5n) {
    background: #f8f0ff;
    border-left: 3px solid #6f42c1;
}

.description-text blockquote p {
    margin: 0;
    line-height: 1.7;
}

.description-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.description-text a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.description-text code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e83e8c;
}

.description-text pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 15px 0;
    border: 1px solid #e9ecef;
}

.description-text pre code {
    background: transparent;
    padding: 0;
    color: #495057;
}

.description-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.description-text th,
.description-text td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.description-text th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.description-text tr:hover {
    background: #f8f9fa;
}

.description-text hr {
    border: none;
    height: 1px;
    background: #e9ecef;
    margin: 25px 0;
}

.description-text img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


@media (max-width: 768px) {
    .product-details-section {
        margin: 20px 0;
    }
    
    .tab-content {
        padding: 0 20px;
    }
    
    .toc-container {
        padding: 15px 20px;
        margin: 0px -20px 20px -20px;
        width: calc(100% + 40px);
        margin-left: -20px;
    }
    
    .toc-container .toc-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .toc-list li {
        margin-bottom: 4px;
        font-size: 13px;
    }
    
    .toc-number {
        font-size: 12px;
    }
    
    .description-text {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 0;
        margin-top: 0;
    }
    
    .description-text h1 {
        font-size: 22px;
    }
    
    .description-text h2 {
        font-size: 20px;
    }
    
    .description-text h3 {
        font-size: 18px;
        padding-left: 25px;
    }
    
    .description-text h4 {
        font-size: 16px;
    }
    
    .description-text blockquote {
        margin: 15px -20px;
        padding: 12px 20px;
        width: calc(100% + 40px);
        margin-left: -20px;
    }
}
.checkout-container {
    min-height: 100vh;
    background: #f8f9fa;
    padding: 40px 0;
}

.checkout-header {
    text-align: center;
    margin-bottom: 40px;
}

.checkout-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-family: var(--font-family);
    font-weight: 600;
}

     .checkout-header p {
     color: #6c757d;
     font-size: 16px;
     font-family: var(--font-family);
 }

 .alert {
     padding: 15px 20px;
     margin: 20px 0;
     border-radius: 8px;
     display: flex;
     align-items: center;
     gap: 10px;
     font-family: var(--font-family);
 }

 .alert-error {
     background: #f8d7da;
     color: #721c24;
     border: 1px solid #f5c6cb;
 }

 .alert i {
     font-size: 18px;
 }

     .checkout-content {
     display: grid;
     grid-template-columns: 1fr 450px;
     gap: 25px;
     margin-top: 40px;
 }

.checkout-form-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-section {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
}

     .section-title {
     background: #f8f9fa;
     padding: 20px 30px;
     margin: -30px -30px 20px -30px;
     font-size: 18px;
     font-weight: 600;
     color: #2c3e50;
     display: flex;
     align-items: center;
     gap: 10px;
     font-family: var(--font-family);
 }

 .section-title i {
     color: #ff4e50;
 }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    font-family: var(--font-family);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff4e50;
    box-shadow: 0 0 0 3px rgba(255, 78, 80, 0.1);
}

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

     .checkout-summary-section {
     position: sticky;
     top: 20px;
     height: fit-content;
 }

 .mobile-package-section {
     display: none;
 }

.order-summary {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.summary-title {
    background: #f8f9fa;
    padding: 20px 30px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-family);
}

.summary-title i {
    color: #ff4e50;
}

     .summary-items {
     padding: 30px;
     border-bottom: 1px solid #e9ecef;
 }

 .package-options-section {
     margin-top: 0;
     padding-top: 0;
     border-top: none;
 }

.package-options-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-family);
}

.package-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.package-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    background: white;
}

.package-option:hover {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.package-option.active {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.package-radio {
    display: flex;
    align-items: center;
    height: 100%;
}

.package-radio input {
    display: none;
}

.package-option .radio-custom {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    background: white;
}

.package-option .radio-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s ease;
    display: none;
    opacity: 0;
}

.package-option.active .radio-custom {
    border-color: #28a745;
    background: #28a745;
    border-width: 2px;
}

.package-option.active .radio-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    opacity: 1;
    z-index: 1;
}

.package-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.package-quantity {
    font-weight: 500;
    color: #495057;
    font-size: 13px;
    font-family: var(--font-family);
}

.package-price {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    font-family: var(--font-family);
}

.package-savings {
    position: absolute;
    top: 6px;
    right: 12px;
    background: #d4edda;
    color: #155724;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid #c3e6cb;
}

.summary-totals {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-family: var(--font-family);
}

.total-row:last-child {
    margin-bottom: 0;
}

.total-row.total {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    padding-top: 12px;
    border-top: 2px solid #e9ecef;
    margin-top: 12px;
}

.total-row .free {
    color: #28a745;
    font-weight: 500;
}

.free-shipping-info {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #c3e6cb;
}

.free-shipping-info i {
    color: #28a745;
}

 .order-actions {
      padding: 30px;
  }

.btn-order {
      width: 100%;
      background: linear-gradient(45deg, #ff4e50, #ff6b6b);
      color: white;
      border: none;
      padding: 16px 24px;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 500;
      font-family: var(--font-family);
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
  }

 .btn-order:hover {
     transform: translateY(-2px);
     box-shadow: 0 8px 25px rgba(255, 78, 80, 0.3);
 }

 .btn-order:disabled {
     background: #6c757d;
     cursor: not-allowed;
     transform: none;
     box-shadow: none;
 }



.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    min-height: 16px;
    display: none;
    animation: slideDown 0.3s ease;
    font-family: var(--font-family);
}

.error-message.show {
    display: block;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    animation: shake 0.5s ease-in-out;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.loading-content i {
    font-size: 40px;
    color: #ff4e50;
    margin-bottom: 20px;
}

.loading-content p {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-family);
}

     @media (max-width: 992px) {
     .checkout-content {
         grid-template-columns: 1fr;
         gap: 20px;
     }
     
     .checkout-form-section {
         order: 1;
     }
     
     .checkout-summary-section {
         position: static;
         order: 2;
     }
     
     .mobile-package-section {
         display: block !important;
     }
     
     .mobile-package-section.hidden {
         display: block !important;
     }
     
     .summary-items .package-options-section {
         display: none;
     }
     
     .form-row {
         grid-template-columns: 1fr;
         gap: 15px;
     }
     
     .form-section {
         padding: 20px;
     }
     
     .summary-title,
     .summary-totals,
     .order-actions {
         padding: 20px;
     }
 }

@media (max-width: 768px) {
    .checkout-container {
        padding: 15px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .checkout-content {
        gap: 15px;
    }
    
    .form-section {
        padding: 15px !important;
    }
    
             .section-title {
         font-size: 16px;
         margin: -15px -15px 15px -15px;
         padding: 15px 20px;
     }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .form-group textarea {
        min-height: 60px;
    }
    
    .form-row {
        gap: 10px;
        grid-template-columns: 1fr 1fr !important;
    }
    
    .form-row:has(.form-group #phone) {
        grid-template-columns: 1fr !important;
    }
    
             .summary-title,
     .summary-items,
     .summary-totals,
     .order-actions {
         padding: 15px !important;
     }
    
             .btn-order {
         padding: 12px 20px;
         font-size: 14px;
     }
}

@media (max-width: 480px) {
    .checkout-container {
        padding: 10px 0;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .form-section {
        padding: 12px !important;
    }
    
             .section-title {
         font-size: 15px;
         margin: -12px -12px 12px -12px;
         padding: 12px 15px;
     }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .form-group textarea {
        min-height: 50px;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px;
    }
    
    .form-row:has(.form-group #phone) {
        grid-template-columns: 1fr !important;
    }
    
             .summary-title,
     .summary-items,
     .summary-totals,
     .order-actions {
         padding: 12px !important;
     }
    
             .btn-order {
         padding: 12px 16px;
         font-size: 16px;
     }
}

.success-container {
    min-height: 80vh;
    background: #f8f9fa;
    padding: 60px 0;
    display: flex;
    align-items: center;
}

.success-content {
    text-align: center;
    margin: 0 auto;
    background: white;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.success-icon {
    margin-bottom: 30px;
}

.success-icon i {
    font-size: 80px;
    color: #28a745;
    animation: successPulse 1.5s ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-content h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 30px;
    font-family: var(--font-family);
    font-weight: 600;
}

.order-info {
    background: #e8f5e8;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid #c3e6cb;
}

.order-info p {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #155724;
    font-family: var(--font-family);
}

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

.order-info strong {
    font-size: 18px;
    color: #0c4128;
}

.success-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.detail-item i {
    font-size: 24px;
    color: #ff4e50;
    width: 40px;
    text-align: center;
}

.detail-item h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #2c3e50;
    font-family: var(--font-family);
    font-weight: 600;
}

.detail-item p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    font-family: var(--font-family);
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.success-actions .btn-primary {
    background: linear-gradient(45deg, #ff4e50, #ff6b6b);
    color: white;
}

.success-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 78, 80, 0.3);
}

.success-actions .btn-outline {
    background: transparent;
    color: #ff4e50;
    border-color: #ff4e50;
}

.success-actions .btn-outline:hover {
    background: #ff4e50;
    color: white;
    transform: translateY(-2px);
}

.error-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: #ff4e50;
    margin-bottom: 20px;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(255, 78, 80, 0.2);
}

.error-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.error-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-home, .btn-back {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-home {
    background: #ff4e50;
    color: white;
}

.btn-home:hover {
    background: #d63031;
    color: white;
    transform: translateY(-2px);
}

.btn-back {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
}

.btn-back:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

.error-suggestions {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    text-align: left;
}

.error-suggestions h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
}

.suggestions-list {
    list-style: none;
    padding: 0;
}

.suggestions-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestions-list i {
    color: #ff4e50;
    width: 20px;
    font-size: 14px;
}

.suggestions-list a {
    color: #007bff;
    text-decoration: none;
}

.suggestions-list a:hover {
    text-decoration: underline;
}

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

    .success-content {
        padding: 40px 20px;
    }

    .success-content h1 {
        font-size: 24px;
    }

    .success-icon i {
        font-size: 60px;
    }

    .success-actions {
        flex-direction: column;
        align-items: center;
    }

    .success-actions .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .error-code {
        font-size: 80px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .error-message {
        font-size: 16px;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-home, .btn-back {
        padding: 12px 24px;
        width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .success-content {
        padding: 30px 15px;
    }

    .detail-item {
        padding: 15px;
    }

    .order-info {
        padding: 20px 15px;
    }
}

.hidden {
    display: none !important;
}

.clickable {
    cursor: pointer;
}

.clickable:hover {
    opacity: 0.8;
}

.package-savingsx {
    position: absolute;
    top: -9px;
    right: 12px;
    background: #d4edda;
    color: #155724;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid #c3e6cb;
}