.summary-card--disabled {
    opacity: 0.6;
    pointer-events: none;
}

.cart-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.75rem;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scroll on mobile */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html, body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

.container,
.nav-container,
.hero-container,
.categories,
.featured-products,
.recommended-products,
.checkout-container,
.cart-style-two__container,
.blog-list,
.blog-post,
.product-detail-grid {
    padding-left: clamp(16px, 4vw, 24px);
    padding-right: clamp(16px, 4vw, 24px);
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #6366f1;
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #6366f1;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #6366f1;
    transition: width 0.3s ease;
}

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

.nav-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-icon {
    color: #333;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-icon:hover {
    color: #6366f1;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #fbbf24;
    color: #1f2937;
    border-color: #fbbf24;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fbbf24;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-image-placeholder i {
    font-size: 8rem;
    opacity: 0.3;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background: #f9fafb;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.category-icon i {
    font-size: 2rem;
    color: white;
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.category-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.category-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.category-link:hover {
    transform: translateX(5px);
}

/* Featured Products Section */
.featured-products {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 250px;
    background: #f9fafb;
    overflow: hidden;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.product-placeholder i {
    font-size: 3rem;
    color: #9ca3af;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    background: #10b981;
    z-index: 2;
}

.product-badge.sale {
    background: #ef4444;
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: #6366f1;
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #fbbf24;
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.8rem;
    color: #6b7280;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
}

.original-price {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.add-to-cart {
    width: 100%;
    background: #6366f1;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    padding: 60px 0;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.newsletter-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    min-width: 320px;
    flex: 1;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.newsletter-btn {
    background: #fbbf24;
    color: #1f2937;
    white-space: nowrap;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    
    margin: 0 auto 3rem;
    padding: 0 4rem 0 3rem;
    max-width: 1200px;
    width: 100%;
}

.footer-brand,
.footer-links,
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand p,
.footer-links ul,
.footer-newsletter p {
    margin: 0;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-brand .footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fbbf24;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

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

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links ul li a:hover {
    color: #fbbf24;
}

.footer-newsletter p {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fbbf24;
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: #6366f1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #6366f1;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    color: #9ca3af;
    padding: 1.5rem 4rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image-placeholder {
        width: 300px;
        height: 300px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

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

@media (max-width: 600px) {
    #cartItemsList .cart-item {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem;
    }

    #cartItemsList .cart-item img {
        flex: 0 0 72px;
        width: 72px;
        height: 72px;
        margin: 0;
    }

    #cartItemsList .product-info {
        flex: 1 1 calc(100% - 88px);
        min-width: 0;
    }

    #cartItemsList .product-name {
        font-size: 1rem;
        margin-bottom: 0.35rem;
    }

    #cartItemsList .product-meta {
        font-size: 0.85rem;
        margin-bottom: 0.65rem;
    }

    #cartItemsList .quantity-selector {
        margin-top: 0.5rem;
    }

    #cartItemsList .product-price-section {
        flex: 1 1 100%;
        align-items: flex-start;
        text-align: left;
        gap: 0.3rem;
    }

    #cartItemsList .product-price {
        font-size: 1.05rem;
    }

    #cartItemsList .product-original-price,
    #cartItemsList .line-total {
        font-size: 0.85rem;
    }

    #cartItemsList .remove-btn {
        align-self: flex-start;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .cart-style-two {
        padding-bottom: 160px;
        position: relative;
    }

    .cart-style-two__summary {
        position: static;
        width: 100%;
    }

    .cart-style-two .summary-card {
        position: static;
        background: rgba(248, 249, 250, 0.95);
        z-index: 2;
    }

    .cart-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 28px 25px 20px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
        background: rgba(248, 249, 250, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
        border-top: 1px solid rgba(226, 232, 240, 0.7);
        z-index: 1200;
    }

    .cart-cta .summary-continue {
        display: none;
    }

    .cart-cta .checkout-btn {
        box-sizing: border-box;
        order: 2;
        width: 100%;
        height: 60px;
        border-radius: 18px;
        background: linear-gradient(90deg, #1d4ed8, #2563eb);
        color: #fff;
        font-size: 1.1rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
        border: none;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        margin-top: 18px;
    }

    .cart-cta .checkout-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 32px rgba(37, 99, 235, 0.4);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

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

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

    .page-header-content h1 {
        font-size: 2rem;
    }

    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .view-toggle {
        margin-left: 0;
        justify-content: center;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-thumbnails {
        gap: 0.5rem;
        justify-content: center;
    }

    .thumbnail-item {
        flex: 0 0 60px;
        height: 60px;
    }

    .product-title-detail {
        font-size: 1.8rem;
    }

    .product-actions-detail {
        flex-direction: column;
    }

    .tab-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .cart-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }

    .item-quantity,
    .item-total {
        grid-column: 1 / -1;
        justify-self: start;
        margin-top: 1rem;
    }

    .item-total {
        text-align: left;
    }

    .cart-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .summary-card,
    .promo-code-card {
        padding: 1.5rem;
    }

    .security-badges {
        flex-direction: column;
        gap: 1rem;
    }

    .promo-input-group {
        flex-direction: column;
    }

    .checkout-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .steps-container {
        gap: 1rem;
    }

    .step:not(:last-child)::after {
        width: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .step-actions {
        flex-direction: column;
    }

    .success-actions {
        flex-direction: column;
    }

    .security-info {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.page-header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-top: 1rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    opacity: 0.6;
}

/* Filters Section */
.filters-section {
    background: #f9fafb;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.filters-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    min-width: 150px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.view-toggle {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

/* Products Section */
.products-section {
    padding: 3rem 0;
}

.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.list-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.list-view .product-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
}

.list-view .product-image {
    width: 150px;
    height: 150px;
    margin-right: 2rem;
    flex-shrink: 0;
}

.list-view .product-info {
    flex: 1;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Product Detail Styles */
.product-detail-section {
    padding: 120px 0 3rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    position: relative;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    background: #f9fafb;
}

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

.gallery-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.25rem 0;
}

.thumbnail-item {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.thumbnail-item:hover {
    border-color: #e5e7eb;
    transform: translateY(-2px);
}

.thumbnail-item.active {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-gallery {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #6366f1;
}

.product-info-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-title-detail {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.product-rating-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stars-large {
    font-size: 1.2rem;
}

.stars-large .fa-star.filled {
    color: #fbbf24;
}

.product-price-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-price-detail .current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

.product-price-detail .original-price {
    font-size: 1.5rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.discount {
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    /* Make sure very long words/strings don't break the layout */
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-description p {
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-features {
    background: #f9fafb;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.product-features h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.product-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #4b5563;
}

.product-features li i {
    color: #10b981;
    font-size: 1rem;
    width: 18px;
}

.product-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-options h4 {
    font-weight: 600;
    color: #1f2937;
}

.size-options,
.color-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-btn,
.color-btn {
    padding: 8px 16px;
    border: 2px solid #d1d5db;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.size-btn:hover,
.color-btn:hover,
.size-btn.active,
.color-btn.active {
    border-color: #6366f1;
    background: #6366f1;
    color: white;
}

.color-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-preview {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.in-stock {
    color: #10b981;
    font-weight: 600;
    font-size: 0.95rem;
}

.in-stock i {
    margin-right: 0.5rem;
}

.out-of-stock {
    color: #ef4444;
    font-weight: 600;
    font-size: 0.95rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-selector label {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.qty-btn {
    padding: 10px 16px;
    border: none;
    background: #f9fafb;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.2s ease;
    color: #4b5563;
}

.qty-btn:hover {
    background: #4f46e5;
    color: white;
}

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

#quantity {
    width: 70px;
    padding: 10px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
}

#quantity:focus {
    outline: none;
}

.product-actions-detail {
    display: flex;
    gap: 1rem;
}

.product-actions-detail .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.add-to-cart-detail {
    background: #4f46e5 !important;
    color: white !important;
    border: 2px solid #4f46e5 !important;
}

.add-to-cart-detail:hover {
    background: #4338ca !important;
    border-color: #4338ca !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.wishlist-btn-detail {
    background: white !important;
    color: #4f46e5 !important;
    border: 2px solid #4f46e5 !important;
}

.wishlist-btn-detail:hover {
    border-color: #4f46e5 !important;
    background: #f5f3ff !important;
    transform: translateY(-2px);
}

.shipping-info {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid #e2e8f0;
}

.shipping-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #64748b;
}

.shipping-item i {
    color: #4f46e5;
    font-size: 1.1rem;
    width: 20px;
}

/* Product Tabs */
.product-tabs {
    border-top: 1px solid #e5e7eb;
    padding-top: 3rem;
}

.tab-buttons {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.specs-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.specs-table td {
    padding: 1rem;
}

.spec-label {
    font-weight: 600;
    color: #374151;
    width: 30%;
}

.spec-value {
    color: #6b7280;
}

.reviews-summary {
    margin-bottom: 2rem;
}

.rating-breakdown {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.overall-rating {
    text-align: center;
}

.rating-score {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    display: block;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-weight: 600;
    color: #1f2937;
}

.review-date {
    color: #6b7280;
    font-size: 0.9rem;
    margin-left: 1rem;
}

.review-comment {
    color: #4b5563;
    line-height: 1.6;
}

.shipping-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.shipping-details ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.shipping-details li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

/* Related Products */
.related-products {
    padding: 4rem 0;
    background: #f9fafb;
}

/* Navigation Active State */
.nav-link.active {
    color: #6366f1;
}

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

.nav-icon.active {
    color: #6366f1;
}

/* Cart Page Styles */
.cart-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.cart-items {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.cart-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.clear-cart-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.clear-cart-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.cart-items-list {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto auto;
    gap: 1.5rem;
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
    transition: background 0.3s ease;
}

.cart-item:hover {
    background: #f9fafb;
}

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

.item-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
}

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

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

.item-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: color 0.3s ease;
    margin: 0;
}

.item-title:hover {
    color: #6366f1;
}

.item-options {
    display: flex;
    gap: 1rem;
}

.option {
    background: #e5e7eb;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #4b5563;
}

.item-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.item-price .current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.item-price .original-price {
    font-size: 0.95rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.item-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.action-link:hover {
    color: #6366f1;
}

.action-link:last-child:hover {
    color: #ef4444;
}

.item-quantity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.item-quantity label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
}

.item-total {
    text-align: right;
}

.total-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* Cart Summary */
.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-card,
.promo-code-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.summary-card h3,
.promo-code-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.promo-code-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-row.total {
    border-top: 2px solid #e5e7eb;
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
}

.free-shipping-notice {
    background: #ecfdf5;
    color: #059669;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.payment-methods {
    text-align: center;
    margin: 1.5rem 0;
}

.payment-methods p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.payment-icons i {
    font-size: 2rem;
    color: #6b7280;
    transition: color 0.3s ease;
}

.payment-icons i:hover {
    color: #6366f1;
}

.security-badges {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.security-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.security-item i {
    font-size: 1.5rem;
    color: #10b981;
}

.security-item span {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}

.promo-input-group {
    display: flex;
    gap: 0.5rem;
}

.promo-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.promo-input-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.promo-input-group .btn {
    white-space: nowrap;
    padding: 12px 20px;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.empty-cart-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 2rem;
}

.empty-cart h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Recommended Products */
.recommended-products {
    padding: 4rem 0;
    background: #f9fafb;
}

@media (max-width: 768px) {
    .recommended-products {
        padding-bottom: calc(4rem + env(safe-area-inset-bottom) + 88px);
    }
}

/* Button Outline Style */
.btn-outline {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.btn-outline:hover {
    background: #6366f1;
    color: white;
}

/* Checkout Page Styles */
.checkout-steps {
    background: #f9fafb;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 100%;
    width: 3rem;
    height: 2px;
    background: #d1d5db;
    z-index: 1;
}

.step.completed:not(:last-child)::after {
    background: #10b981;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #d1d5db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #6366f1;
}

.step.completed .step-number {
    background: #10b981;
}

.step span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    transition: color 0.3s ease;
}

.step.active span,
.step.completed span {
    color: #1f2937;
}

/* Checkout Section */
.checkout-section {
    padding: 3rem 0;
}

.checkout-container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    gap: 1.75rem;
    padding: 0 2.5rem;
}

/* Checkout Form */
.checkout-form {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-step {
    display: none;
    padding: 2rem;
}

.form-step.active {
    display: block;
}

.step-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.step-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.step-header h2 i {
    color: #6366f1;
}

.step-header p {
    color: #6b7280;
    font-size: 1rem;
}

.form-section {
    flex: 1.45;
    background: #fff;
    border-radius: 18px;
    padding: 2.75rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.form-section h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #1f2937;
}

.form-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 0.75rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid #d2d6dc;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.city-grid {
    grid-template-columns: 2fr 1fr 1fr;
}

.payment-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-options .option {
    flex: 1;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background-color: #f8fafc;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.payment-options .option.active,
.payment-options .option:hover {
    border-color: #2563eb;
    background-color: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

.card-element-wrapper {
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background-color: #fff;
}

.card-errors {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #dc2626;
}

.pay-button {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: 2rem;
}

.pay-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.summary-section {
    flex: 1.05;
    background: #f7fafc;
    border-radius: 18px;
    padding: 2.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    position: sticky;
    top: 6.5rem;
    align-self: flex-start;
}

.summary-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.75rem;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.summary-item img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

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

.summary-item .item-title {
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #1f2937;
}

.summary-item .item-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

.summary-item .item-total {
    font-weight: 600;
    color: #1f2937;
}

.summary-totals {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #4b5563;
}

.summary-row.total {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.summary-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 1.5rem;
}

.summary-note i {
    color: #10b981;
}

.checkout-toast {
    position: fixed;
    top: 90px;
    right: 24px;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    z-index: 1050;
}

.checkout-toast.visible {
    opacity: 1;
    transform: translateX(0);
}

.checkout-toast--success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.checkout-toast--error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@media (max-width: 1024px) {
    .checkout-container {
        flex-direction: column;
        padding: 0 1.75rem;
    }
}

@media (max-width: 640px) {
    .form-section,
    .summary-section {
        padding: 2.2rem 1.6rem;
    }

    .checkout-container {
        padding: 0 1.25rem;
    }
}

.checkout-grid-main {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-form-main {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-section-main {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f3f4f6;
}

.form-section-main:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title-main {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.form-grid-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group-main {
    display: flex;
    flex-direction: column;
}

.form-group-main.full {
    grid-column: 1 / -1;
}

.form-group-main label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.form-group-main input,
.form-group-main select {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    transition: all 0.2s;
    background: white;
}

.form-input-main {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    transition: all 0.2s;
    background: white;
}

.form-group-main input:focus,
.form-group-main select:focus,
.form-input-main:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.payment-method-main {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Payment Options */
.payment-options-main {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option-main {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.payment-option-main:hover {
    border-color: #6366f1;
}

.payment-option-main.active {
    border-color: #6366f1;
    background: #f0f4ff;
}

.payment-option-main i {
    font-size: 24px;
    color: #6b7280;
}

.payment-option-main.active i {
    color: #6366f1;
}

.payment-option-main div {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.order-summary-main {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.summary-title-checkout {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.order-item-checkout {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.order-item-checkout:last-of-type {
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1rem;
}

.item-image-checkout {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.item-name-checkout {
    font-weight: 500;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 0.25rem;
}

.item-quantity-checkout {
    font-size: 12px;
    color: #6b7280;
}

.item-price-checkout {
    font-weight: 600;
    color: #059669;
    font-size: 14px;
}

.summary-row-checkout {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 14px;
}

.summary-row-checkout.total {
    font-weight: 700;
    font-size: 16px;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 0.75rem;
}

.place-order-btn-checkout {
    width: 100%;
    padding: 16px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.place-order-btn-checkout:hover {
    background: #059669;
    transform: translateY(-1px);
}

.place-order-btn-checkout:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.security-note-checkout {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.security-note-checkout i {
    color: #10b981;
}

@media (max-width: 768px) {
    .checkout-grid-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .checkout-header-main h1 {
        font-size: 24px;
    }

    .progress-steps-main {
        gap: 0.5rem;
    }

    .step-circle-main {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .step-text-main {
        font-size: 12px;
    }

    .checkout-form-main,
    .order-summary-main {
        padding: 1.5rem;
    }

    .form-grid-main {
        grid-template-columns: 1fr;
    }

    .payment-method-main {
        flex-direction: column;
    }

    .order-summary-main {
        position: static;
    }
}

    /* Checkout page spacing */
    .checkout-grid-main {
        margin-bottom: 4rem;
    }

    @media (max-width: 768px) {
        .checkout-grid-main {
            margin-bottom: 3rem;
        }
    }

    /* Split Card Fields Layout */
    .split-card-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .split-card-number-wrapper {
        grid-column: 1 / -1;
    }

    .split-card-field-wrapper {
        position: relative;
    }

    .split-card-field {
        padding: 16px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        background: #ffffff !important;
        transition: all 0.2s ease;
    }

    .split-card-field iframe {
        background: #ffffff !important;
    }

    /* Remove yellow autofill background */
    .split-card-field input:-webkit-autofill,
    .split-card-field input:-webkit-autofill:hover,
    .split-card-field input:-webkit-autofill:focus {
        -webkit-box-shadow: 0 0 0 1000px white inset !important;
        -webkit-text-fill-color: #1f2937 !important;
        background-color: white !important;
    }

    .split-card-field:hover {
        border-color: #9ca3af;
    }

    .split-card-field.StripeElement--focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }

    .split-card-icons {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        gap: 4px;
        pointer-events: none;
    }

    .split-card-icon {
        width: 40px;
        height: 24px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    /* VISA Logo */
    .split-visa {
        background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg width="40" height="24" viewBox="0 0 40 24" fill="none" xmlns="http://www.w3.org/2000/svg"%3e%3crect width="40" height="24" rx="4" fill="%231A1F71"/%3e%3cpath d="M17.5 7h-2.5l-1.8 10h2.5l1.8-10zm7.8 6.5l1.3-3.6.8 3.6h-2.1zm2.8 3.5h2.3l-2-10h-2.1c-.5 0-.9.3-1.1.7l-3.7 9.3h2.6l.5-1.4h3.2l.3 1.4zm-6.5-3.3c0-2.6-3.6-2.8-3.6-4 0-.4.4-.8 1.2-.9.4 0 1.5-.1 2.8.5l.5-2.3c-.7-.2-1.6-.5-2.7-.5-2.5 0-4.3 1.3-4.3 3.2 0 1.4 1.2 2.2 2.2 2.6 1 .5 1.3.8 1.3 1.2 0 .6-.8 1-1.5 1-.9 0-2-.3-2.8-.7l-.5 2.4c.8.3 2.2.6 3.6.6 2.7 0 4.5-1.3 4.5-3.3zm-11.6-6.7l-4.1 10h-2.6l-2-7.7c-.1-.5-.3-.7-.7-.9-.7-.3-1.9-.6-2.9-.8l.1-.6h5c.6 0 1.2.4 1.3 1.1l1.2 6.4 3-7.5h2.7z" fill="white"/%3e%3c/svg%3e');
    }

    /* Mastercard Logo */
    .split-mastercard {
        background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg width="40" height="24" viewBox="0 0 40 24" fill="none" xmlns="http://www.w3.org/2000/svg"%3e%3crect width="40" height="24" rx="4" fill="white" stroke="%23E5E7EB"/%3e%3ccircle cx="15" cy="12" r="7" fill="%23EB001B"/%3e%3ccircle cx="25" cy="12" r="7" fill="%23FF5F00"/%3e%3cpath d="M20 6.5c-1.5 1.3-2.5 3.2-2.5 5.5s1 4.2 2.5 5.5c1.5-1.3 2.5-3.2 2.5-5.5s-1-4.2-2.5-5.5z" fill="%23FF5F00" opacity="0.5"/%3e%3c/svg%3e');
    }

    /* American Express Logo */
    .split-amex {
        background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg width="40" height="24" viewBox="0 0 40 24" fill="none" xmlns="http://www.w3.org/2000/svg"%3e%3crect width="40" height="24" rx="4" fill="%23006FCF"/%3e%3ctext x="20" y="16" font-family="Arial, sans-serif" font-size="10" font-weight="bold" fill="white" text-anchor="middle"%3eAMEX%3c/text%3e%3c/svg%3e');
    }

    /* Discover Logo */
    .split-discover {
        background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg width="40" height="24" viewBox="0 0 40 24" fill="none" xmlns="http://www.w3.org/2000/svg"%3e%3crect width="40" height="24" rx="4" fill="%23FF6000"/%3e%3ctext x="20" y="16" font-family="Arial, sans-serif" font-size="8" font-weight="bold" fill="white" text-anchor="middle"%3eDISCOVER%3c/text%3e%3c/svg%3e');
    }

    /* Diners Club Logo */
    .split-diners {
        background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg width="40" height="24" viewBox="0 0 40 24" fill="none" xmlns="http://www.w3.org/2000/svg"%3e%3crect width="40" height="24" rx="4" fill="%230079BE"/%3e%3ccircle cx="20" cy="12" r="7" stroke="white" stroke-width="2" fill="none"/%3e%3c/svg%3e');
    }

    /* JCB Logo */
    .split-jcb {
        background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg width="40" height="24" viewBox="0 0 40 24" fill="none" xmlns="http://www.w3.org/2000/svg"%3e%3crect width="40" height="24" rx="4" fill="%230066B2"/%3e%3ctext x="20" y="16" font-family="Arial, sans-serif" font-size="10" font-weight="bold" fill="white" text-anchor="middle"%3eJCB%3c/text%3e%3c/svg%3e');
    }

    /* UnionPay Logo */
    .split-unionpay {
        background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg width="40" height="24" viewBox="0 0 40 24" fill="none" xmlns="http://www.w3.org/2000/svg"%3e%3crect width="40" height="24" rx="4" fill="%23E21836"/%3e%3ctext x="20" y="16" font-family="Arial, sans-serif" font-size="9" font-weight="bold" fill="white" text-anchor="middle"%3eUP%3c/text%3e%3c/svg%3e');
    }

    .cvc-icon-checkout {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 16px;
        background: #6b7280;
        border-radius: 3px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 8px;
        color: white;
        font-weight: bold;
        pointer-events: none;
    }

    @media (max-width: 768px) {
        .split-card-container {
            grid-template-columns: 1fr;
        }
        
        .split-card-number-wrapper {
            grid-column: 1;
        }
    }

/* Blog Page */
.blog-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(236,72,153,0.12));
}

.blog-hero-content {
    max-width: 640px;
}

.blog-hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: #6366f1;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.blog-hero-title {
    font-size: clamp(2.5rem, 4vw, 3.25rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.blog-hero-subtitle {
    color: #6b7280;
    font-size: 1.05rem;
}

.blog-section {
    padding: 60px 0 120px;
}

.blog-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.blog-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.blog-card-meta {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.blog-card-title {
    font-size: 1.35rem;
    color: #1f2937;
    font-weight: 600;
}

.blog-card-excerpt {
    color: #6b7280;
    line-height: 1.7;
}

.blog-card-read {
    margin-top: auto;
    color: #6366f1;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-empty {
    text-align: center;
    padding: 4rem 1rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5f5;
}

.blog-empty i {
    font-size: 3rem;
    color: #6366f1;
    margin-bottom: 1rem;
}

/* Blog Post Detail */
.blog-post {
    background: linear-gradient(135deg, #fdf2f8, #eff6ff);
    min-height: 100vh;
    padding: 160px 0 120px;
}

.blog-post .blog-shell {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2.5vw, 3rem) 6rem;
}

.blog-post .blog-card-wrapper {
    display: grid;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: flex-start;
    grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
}

.blog-post .blog-post-toc {
    position: sticky;
    top: 140px;
    padding: 1.2rem 1.4rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: transparent;
    box-shadow: none;
    max-width: 200px;
    margin-left: -1.5rem;
}

.blog-post .blog-post-article {
    background: #fff;
    border-radius: 32px;
    border: 1px solid #e5e7eb;
    padding: clamp(2.4rem, 2.6vw, 3rem);
    box-shadow: 0 70px 140px rgba(15, 23, 42, 0.12);
    width: 100%;
}

.blog-post-header {
    padding-bottom: 2.5rem;
}

.blog-post-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
}

.blog-post-meta {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    text-transform: none;
    letter-spacing: normal;
}

.blog-post-header h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    color: #0f172a;
    margin-bottom: 1rem;
}

.blog-post-excerpt {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-post-featured img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.blog-post-content {
    line-height: 1.85;
    color: #111827;
}

.blog-post-content img,
.blog-post-content .ql-video {
    max-width: 100%;
    border-radius: 20px;
    display: block;
    margin: clamp(1.5rem, 3vw, 2.5rem) auto;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.blog-post-content .ql-align-center img,
.blog-post-content .ql-align-center .ql-video {
    margin-left: auto;
    margin-right: auto;
}

.blog-post-content .ql-align-right img,
.blog-post-content .ql-align-right .ql-video {
    margin-left: auto;
}

.blog-post-content p {
    margin-bottom: 1.4rem;
}

.blog-post-content .announcement {
    padding: 1.4rem 1.6rem;
    border-radius: 18px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #155e75;
    font-weight: 600;
    margin: 2rem 0;
}

.blog-post-content a.cta-primary,
.blog-post-content a.cta-secondary {
    text-decoration: none;
    padding: 0.85rem 1.6rem;
    border-radius: 14px;
    font-weight: 600;
    display: inline-flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.blog-post-content a.cta-primary { background: #2563eb; color: #fff; }
.blog-post-content a.cta-secondary { background: #eff6ff; color: #1d4ed8; }

@media (max-width: 960px) {
    .blog-card-wrapper.has-toc { grid-template-columns: 1fr; }
    .blog-post-toc { position: static; margin-bottom: 2rem; }
}

@media (max-width: 720px) {
    .blog-post-article { padding: 2.5rem; }
}

.blog-related {
    margin-top: 5rem;
}

.blog-related h2 {
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.blog-related-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 50px 120px rgba(15, 23, 42, 0.12);
}

.blog-related-card h3 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.blog-related-card span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6366f1;
    font-weight: 600;
}

.blog-back {
    margin-top: 4rem;
    text-align: center;
}

.blog-back .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 960px) {
    .blog-card-wrapper.has-toc {
        grid-template-columns: 1fr;
    }

    .blog-post-toc {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 720px) {
    .blog-post {
        padding: 120px 0 80px;
    }

    .blog-shell {
        padding: 0 1.25rem 4rem;
    }

    .blog-post-article {
        padding: 2.5rem;
    }
}

.blog-post-content .cta {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-post-content .cta a {
    text-decoration: none;
    padding: 0.85rem 1.6rem;
    border-radius: 14px;
    font-weight: 600;
}

.blog-post-content .cta a.primary {
    background: #2563eb;
    color: #fff;
}

.blog-post-content .cta a.secondary {
    background: #eff6ff;
    color: #1d4ed8;
}

.blog-post-toc:empty {
    display: none;
}

/* Blog Index Layout */
.blog-index {
    background: linear-gradient(135deg, #eef2ff, #fdf2f8);
    min-height: 100vh;
    padding: 160px 0 120px;
}

.blog-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.blog-index-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.blog-index-header small {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #6366f1;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.blog-index-header h1 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    margin-bottom: 1.2rem;
    color: #0f172a;
}

.blog-index-header p {
    max-width: 640px;
    margin: 0 auto;
    color: #475569;
    line-height: 1.7;
}

.blog-index-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.blog-index-filters button {
    border: none;
    background: #ffffff;
    color: #6366f1;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.12);
    transition: all 0.2s ease;
}

.blog-index-filters button.active,
.blog-index-filters button:hover {
    background: #4338ca;
    color: #ffffff;
    box-shadow: 0 16px 35px rgba(67, 56, 202, 0.25);
}

.blog-index-grid {
    display: grid;
    gap: 1.75rem;
}

.blog-index-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 2rem 2.25rem;
    box-shadow: 0 50px 100px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
}

.blog-index-media img,
.blog-index-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 20px;
    object-fit: cover;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c7d2fe;
    font-size: 2rem;
}

.blog-index-meta {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    color: #6366f1;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.blog-index-card h3 {
    font-size: 1.7rem;
    margin-bottom: 0.85rem;
}

.blog-index-card h3 a {
    color: #0f172a;
    text-decoration: none;
}

.blog-index-card p {
    color: #475569;
    line-height: 1.65;
    margin-bottom: 1.1rem;
}

.blog-index-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    color: #4338ca;
}

.blog-index-newsletter {
    margin-top: 4rem;
    padding: 2.75rem;
    background: #ffffff;
    border-radius: 32px;
    text-align: center;
    box-shadow: 0 40px 90px rgba(79, 70, 229, 0.15);
}

.blog-index-newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.blog-index-newsletter p {
    color: #475569;
    margin-bottom: 1.75rem;
}

.blog-index-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.blog-index-form input {
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    border: 1px solid #c7d2fe;
    min-width: 260px;
    font-size: 1rem;
}

.blog-index-form button {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    background: #4338ca;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(67, 56, 202, 0.3);
}

.blog-index-empty {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    padding: 3rem;
    text-align: center;
    color: #475569;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
    .blog-index-card {
        grid-template-columns: 1fr;
    }

    .blog-index-media img,
    .blog-index-placeholder {
        height: 240px;
    }
}

.blog-latest {
    margin-top: 5rem;
    max-width: 1700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.blog-latest h2 {
    font-size: clamp(2.2rem, 3vw, 2.6rem);
    color: #0f172a;
    margin-bottom: 2rem;
}

.blog-latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.blog-latest-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 34px 70px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-direction: column;
}

.blog-latest-media img,
.blog-latest-placeholder {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #eef2ff;
    color: #c7d2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.blog-latest-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-latest-date {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: #6366f1;
    font-weight: 600;
}

.blog-latest-content h3 {
    font-size: 1.2rem;
    margin: 0;
}

.blog-latest-content h3 a {
    text-decoration: none;
    color: #0f172a;
}

.blog-latest-content p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.blog-latest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 44px 90px rgba(15, 23, 42, 0.18);
}

.blog-latest-card:hover h3 a {
    color: #4338ca;
}

@media (max-width: 720px) {
    .blog-latest-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .blog-shell {
        padding: 0 1.5rem 4rem;
    }

    .blog-post-article {
        padding: 3rem;
    }

    .blog-post-toc {
        margin-left: 0;
    }
}

@media (max-width: 960px) {
    .blog-shell {
        padding: 0 1.5rem 4rem;
    }

    .blog-card-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-post-article {
        padding: 3rem;
    }

    .blog-post-toc {
        margin-left: 0;
        max-width: 100%;
        padding: 1.5rem;
    }
}


/* Mini cart (QuickMart inspired) */
.cart-slider {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
    visibility: hidden;
    z-index: 1100;
}

.cart-slider.active {
    pointer-events: auto;
    visibility: visible;
}

.cart-slider-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-slider.active .cart-slider-overlay {
    opacity: 1;
}

.cart-slider-content {
    position: relative;
    width: min(420px, 100%);
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    display: flex;
}

.cart-slider.active .cart-slider-content {
    transform: translateX(0);
}

.mini-cart-shell {
    background: #ffffff;
    border-radius: 24px 0 0 24px;
    box-shadow: -26px 0 60px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    padding: 24px 22px;
    width: 100%;
}

.mini-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.mini-cart-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.mini-cart-count {
    font-weight: 600;
    color: #16a34a;
    font-size: 0.8rem;
    margin-left: 6px;
}

.mini-cart-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #111827;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-cart-close:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.mini-cart-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
}

.mini-cart-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mini-cart-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

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

.mini-cart-item-media img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    background: #f3f4f6;
}

.mini-cart-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mini-cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.mini-cart-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.mini-cart-item-description {
    margin: 6px 0 12px;
    font-size: 0.8rem;
    color: #4b5563;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-cart-item-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.mini-cart-quantity {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 999px;
    padding: 5px 12px;
    gap: 10px;
}

.mini-cart-qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
}

.mini-cart-qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.mini-cart-qty-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
}

.mini-cart-line-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    margin-left: auto;
}

.mini-cart-remove {
    background: none;
    border: none;
    color: #15803d;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

.mini-cart-remove:hover {
    color: #0f7a2f;
}

.mini-cart-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 48px 0;
    color: #6b7280;
}

.mini-cart-empty img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f3f4f6;
}

.mini-cart-empty h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.mini-cart-empty-btn {
    border: 1px solid #15803d;
    color: #15803d;
    background: transparent;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.mini-cart-empty-btn:hover {
    background: #e8f5eb;
}

.mini-cart-footer {
    margin-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mini-cart-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.mini-cart-summary-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mini-cart-summary-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
}

.mini-cart-summary-note {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.mini-cart-summary-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

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

.mini-cart-btn {
    flex: 1;
    height: 48px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.mini-cart-btn-primary {
    background: #15803d;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(21, 128, 61, 0.25);
}

.mini-cart-btn-primary:hover {
    background: #0f7a2f;
    transform: translateY(-1px);
}

.mini-cart-btn-secondary {
    background: #ffffff;
    color: #15803d;
    border: 2px solid #15803d;
}

.mini-cart-btn-secondary:hover {
    background: #e8f5eb;
}


@media (max-width: 768px) {
    .cart-slider-content {
        width: 100%;
    }
    .mini-cart-shell {
        border-radius: 0;
        padding: 24px 20px;
    }
    .mini-cart-actions {
        flex-direction: column !important;
        align-items: stretch;
        justify-content: center;
        gap: 12px;
        width: 100%;
    }
    .mini-cart-btn {
        display: block;
        flex: none !important;
        width: 100%;
        max-width: 100%;
        height: 52px;
    }
    .mini-cart-footer {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
    .mini-cart-item {
        grid-template-columns: 64px 1fr;
    }
}


/* -------------------------------------------------- */
/* Cart - Style Two Layout                            */
/* -------------------------------------------------- */

.cart-style-two {
    padding: 120px 0 60px;
    background-color: #f8f9fa;
}

.cart-style-two__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 1.5rem;
}

.cart-style-two__items {
    flex: 2;
    min-width: 300px;
}

.cart-style-two__title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

#cartItemsList .cart-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#cartItemsList .cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

#cartItemsList .cart-item img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1.5rem;
}

#cartItemsList .product-info {
    flex: 1;
}

#cartItemsList .product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

#cartItemsList .product-meta {
    font-size: 0.9rem;
    color: #868e96;
    margin: 0 0 0.75rem 0;
}

#cartItemsList .quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#cartItemsList .quantity-btn {
    background: #e9ecef;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    cursor: pointer;
    color: #495057;
}

#cartItemsList .quantity-input {
    width: 48px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
}

#cartItemsList .product-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    text-align: right;
}

#cartItemsList .product-price {
    font-size: 1.25rem;
    font-weight: 600;
}

#cartItemsList .product-original-price {
    font-size: 0.95rem;
    color: #adb5bd;
    text-decoration: line-through;
}

#cartItemsList .line-total {
    font-size: 0.9rem;
    color: #868e96;
}

#cartItemsList .remove-btn {
    background: none;
    border: none;
    color: #ced4da;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

#cartItemsList .remove-btn:hover {
    color: #e53935;
}

.cart-style-two__summary {
    flex: 1;
    min-width: 300px;
}

.cart-style-two .summary-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    position: sticky;
    top: 120px;
}

.summary-card--disabled {
    opacity: 0.6;
    pointer-events: none;
}

.cart-style-two .summary-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.summary-promo {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.summary-promo input {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
}

.summary-promo button {
    border: none;
    border-radius: 8px;
    background-color: #343a40;
    color: #fff;
    padding: 0.6rem 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.summary-promo button:hover {
    background-color: #212529;
}

.cart-style-two .summary-row,
.cart-style-two .summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cart-style-two .summary-total {
    font-size: 1.2rem;
    font-weight: 600;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.cart-style-two .checkout-btn {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.cart-style-two .checkout-btn:hover {
    opacity: 0.9;
}

.cart-style-two .summary-continue {
    margin-top: 1rem;
    width: 100%;
    background: none;
    border: none;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
}

.cart-style-two__empty {
    background-color: #fff;
    border-radius: 10px;
    padding: 3rem 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cart-style-two__empty i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.cart-style-two__empty h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cart-style-two__empty p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .cart-style-two__container {
        flex-direction: column;
    }

    .cart-style-two__summary {
        width: 100%;
    }
}

@media (max-width: 576px) {
    #cartItemsList .cart-item {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.75rem;
    }

    #cartItemsList .cart-item img {
        margin: 0;
    }

    #cartItemsList .product-price-section {
        align-items: flex-start;
        text-align: left;
        margin-top: 0.35rem;
    }
}

/* ... existing code ... */
.checkout-toast {
    position: fixed;
    top: 90px;
    right: 24px;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    z-index: 1050;
}

.checkout-toast.visible {
    opacity: 1;
    transform: translateX(0);
}

.checkout-toast--success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.checkout-toast--error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}
/* ... existing code ... */

/* ... existing code ... */
.checkout-page {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #eef2ff 0%, #f9fafb 100%);
}

.checkout-container {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    gap: 2.75rem;
    padding: 0 3rem;
    align-items: stretch;
}

.form-section {
    flex: 1.5;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 22px;
    padding: 1.4rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.08);
}

.summary-section {
    flex: 1.05;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    padding: 3rem 2.75rem;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.07);
    position: sticky;
    top: 7rem;
    align-self: flex-start;
}

.form-section h1 {
    font-size: 2.35rem;
    font-weight: 700;
    margin-bottom: 2.75rem;
    color: #121826;
}

.form-section h2 {
    font-size: 1.24rem;
    font-weight: 600;
    margin-bottom: 1.6rem;
    color: #1f2a37;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding-bottom: 0.8rem;
}

.form-input {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border-radius: 12px;
    border: 1px solid #d5d9e3;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fefefe;
}

.payment-options .option {
    flex: 1;
    padding: 0.95rem 1.1rem;
    border-radius: 12px;
    border: 1px solid #d5d9e3;
    background-color: rgba(248, 250, 255, 0.9);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.payment-options .option.active,
.payment-options .option:hover {
    border-color: #2563eb;
    background-color: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.pay-button {
    width: 100%;
    padding: 1.05rem;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 2.25rem;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.pay-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(29, 78, 216, 0.32);
}

.summary-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #121826;
    margin-bottom: 1.9rem;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    margin-bottom: 2.25rem;
}

.summary-item {
    display: flex;
    gap: 1.1rem;
    align-items: center;
}

.summary-item img {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    object-fit: cover;
}

.summary-totals {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    padding-top: 1.1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: #4b5563;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    padding-top: 1.15rem;
}

@media (max-width: 1180px) {
    .checkout-container {
        padding: 0 2.25rem;
        gap: 2.25rem;
    }
}

@media (max-width: 1024px) {
    .checkout-container {
        flex-direction: column;
        padding: 0 2rem;
    }

    .summary-section {
        position: static;
        order: -1;
    }
}

@media (max-width: 720px) {
    .form-section,
    .summary-section {
        padding: 2.3rem 1.6rem;
    }

    .checkout-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 560px) {
    .checkout-container {
        padding: 0 1.1rem;
    }

    .summary-item img {
        width: 60px;
        height: 60px;
    }
}












