@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
    --primary-color: #2d5db7;
    --primary-hover: #0043ce;
    --primary-light: #edf5ff;
    --text-dark: #111111;
    --text-muted: #666666;
    --bg-light: #F9FAFB;
    --font-family: 'DM Sans', sans-serif;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Floating Sticky Navbar */
.navbar-floating-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 0 15px;
    pointer-events: none;
}

.navbar-floating {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 10px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
    transition: var(--transition);
}

.navbar-floating .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.navbar-floating .nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

@media (max-width: 991px) {
    .navbar-floating .nav-links {
        display: none;
        /* simple mobile fallback, or toggleable drawer */
    }
}

.navbar-floating .nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.navbar-floating .nav-links a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.navbar-floating .btn-cart {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.navbar-floating .btn-cart:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 140px;
    /* space for floating header */
    padding-bottom: 80px;
    background-color: #f7f7f7;
    overflow: hidden;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -2px;
    color: var(--text-dark);
    text-transform: uppercase;
}

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

.hero-badge-pill {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #333333;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    max-width: 320px;
    transition: var(--transition);
}

.hero-badge-pill:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.9);
}

/* Slide Drawer Overlay Cart */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: #ffffff;
    z-index: 1050;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
}

.cart-drawer-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.cart-drawer-close:hover {
    color: var(--primary-color);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-drawer-step {
    display: none;
}

.cart-drawer-step.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Cart Items */
.cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
    align-items: center;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--border-radius);
    background-color: #f7f7f7;
}

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

.cart-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    padding: 2px 8px;
    max-width: 90px;
    justify-content: space-between;
    margin-top: 8px;
}

.cart-item-qty button {
    background: none;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0 4px;
    color: var(--text-dark);
}

.cart-item-qty span {
    font-size: 0.85rem;
    font-weight: 700;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: #ff3333;
}

/* Checkout Form Styles */
.form-label-custom {
    font-weight: 600;
    font-size: 0.85rem;
    color: #444444;
    margin-bottom: 6px;
}

.form-control-custom {
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.15);
    outline: none;
}

.cart-drawer-footer {
    padding: 24px;
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Custom Success Popup / Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1060;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.success-modal.active {
    display: flex;
    opacity: 1;
}

.success-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: var(--transition);
}

.success-modal.active .success-card {
    transform: scale(1);
}

.success-icon-container {
    width: 80px;
    height: 80px;
    background-color: #e6f7ed;
    color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
    animation: scaleUpPulse 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.tracking-copy-box {
    background: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: var(--border-radius);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
}

.tracking-id-text {
    font-family: monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.btn-copy {
    background: var(--text-dark);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Visual Tracking Timeline Stepper */
.tracking-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}

.timeline-stepper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.timeline-stepper::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 20px;
    bottom: 10px;
    width: 4px;
    background-color: #eef2f5;
    z-index: 1;
}

.timeline-step {
    position: relative;
    display: flex;
    gap: 20px;
    z-index: 2;
}

.timeline-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #eef2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0bac9;
    font-size: 1.1rem;
    transition: var(--transition);
}

.timeline-content-box {
    flex: 1;
    padding-top: 6px;
}

.timeline-step.active .timeline-icon-box {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 0 5px rgba(255, 90, 54, 0.15);
}

.timeline-step.active::before {
    background-color: var(--primary-color);
}

.timeline-step.completed .timeline-icon-box {
    border-color: #28a745;
    background-color: #28a745;
    color: #ffffff;
}

/* Floating social graphics */
.floating-social-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.floating-social-card {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.floating-social-card:hover {
    transform: translateY(-8px) scale(1.05);
}

.floating-social-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-social-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUpPulse {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.btn-pill {
    border-radius: 50px;
}

.bg-peach {
    background-color: #edf5ff !important;
}