:root {
    --primary-color: #0071e3;
    --header-bg: #000000;
    --nav-bg: #ffffff;
    --bg-light: #ffffff;
    --text-dark: #1d1d1f;
    --text-muted: #6e6e73;
    --white: #ffffff;
    --border-color: #f2f2f5;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.taka-sym {
    font-weight: 800;
}

.product-card-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 20px 0;
    background: #ffffff;
}

/* Global Card Styles */
.premium-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.premium-card.hoverable:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.standard-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.container {
    max-width: 1345px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header & Top Bar */
header {
    background-color: var(--header-bg);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header a {
    text-decoration: none;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
    padding: 0;
}

.logo {
    min-width: 150px;
    display: flex;
    flex-direction: column;
}

.site-logo-img {
    height: 35px;
    object-fit: contain;
}

.logo-icon-default {
    color: var(--primary-color);
    font-size: 28px;
}

.site-name-text {
    color: white;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -1px;
}

.site-subtitle-text {
    color: #888;
    font-size: 9px;
    font-weight: 600;
    margin-left: 33px;
    letter-spacing: 1px;
}

.mobile-menu-toggle {
    display: none;
    color: white;
    cursor: pointer;
    font-size: 24px;
}

.mobile-only {
    display: none !important;
}

.desktop-only {
    display: flex !important;
}

.mobile-menu-overlay,
.mobile-menu-container,
.mobile-menu-header,
.mobile-search-wrapper {
    display: none !important;
}

.search-bar {
    flex: 0 1 500px;
    margin: 0 auto;
    /* This centers it between the left (logo) and right (buttons) */
}

.search-bar input {
    width: 100%;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background: #222;
    /* Darker to match screenshot */
    color: white;
    outline: none;
    font-size: 14px;
}

.top-links {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}

.top-links a {
    color: white;
    text-decoration: none;
}

.top-links a i {
    color: white;
    margin-right: 5px;
}

.header-icons {
    display: flex;
    gap: 15px;
    margin-left: 15px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.icon-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Navigation */
.main-nav {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.nav-list {
    display: flex;
    justify-content: space-between;
    list-style: none;
}

.nav-list li {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
}

.nav-list li:hover {
    color: var(--primary-color);
}

.nav-list li i {
    font-size: 10px;
    margin-left: 3px;
    color: #999;
}

/* Hero Section */
.hero-section {
    margin-bottom: 25px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 70% 1fr;
    gap: 20px;
}

.main-slider {
    background: #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
    width: 100%;
    height: 475px;
    position: relative;
    display: flex;
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-banners {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.promo-card {
    flex: 1;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.promo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Features Bar */
.features-bar {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

@media (max-width: 991px) {
    .features-bar {
        display: none !important;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.feature-text {
    font-size: 13px;
    font-weight: 600;
}

/* Product Section Styling */
.section-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.section-header-flex {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.category-page .product-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.product-card .discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
}

.product-info h3 {
    font-size: 14px;
    margin: 15px 0 10px;
    height: 40px;
    overflow: hidden;
}

.product-price {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
}

.old-price {
    font-size: 12px;
    text-decoration: line-through;
    color: var(--text-muted);
    margin-left: 5px;
}

/* Comparison Styles */
.product-card-wrapper {
    position: relative;
    transition: var(--transition);
}

.compare-btn-abs {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    background: white;
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    text-decoration: none;
    border: 1px solid var(--border-color);
}

.product-card-wrapper:hover .compare-btn-abs {
    opacity: 1;
    transform: translateY(0);
}

.compare-btn-abs:hover {
    background: var(--primary-color);
    color: white !important;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 113, 227, 0.3);
}

.compare-btn-abs i {
    width: 18px;
    height: 18px;
}

footer {
    background-color: var(--header-bg);
    color: var(--white);
    padding: 30px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin: 0 auto;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
    color: #adb5bd;
    font-size: 14px;
}

.footer-col ul li:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #343a40;
    margin-top: 40px;
    padding-top: 20px;
    color: #6c757d;
    font-size: 13px;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Fallback: if only one child exists, center it */
.footer-bottom-flex:not(:has(> :nth-child(2))) {
    justify-content: center;
}

.copyright-text p {
    margin: 0;
}

.footer-payment-img {
    max-height: 25px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.payment-methods img {
    display: block;
}

/* Product Details Page Refined Styling */
.product-details-container {
    display: grid;
    grid-template-columns: 525px 1fr;
    gap: 35px;
    margin-top: 5px;
}

.product-gallery-sidebar {
    position: sticky;
    top: 90px;
}

.main-img-box {
    background: white;
    border: 1.5px solid #f2f2f5;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    width: 525px;
    height: 525px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumb-gallery {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.thumb-item {
    width: 75px;
    height: 75px;
    border: 2px solid #f2f2f5;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
    background: white;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.thumb-item.active {
    border-color: var(--primary-color);
}

.product-info-column {
    color: #1d1d1f;
}

.brand-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.product-title-h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.price-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.cash-price {
    font-size: 28px;
    font-weight: 800;
}

.cash-price span {
    margin-right: 2px;
}

.separator {
    color: #eee;
    font-size: 18px;
}

.discount-tag {
    background: #e6f7ef;
    color: #28a745;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
}

.reg-price {
    color: #ddd;
    text-decoration: line-through;
    font-size: 16px;
}

.stock-status,
.prod-code {
    font-size: 13.5px;
    color: #555;
}

.stock-status b,
.prod-code b {
    color: #000;
}

/* Variant Box Grid */
.variant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.variant-box {
    border: 1px solid #f0f0f4;
    border-radius: 12px;
    padding: 15px;
    background: white;
}

.variant-box.full {
    grid-column: 1 / span 2;
}

.variant-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    padding: 7px 16px;
    border: 1.5px solid #f2f2f5;
    border-radius: 30px;
    font-size: 12.5px;
    cursor: pointer;
    background: white;
    transition: 0.2s;
    font-weight: 600;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.warranty-txt {
    font-size: 14px;
    font-weight: 700;
    margin: 15px 0;
}

.qty-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.qty-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f4f4f7;
    border-radius: 40px;
    padding: 3px;
    width: 120px;
    margin-bottom: 20px;
    height: 38px;
}

.qty-pill-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.qty-pill-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 15px;
    color: #000;
    outline: none;
}

.main-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.btn-orange-wide {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.btn-white-wide {
    background: white;
    color: #000;
    border: 1px solid #f0f0f4;
    padding: 12px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.bottom-actions {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 15px;
}

.emi-long-btn,
.wa-long-btn {
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.emi-long-btn {
    background: #fdf6ed;
    color: #1d1d1f;
}

.wa-long-btn {
    background: #e6f7ef;
    color: #00bb2d;
}

.delivery-compact {
    margin-top: 20px;
    border: 1px solid #f2f2f5;
    padding: 12px 20px;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #1d1d1f;
}

/* Tab Styles */
.product-tabs-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: none !important;
}

.tab-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: #f8f9fa;
    color: #4b5563;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: #f3f4f6;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.section-title-tab {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1d1d1f;
}

/* Specification Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #f0f0f4;
    border-radius: 12px;
    overflow: hidden;
}

.specs-table tr {
    border-bottom: 1px solid #f0f0f4;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 18px 25px;
    font-size: 15px;
}

.specs-table td:first-child {
    width: 30%;
    color: #6b7280;
    font-weight: 500;
    background: #ffffff;
}

.specs-table td:last-child {
    color: #1d1d1f;
    font-weight: 600;
}

@media (max-width: 991px) {
    .product-details-container {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .main-slider {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .slider-nav {
        display: none !important;
    }

    .promo-banners {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .variant-box.full {
        grid-column: auto;
    }

    /* Mobile Header Layout */
    .mobile-menu-toggle {
        display: block;
        flex: 1;
    }

    .logo {
        flex: 2;
        align-items: center !important;
        justify-content: center;
        min-width: auto;
    }

    .logo div {
        justify-content: center;
    }

    .site-subtitle-text {
        margin-left: 0 !important;
        text-align: center;
    }

    .header-icons {
        flex: 1;
        justify-content: flex-end;
        gap: 10px;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .top-links {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .top-bar {
        height: 60px !important;
    }

    .icon-btn {
        border: none !important;
        width: 32px;
        height: 32px;
    }

    .mobile-menu-toggle {
        display: block;
        flex: 1;
        font-size: 20px;
    }

    .search-bar {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        max-width: none;
        padding: 10px 15px;
        background: var(--header-bg);
        z-index: 1000;
        transform: translateY(-100%);
        opacity: 0;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    .search-bar.mobile-active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .search-bar input {
        background: #1d1d1f;
        border: 1px solid #333;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: 9999;
        visibility: hidden;
        opacity: 0;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: block !important;
        /* Force display so it can animate opacity/visibility */
    }

    .mobile-menu-overlay.active {
        visibility: visible;
        opacity: 1;
    }

    .mobile-menu-container {
        width: 280px;
        height: 100%;
        background: white;
        transform: translateX(-100%);
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex !important;
        flex-direction: column;
        color: #1d1d1f;
    }

    .mobile-menu-overlay.active .mobile-menu-container {
        transform: translateX(0);
    }

    .mobile-menu-header {
        padding: 20px;
        border-bottom: 1px solid #eee;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        background: #f9f9fb;
        color: #1d1d1f;
    }

    .mobile-search-wrapper {
        display: block !important;
        margin-bottom: 15px;
    }

    .mobile-menu-body {
        flex: 1;
        overflow-y: auto;
        padding: 15px;
    }

    .mobile-nav-group {
        margin-bottom: 15px;
    }

    .mobile-nav-label {
        font-size: 11px;
        text-transform: uppercase;
        font-weight: 700;
        color: #888;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }

    .mobile-nav-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 5px 0;
        color: #1d1d1f;
        font-weight: 600;
        font-size: 15px;
        text-decoration: none;
        border-bottom: 1px solid #f5f5f7;
    }

    .mobile-nav-item:last-child {
        border-bottom: none;
    }

    .features-bar {
        display: none !important;
    }

    /* Compact Mobile Footer */
    footer {
        padding: 30px 0 20px !important;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }

    .footer-col h4 {
        margin-bottom: 12px !important;
        font-size: 14px !important;
    }

    .footer-col ul li {
        margin-bottom: 8px !important;
        font-size: 13px !important;
    }

    .footer-bottom {
        margin-top: 25px !important;
        padding-top: 15px !important;
        text-align: center !important;
    }

    .footer-bottom-flex {
        flex-direction: column !important;
        justify-content: center !important;
        gap: 15px !important;
    }

    .footer-bottom-flex {
        justify-content: center !important;
        text-align: center;
    }

    .footer-payment-img {
        max-height: 25px;
        margin: 0 auto;
    }
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0;
}

.rich-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.rich-content table td,
.rich-content table th {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    font-size: 15px;
    color: #1d1d1f;
}

.rich-content table td:first-child {
    width: 25%;
    font-weight: 600;
    color: #6e6e73;
    background: #fbfbfb;
}

.rich-content table td:nth-child(2) {
    font-weight: 700;
    color: #1d1d1f;
}

.rich-content table tr:last-child td {
    border-bottom: none;
}

.rich-content table tr td:last-child {
    border-right: none;
}

.rich-content ul,
.rich-content ol {
    padding-left: 20px;
    margin: 0;
    color: #444;
}

.rich-content p {
    margin-bottom: 0;
    color: #444;
}

/* Responsive Product Page Styles */
@media (max-width: 991px) {
    .product-details-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery-sidebar {
        position: static;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .main-img-box {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        padding: 10px;
    }

    .thumb-gallery {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .product-title-h1 {
        font-size: 22px;
        line-height: 1.3;
    }

    .price-meta-row {
        gap: 8px;
    }

    .variant-grid {
        grid-template-columns: 1fr;
    }

    .variant-box.full {
        grid-column: auto;
    }

    .main-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .product-tabs-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        flex-shrink: 0;
    }

    .rich-content table td {
        display: block;
        width: 100% !important;
    }

    .rich-content table td:first-child {
        background: #f8f9fa;
        border-bottom: none;
        padding-bottom: 5px;
    }
}

/* Cart Page Styles */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: flex-start;
}

.cart-item-row {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 15px 0;
}

.cart-item-row.border-bottom {
    border-bottom: 1px solid #f2f2f5;
}

.cart-item-img-box {
    width: 100px;
    height: 100px;
    padding: 10px;
    border: 1px solid #f2f2f5;
    border-radius: 12px;
}

.cart-item-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 5px;
}

.cart-item-variants {
    font-size: 12px;
    color: #6e6e73;
    margin-bottom: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-key {
    font-weight: 700;
    color: #1d1d1f;
}

.variant-sep {
    color: #d2d2d7;
    margin-left: 4px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    background: #f5f5f7;
    border-radius: 30px;
    padding: 5px;
}

.cart-item-qty button {
    width: 30px;
    height: 30px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-qty button i {
    width: 14px;
    height: 14px;
}

.cart-item-qty span {
    width: 40px;
    text-align: center;
    font-weight: 700;
}

.cart-item-price {
    width: 120px;
    text-align: right;
    font-size: 18px;
    font-weight: 700;
}

.cart-item-remove {
    color: #ff3b30;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    padding-left: 10px;
    display: flex;
    align-items: center;
}

.cart-item-remove i {
    width: 20px;
    height: 20px;
}

.cart-summary-box {
    position: sticky;
    top: 100px;
}

.cart-summary-box h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 2px solid #f5f5f7;
    padding-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    border-top: 2px solid #f5f5f7;
    padding-top: 20px;
    margin-bottom: 30px;
}

.summary-total span:first-child {
    font-size: 20px;
    font-weight: 800;
}

.total-amount {
    font-size: 20px;
    font-weight: 800;
    color: #000;
}

.shipping-text {
    color: #00a32a;
    font-weight: 600;
}

.checkout-btn {
    display: block;
    text-align: center;
    background: #0071e3;
    color: white;
    padding: 18px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s;
}

.checkout-btn:hover {
    background: #0077ed;
    transform: scale(1.02);
}

.fw-600 {
    font-weight: 600;
}

/* Responsive Cart */
@media (max-width: 991px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-box {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .cart-item-row {
        flex-wrap: wrap;
        position: relative;
    }

    .cart-item-info {
        flex: 1 1 calc(100% - 120px);
    }

    .cart-item-qty {
        order: 3;
    }

    .cart-item-price {
        order: 4;
        width: auto;
        margin-left: auto;
    }

    .cart-item-remove {
        position: absolute;
        top: 15px;
        right: 0;
    }

    .cart-item-img-box {
        width: 80px;
        height: 80px;
    }
}

/* Checkout Page Styles */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: flex-start;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title-row h2,
.form-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 25px 0;
}

.section-title-row h2 {
    margin-bottom: 0;
}

.saved-addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.address-card {
    border: 2px solid #f2f2f5;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
    background: white;
    position: relative;
}

.default-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0071e3;
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
}

.addr-label {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.addr-label i {
    font-size: 13px;
    color: #666;
}

.addr-name {
    font-size: 14px;
    color: #1d1d1f;
    font-weight: 600;
}

.addr-text {
    font-size: 13px;
    color: #6e6e73;
    margin-top: 5px;
    line-height: 1.4;
}

.manual-addr-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    cursor: pointer;
    font-weight: 600;
    color: #0071e3;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 15px;
    font-family: inherit;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid #f2f2f5;
    border-radius: 15px;
    cursor: pointer;
    background: white;
    transition: 0.3s;
    min-height: 80px;
}

.payment-method-card input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.gateway-logo-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.gateway-logo-box img {
    max-height: 50px;
    max-width: 180px;
    object-fit: contain;
}

.gateway-icon-box {
    width: 45px;
    height: 45px;
    background: #f5f5f7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    flex-shrink: 0;
}

.gateway-icon-box i {
    width: 24px;
    height: 24px;
}

.gateway-info {
    flex: 1;
}

.gateway-name {
    font-weight: 700;
    font-size: 16px;
    color: #1d1d1f;
}

.gateway-desc {
    font-size: 13px;
    color: #6e6e73;
}

.order-summary-column {
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 2px solid #f5f5f7;
    padding-bottom: 15px;
    margin-top: 0;
}

.order-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.order-item-preview {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f2f2f5;
}

.order-item-preview:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.item-thumb {
    width: 80px;
    height: 80px;
    border: 1px solid #f2f2f5;
    border-radius: 12px;
    padding: 8px;
    flex-shrink: 0;
}

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.item-vars {
    font-size: 12px;
    color: #6e6e73;
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.v-key {
    font-weight: 700;
    color: #1d1d1f;
}

.v-sep {
    color: #d2d2d7;
    margin-left: 4px;
}

.item-qty {
    font-size: 13px;
    color: #6e6e73;
    margin-top: 6px;
    font-weight: 500;
}

.item-subtotal {
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    border-top: 2px solid #f5f5f7;
    padding-top: 20px;
    margin-bottom: 30px;
}

.order-total-row span:first-child {
    font-size: 20px;
    font-weight: 800;
}

.total-price {
    font-size: 20px;
    font-weight: 800;
    color: #0071e3;
}

.place-order-btn {
    width: 100%;
    background: #0071e3;
    color: white;
    padding: 12px;
    border-radius: 40px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.terms-text {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 15px;
}

/* Responsive Checkout */
@media (max-width: 991px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .order-summary-column {
        position: static;
    }
}

@media (max-width: 576px) {
    .saved-addresses-grid {
        grid-template-columns: 1fr;
    }

    .payment-method-card {
        padding: 15px;
    }

    .place-order-btn {
        padding: 15px;
        font-size: 15px;
    }
}

/* Dashboard Styles */
.dashboard-layout {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.dashboard-sidebar {
    width: 280px;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.profile-summary {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f7;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    background: #0071e3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    font-weight: 700;
}

.profile-summary h3 {
    margin: 0;
    font-size: 18px;
    color: #1d1d1f;
}

.profile-summary p {
    margin: 5px 0 0;
    color: #6e6e73;
    font-size: 13px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #1d1d1f;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 5px;
    transition: 0.3s;
}

.nav-item:hover {
    background: #f5f5f7;
}

.nav-item.active {
    background: #f5f5f7;
    color: #0071e3;
    font-weight: 600;
}

.nav-item.logout {
    color: #e74a3b;
}

.nav-item.logout:hover {
    background: #fff1f0;
}

.nav-item i {
    width: 18px;
    height: 18px;
}

.dashboard-content {
    flex: 1;
}

.dashboard-welcome {
    margin-bottom: 15px;
}

.dashboard-welcome h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.dashboard-welcome p {
    color: #6e6e73;
    font-size: 16px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.dashboard-grid a {
    text-decoration: none;
    display: block;
}

.dashboard-card {
    height: 100%;
    text-align: center;
}

.dashboard-card h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: #f5f5f7;
    color: #1d1d1f;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-box i {
    width: 32px;
    height: 32px;
}

.icon-box-danger {
    background: #fff1f0;
    color: #ff3b30;
}

/* Responsive Dashboard */
@media (max-width: 991px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        position: static;
    }

    /* Hide menu on all my-account pages for a clean mobile look */
    .dashboard-layout .nav-menu {
        display: none;
    }

    .dashboard-layout .profile-summary {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
        display: flex;
        align-items: center;
        text-align: left;
    }

    .dashboard-layout .profile-avatar {
        margin: 0 15px 0 0;
    }

    .dashboard-layout .dashboard-welcome {
        display: none;
    }
}

@media (max-width: 576px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .dashboard-card {
        padding: 20px;
    }
}

/* Profile Page Special Styles */
.premium-alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.premium-alert.success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.premium-alert.error {
    background: #fff1f0;
    border: 1px solid #ffa39e;
    color: #f5222d;
}

.section-header {
    margin-bottom: 20px;
}

.section-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #1d1d1f;
}

.section-subtitle {
    color: #6e6e73;
    margin-top: 5px;
    font-size: 15px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.disabled-input {
    background: #fdfdfd !important;
    cursor: not-allowed;
    color: #999;
}

.address-preview-box {
    margin-bottom: 35px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #f2f2f5;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.preview-header label {
    font-size: 14px;
    font-weight: 700;
    color: #1d1d1f;
}

.action-link {
    font-size: 13px;
    color: #0071e3;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.action-link:hover {
    text-decoration: underline;
}

.address-details {
    color: #1d1d1f;
    font-size: 15px;
    line-height: 1.6;
}

.address-type {
    font-weight: 700;
    margin-bottom: 5px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-text {
    padding-left: 23px;
}

.no-address {
    color: #6e6e73;
    font-style: italic;
    margin: 0;
}

.premium-form-btn {
    background: #0071e3;
    color: white;
    padding: 15px 40px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.2);
}

.premium-form-btn:hover {
    background: #0077ed;
    transform: translateY(-2px);
}

.premium-form-btn.full-width {
    width: 100%;
}

/* Addresses Page Styles */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    border: 1px dashed #d2d2d7;
}

.empty-state i {
    font-size: 40px;
    color: #d2d2d7;
    margin-bottom: 20px;
}

.address-card {
    position: relative;
    border: 2px solid #f2f2f5;
    transition: 0.3s;
}

.address-card:hover {
    border-color: #0071e3;
    transform: translateY(-5px);
}

.default-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #0071e3;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.address-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.label-icon {
    width: 35px;
    height: 35px;
    background: #f5f5f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
}

.address-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.customer-name {
    font-weight: 700;
    color: #1d1d1f;
    font-size: 16px;
    margin-bottom: 5px;
}

.customer-phone {
    color: #6e6e73;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.customer-phone i {
    font-size: 12px;
    margin-right: 5px;
}

.address-val {
    color: #1d1d1f;
    font-size: 14px;
    line-height: 1.5;
}

.address-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    border-top: 1px solid #f5f5f7;
    padding-top: 15px;
}

.set-default,
.edit-btn {
    color: #0071e3;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.delete-link {
    color: #ff3b30;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    margin-left: auto;
}

.add-address-card button {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: none;
    border: 2px dashed #d2d2d7;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6e6e73;
    transition: 0.3s;
    padding: 40px;
}

.add-address-card button:hover {
    border-color: #0071e3;
    background: #fdfdfd;
}

.plus-icon {
    width: 50px;
    height: 50px;
    background: #f5f5f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.add-address-card span {
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
}

/* Modal Styles */
.premium-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal-content {
    background: white;
    width: 500px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.modal-header button {
    background: #f5f5f7;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.address-textarea {
    min-height: 100px;
    resize: none;
}

.checkbox-group {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group label {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
}

@media (max-width: 768px) {
    .addresses-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 25px;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Order Details Page Styles */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #f5f5f7;
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.order-title {
    font-size: 26px;
    font-weight: 800;
    color: #1d1d1f;
    margin: 0 0 8px;
}

.order-date {
    color: #888;
    font-size: 14px;
    font-weight: 500;
}

.order-status-badge {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.status-pill {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

.status-pill.completed,
.status-pill.delivered {
    background: #f6ffed;
    color: #52c41a;
}

.status-pill.cancelled {
    background: #fff1f0;
    color: #f5222d;
}

.status-pill.pending,
.status-pill.processing {
    background: #e6f7ff;
    color: #1890ff;
}

.status-pill.hold {
    background: #fff1e6;
    color: #fa8c16;
}

.order-number {
    font-weight: 800;
    color: #1d1d1f;
    font-size: 16px;
}

.order-items-section {
    margin-bottom: 40px;
}

.section-small-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.order-items-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item-card {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #f9f9fb;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #f0f0f4;
}

.item-img-box {
    width: 70px;
    height: 70px;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 5px;
    flex-shrink: 0;
}

.item-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-details {
    flex: 1;
}

.item-link {
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.item-variants-row {
    font-size: 12px;
    color: #6e6e73;
    margin-bottom: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-tag {
    display: flex;
    align-items: center;
    gap: 4px;
}

.v-key {
    font-weight: 700;
    color: #1d1d1f;
}

.v-sep {
    color: #d2d2d7;
    margin-left: 4px;
}

.item-qty-val {
    font-size: 13px;
    color: #888;
    font-weight: 600;
}

.item-total-price {
    text-align: right;
    font-weight: 800;
    font-size: 17px;
    color: #1d1d1f;
}

.order-summary-footer {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    padding-top: 30px;
    border-top: 2px solid #f5f5f7;
}

.footer-label {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card {
    background: #f9f9fb;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #f0f0f4;
}

.cust-name {
    font-weight: 800;
    font-size: 16px;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.cust-phone {
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.cust-addr {
    color: #6e6e73;
    line-height: 1.6;
    font-size: 14px;
    font-weight: 500;
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin-top: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-row .label {
    color: #6e6e73;
    font-weight: 500;
}

.summary-row .val {
    font-weight: 700;
    color: #1d1d1f;
}

.summary-row .val.free {
    color: #00a32a;
    font-weight: 800;
}

.grand-total {
    border-top: 2px solid #eee;
    padding-top: 15px;
    margin-top: 10px;
}

.grand-total .label {
    font-size: 16px;
    font-weight: 800;
    color: #1d1d1f;
}

.grand-total .val {
    font-size: 22px;
    font-weight: 900;
    color: #0071e3;
}

.payment-meta {
    margin-top: 20px;
    font-size: 13px;
    color: #888;
    text-align: right;
    font-weight: 600;
}

.payment-meta div {
    margin-bottom: 3px;
}

.payment-meta span {
    color: #1d1d1f;
    text-transform: uppercase;
}

.p-status {
    font-weight: 800;
}

.p-status.paid {
    color: #52c41a;
}

.p-status.unpaid {
    color: #faad14;
}

@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .order-status-badge {
        justify-content: space-between;
        width: 100%;
    }

    .order-summary-footer {
        grid-template-columns: 1fr;
    }

    .order-item-card {
        padding: 12px;
        flex-wrap: wrap;
    }

    .item-img-box {
        width: 60px;
        height: 60px;
    }

    .item-total-price {
        width: 100%;
        text-align: left;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #eee;
        font-size: 16px;
    }
}

/* Custom Pages Styles */
.page-container {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    display: flow-root;
}

.rich-content h1,
.rich-content h2,
.rich-content h3 {
    color: #1d1d1f;
    margin: 30px 0 15px;
}

.rich-content p {
    margin-bottom: 20px;
    word-wrap: break-word;
}

.rich-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    margin: 20px 0;
}

.rich-content ul,
.rich-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.rich-content li {
    margin-bottom: 10px;
}

.rich-content table {
    width: 100% !important;
    border-collapse: collapse;
    margin-bottom: 20px;
    overflow-x: auto;
    display: block;
}

.rich-content iframe,
.rich-content video {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
}

.rich-content * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .page-container {
        padding: 20px 15px !important;
        border-radius: 10px !important;
    }

    .page-container h1 {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }

    .rich-content {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
}