html {
    scroll-behavior: initial;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary-orange: #ff9100;
    --btn-orange: #fbc65f;
    --btn-orange-hover: #e5b04b;
    --dark-bg: #000000;
    --sidebar-bg: #0b0b0b;
    --gray-bg: #f5f5f5;
    --text-dark: #222;
    --text-light: #fff;
    --text-muted: #888;
    --image-placeholder: #5b5b5b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--gray-bg);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
    width: 100%;
}

/* LOADER */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-logo-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-svg {
    width: 150px;
    height: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    will-change: opacity;
    animation: fadeOutSvg 0.3s ease-in-out 0.8s forwards;
    z-index: 2;
}

.loader-path {
    fill: transparent;
    stroke: url(#linear-gradient);
    stroke-width: 15px;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawPath 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: stroke-dashoffset;
}

.loader-final-logo {
    width: 150px;
    height: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    will-change: opacity, filter;
    filter: drop-shadow(0 0 0 rgba(225, 176, 114, 0));
    animation: fadeInGlow 0.6s ease-in-out 0.8s forwards;
    z-index: 1;
}

@keyframes drawPath {
    0% {
        stroke-dashoffset: 100;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeOutSvg {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fadeInGlow {
    0% {
        opacity: 0;
        filter: drop-shadow(0 0 0 rgba(225, 176, 114, 0));
    }

    100% {
        opacity: 1;
        filter: drop-shadow(0 0 35px rgba(250, 84, 95, 0.7));
    }
}

/* ANNOUNCEMENT BAR */
.announcement-bar {
    background-color: var(--primary-orange);
    color: #fff;
    height: 40px;
    position: relative;
    z-index: 1002;
    overflow: hidden;
    text-align: center;
}

.announcement-container {
    width: 100%;
    height: 40px;
}

.announcement-item {
    position: absolute;
    width: 100%;
    height: 40px;
    line-height: 40px;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s ease;
    font-size: 0.9rem;
    font-weight: 700;
}

.announcement-item.active {
    opacity: 1;
    transform: translateY(0);
}

.announcement-item.exit {
    opacity: 0;
    transform: translateY(-15px);
}

/* Default sticky behavior for all headers */
header {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1010;
    height: 80px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: auto 1fr auto !important;
    gap: 20px;
    align-items: center;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header.transparent {
    background-color: rgba(0, 0, 0, 0);
    position: fixed;
    /* Keep it fixed to allow smooth transitions between scrolled states */
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
}

/* Home page special case: starts transparent and pushed down if announcement exists */
.has-announcement header.transparent {
    top: 40px;
}

/* Scrolled state on home page makes it fixed and black at top 0 */
header.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-light);
    flex: 1;
    /* Takes equal space on the left */
}

.logo-ed {
    color: var(--primary-orange);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.logo-models {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.logo-img {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.header-search {
    /* SEARCH BAR FLEXIBLE */
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    justify-self: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

/* Home page search bar: hidden by default, shown on scroll */
.home-scrolled-search {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

header.scrolled .home-scrolled-search {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.search-form {
    width: 100%;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-weight: 500;
    background-color: var(--text-light);
}

.header-search button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--dark-bg);
    font-size: 1.2rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: flex-end;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 40px;
}

.cart-icon-wrapper i {
    color: var(--text-light) !important;
    font-size: 1.4rem !important;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-light);
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-orange);
}

/* MOBILE TOGGLE & OVERLAY */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 101;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(11, 11, 11, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 2000;
    /* Above header and EVERYTHING */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-overlay a {
    color: var(--text-light);
    font-size: 2.5rem;
    font-weight: 800;
    text-decoration: none;
    margin: 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mobile-nav-overlay a.active {
    color: var(--primary-orange);
}

.mobile-nav-overlay.active a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-overlay.active a:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-nav-overlay.active a:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-nav-overlay a:hover {
    color: var(--primary-orange);
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 35px;
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: transform 0.3s;
}

.close-menu:hover {
    transform: rotate(90deg);
}

/* HERO SECTION (Index) */
.hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('img/motorcycle.jpg') center/cover no-repeat;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, transparent, var(--gray-bg) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 700px;
}

.hero-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-logo-img {
    height: 100px;
    width: auto;
    max-width: 340px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.hero-search {
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-radius: 40px;
}

.hero-search input {
    width: 100%;
    padding: 20px 30px;
    border-radius: 40px;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.hero-search button {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--dark-bg);
    font-size: 1.5rem;
    cursor: pointer;
}

/* CONTAINER */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem;
    flex: 1;
}

/* PAGE TITLE */
.page-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* GRID SYSTEM */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* CARDS */
.card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-img-placeholder {
    background-color: var(--image-placeholder);
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-decoration: none;
}

.card-img-placeholder h2 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
}

.card-content {
    padding: 1.8rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.card-sub {
    font-size: 0.70rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1.5rem;
    flex: 1;
}

.btn-buy {
    background-color: var(--btn-orange);
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-buy:hover {
    background-color: var(--btn-orange-hover);
    transform: scale(1.02);
}

.btn-add-cart {
    --tw-bg-opacity: 1;
    background-color: #FFC450 !important;
    color: #000000;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-add-cart i {
    color: #000000;
}

.btn-add-cart:hover {
    transform: scale(1.02);
    background-color: var(--primary-orange) !important;
}

.btn-add-cart.in-cart {
    background-color: #FFC450 !important;
    color: #000000 !important;
}

.btn-add-cart.in-cart i {
    color: #000000 !important;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
}

.page-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #d0d0d0;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.page-btn:hover {
    background-color: #a0a0a0;
}

.page-dots {
    display: flex;
    gap: 10px;
}

.page-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #444;
    cursor: pointer;
}

.page-dots .dot:not(.active) {
    background-color: #bbb;
}

/* DETAIL PAGE LAYOUT */
.detail-layout {
    display: flex;
    background-color: #0b0b0b;
    flex: 1;
}

.detail-main {
    flex: 1 1 70%;
    background-color: #fff;
    padding: 2.5rem 3%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.detail-sidebar {
    flex: 1 1 20%;
    background-color: var(--sidebar-bg);
    color: #fff;
    padding: 3rem 2rem;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

/* DETAIL SLIDER */
.slider-container {
    background-color: #dedede;
    border-radius: 12px;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
    user-select: none;
    overflow: hidden;
}

.slider-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slider-container h1 {
    font-size: 4.5rem;
    font-weight: 900;
    color: #444;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.slider-counter {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 15;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-arrow:hover {
    background-color: #fa545f;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-arrow.left {
    left: 20px;
}

.slider-arrow.right {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 3rem;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dots .dot:hover {
    background-color: #fa545f;
}

.slider-dots .dot.active {
    background-color: #fff;
    border-color: #fa545f;
    transform: scale(1.4);
    box-shadow: 0 2px 8px rgba(250, 84, 95, 0.4);
}

/* DETAIL CONTENT */
.detail-desc-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.detail-desc-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.desc-wrapper {
    position: relative;
    max-height: 120px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    transition: max-height 0.4s ease;
}

.desc-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 90%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.desc-wrapper.expanded {
    max-height: 2000px;
}

.desc-wrapper.expanded::after {
    opacity: 0;
}

.detail-desc-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}

.show-more {
    color: #007bff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.tags-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    background-color: #e5e5e5;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
}

/* DETAIL SIDEBAR CONTENT */
.sidebar-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.sidebar-price {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.sidebar-btn {
    font-size: 1.2rem;
    padding: 16px;
    margin-bottom: 1rem;
}

.editorial-note {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4rem;
    font-weight: 600;
}

/* Seller block */
.seller-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4rem;
}

.seller-by {
    font-size: 1rem;
    color: #aaa;
    font-weight: 600;
}

.seller-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.seller-logo-img {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: brightness(1.15);
}

/* Specs Block */
.specs-block {
    margin-bottom: 2.5rem;
}

.specs-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.specs-subtitle {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.format-tags {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1.5rem;
}

.format-tag-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.format-tag {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 500;
}

.format-tag.native {
    color: #000;
    background-color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 2rem;
}

.specs-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #222;
}

.specs-key {
    color: #aaa;
}

.specs-val {
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-icon {
    color: #00ff00;
}

.trust-badges {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    border-top: 1px solid #222;
    padding-top: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: #aaa;
    font-weight: 600;
}

.badge i {
    font-size: 1.4rem;
    color: #fff;
}

.chat-box {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 500;
}

.btn-chat {
    background: transparent;
    color: #fff;
    border: 1px solid #666;
    border-radius: 6px;
    padding: 10px 20px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-chat:hover {
    background-color: #222;
    border-color: #fff;
}

/* FOOTER */
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 4rem 2rem 1rem 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #aba8a8;
    margin-top: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #aba8a8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary-orange);
}

.footer-social .social-icons {
    display: flex;
    gap: 15px;
}

.footer-social .social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #222;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social .social-icons a:hover {
    background-color: var(--primary-orange);
    color: #000;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.85rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    header {
        padding: 1rem;
        gap: 15px;
    }
    .header-right {
        gap: 1rem;
    }
    .nav-links {
        gap: 1rem;
    }
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .detail-layout {
        flex-direction: column;
    }
    .detail-sidebar {
        padding: 3rem 2rem;
        min-width: 100%;
    }
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        height: auto;
    }

    .header-search {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-logo-img {
        height: 60px;
    }

    .slider-container {
        height: auto;
        aspect-ratio: 4/3;
    }

    .slider-container h1 {
        font-size: 3rem;
    }

    .sidebar-title {
        font-size: 1.6rem;
    }

    .sidebar-price {
        font-size: 2.8rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .card {
    aspect-ratio: auto;
    height: auto;
}

    .card-img-placeholder {
        height: auto;
        flex: 1;
    }

    .card-content {
        flex: 0 0 auto;
        padding: 1.5rem;
    }

    .hero {
        height: 60vh;
    }

    .trust-badges {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}

/* =========================================
   PHP DYNAMIC CONTENT ADDITIONS
   ========================================= */

/* Card with real image */
.card-img-placeholder.has-image {
    background-color: #111;
    padding: 0;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card-img {
    transform: scale(1.04);
}

.card-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #aaa;
    height: 100%;
    width: 100%;
}

.card-placeholder-inner i {
    font-size: 3rem;
    opacity: 0.5;
}

.card-placeholder-inner span {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-placeholder-inner.large i {
    font-size: 5rem;
}

/* Models Page Header */
.models-page-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-highlight {
    color: #fa545f;
    font-style: italic;
}

.results-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #eee;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

/* No results state */
.no-results {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
    display: block;
}

.no-results h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.no-results p {
    font-size: 0.95rem;
    color: #999;
}

.no-results a {
    color: #fa545f;
    font-weight: 700;
}

/* View All button on homepage */
.view-all-wrap {
    text-align: center;
    margin-top: 3rem;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    background: #111;
    color: #fff;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-view-all:hover {
    background: #fa545f;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(250, 84, 95, 0.3);
}

/* Mobile search in overlay */
.mobile-search {
    width: 80%;
    max-width: 400px;
    margin-bottom: 1rem;
    display: flex !important;
}

.mobile-search input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 30px 0 0 30px;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mobile-search button {
    padding: 0 1.2rem;
    background: #fa545f;
    border: none;
    border-radius: 0 30px 30px 0;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Tag as links */
.tag {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.tag:hover {
    background-color: #fa545f;
    color: #fff;
}

/* Slide images */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.6);
    transform: scale(1.15);
    z-index: 1;
    pointer-events: none;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

/* No images placeholder on detail */
.slider-container.no-images {
    background: #eee;
}

/* Nav active state */
.nav-links a.active {
    color: var(--primary-orange);
}

/* Page navigation links */
.page-dots a.dot {
    display: block;
    text-decoration: none;
}

.page-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-btn {
    text-decoration: none;
}

/* Slider track for PHP-rendered slides */
.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* SPEC X ICON STYLE */
.x-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #ddd;
    border-radius: 50%;
    margin-left: 5px;
}

.x-icon-wrapper i {
    color: #000;
    font-size: 11px;
}

/* FEATURES SECTION */
.features-section {
    padding: 60px 20px;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fff5e6 0%, #fff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-orange);
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(255, 145, 0, 0.1);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 500;
}

/* Responsive Features */
@media screen and (max-width: 992px) {
    .features-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .features-section {
        padding: 40px 15px;
    }

    .features-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }
}

/* AUTH PAGES */
.auth-container {
    max-width: 500px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.auth-card {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-header {
    margin-bottom: 2.5rem;
}

.auth-header i {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
}

.auth-form {
    text-align: left;
}

.auth-field {
    margin-bottom: 1.5rem;
}

.auth-field label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
}

.auth-input-wrap input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.auth-input-wrap input:focus {
    border-color: var(--primary-orange);
    outline: none;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-orange);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    margin-top: 1rem;
}

.auth-btn:hover {
    background: #e68200;
    transform: translateY(-2px);
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 700;
}

.auth-alert.error {
    background: #fff0f0;
    color: #d32f2f;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ACCOUNT PAGE */
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.account-user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #999;
}

.btn-logout {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #eee;
    color: #333;
}

.purchased-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.purchased-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.purchased-img {
    height: 180px;
    background: #f9f9f9;
}

.purchased-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.purchased-info {
    padding: 1.5rem;
}

.purchased-info h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.purchase-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.purchase-date {
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
}

.purchase-price {
    font-size: 1rem;
    font-weight: 800;
    color: #4caf50;
    background: #f0fff0;
    padding: 2px 10px;
    border-radius: 6px;
}

.purchased-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-download {
    background: #4caf50;
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 800;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #43a047;
}

.btn-view-model {
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* CART SIDEBAR */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 2001;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
}

.close-cart {
    cursor: pointer;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.close-cart:hover {
    transform: rotate(90deg);
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

/* Premium Custom Scrollbar for Cart Drawer */
.cart-drawer-items::-webkit-scrollbar {
    width: 5px;
}

.cart-drawer-items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.cart-drawer-items::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cart-drawer-items::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange);
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background: #f9f9f9;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary-orange);
}

.remove-cart-item {
    cursor: pointer;
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: color 0.3s;
}

.remove-cart-item:hover {
    color: #ff4d4d;
}

.cart-drawer-footer {
    padding: 2rem;
    background: #fcfcfc;
    border-top: 1px solid #eee;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 800;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: var(--primary-orange);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 800;
    transition: all 0.3s ease;
}

.btn-checkout i {
    transition: transform 0.3s ease;
}

.btn-checkout:hover {
    background: #e68200;
    transform: scale(1.02);
}

.btn-checkout:hover i {
    transform: translateX(5px);
}

.empty-cart-msg {
    text-align: center;
    padding: 3rem 0;
    color: #999;
}

.empty-cart-msg i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* NAV CART ICON */
.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -12px;
    background: var(--primary-orange);
    color: #fff;
    font-size: 0.65rem;
    padding: 0px 5px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    font-weight: 800;
    min-width: 18px;
    text-align: center;
    border: 2px solid var(--dark-bg);
}

.cart-icon-wrapper i {
    color: var(--text-light);
    transition: color 0.3s;
}

.cart-icon-wrapper:hover i {
    color: var(--primary-orange);
}

/* CHECKOUT PAGE - LIGHT MODE */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3rem;
    margin: 4rem 0;
    align-items: start;
}

.checkout-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -1px;
    color: #222;
}

.checkout-items {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #ebebeb;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

.checkout-item:first-child {
    padding-top: 0;
}

.checkout-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.checkout-item .item-img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.checkout-item .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.checkout-item .item-details {
    flex: 1;
}

.checkout-item .item-details h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #222;
}

.item-price {
    color: var(--primary-orange);
    font-weight: 800;
    font-size: 1.1rem;
}

.checkout-item .remove-btn {
    background: #f8f8f8;
    border: 1px solid #eee;
    color: #999;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.checkout-item .remove-btn:hover {
    background: #fff0f0;
    color: #ff4d4d;
    border-color: #ffcccc;
    transform: scale(1.05);
}

.back-to-shop {
    display: inline-block;
    margin-top: 2rem;
    color: #666;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.back-to-shop:hover {
    color: var(--primary-orange);
}

/* Old styles removed as they are moved to premium section at bottom of file */

.summary-row.total {
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    color: #000;
    font-weight: 900;
    font-size: 1.6rem;
}

.guest-checkout-notice {
    background: #fff9f0;
    border-left: 4px solid var(--primary-orange);
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #856404;
    line-height: 1.5;
}

.checkout-form {
    margin-top: 2rem;
}

.checkout-form .form-group {
    margin-bottom: 1.5rem;
}

.checkout-form label {
    display: block;
    margin-bottom: 0.6rem;
    color: #555;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-form input {
    width: 100%;
    background: #fdfdfd;
    border: 1px solid #ddd;
    padding: 14px 18px;
    border-radius: 12px;
    color: #222;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s;
}

.checkout-form input:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 145, 0, 0.1);
}

.btn-checkout-pay {
    width: 100%;
    padding: 18px;
    background: #635bff;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(99, 91, 255, 0.2);
}

.btn-checkout-pay:hover {
    background: #5345d3;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 91, 255, 0.2);
}

.btn-checkout-pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.secure-notice {
    text-align: center;
    margin-top: 1.5rem;
    color: #999;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 1100px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .checkout-items {
        padding: 1.5rem;
    }

    .checkout-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .checkout-item .item-img {
        width: 100%;
        height: 180px;
    }

    .checkout-item .remove-btn {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .checkout-item {
        position: relative;
    }
}


/* SUCCESS PAGE - PREMIUM DESIGN */
.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 1rem;
    min-height: calc(100vh - 400px);
}

.success-card {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    padding: 50px;
    border-radius: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shadow-premium {
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.success-header h1 {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.success-header .subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
    max-width: 450px;
    margin: 0 auto 35px;
    line-height: 1.5;
}

/* Animated Checkmark */
.success-icon-wrapper {
    margin-bottom: 30px;
}

.success-checkmark {
    width: 90px;
    height: 90px;
    display: block;
    margin: 0 auto;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4caf50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #4caf50;
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

/* Order Summary Box */
.order-summary-box {
    background: #f8f9fa;
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    border: 1px solid #eee;
}

.order-summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-summary-item .label {
    font-size: 0.8rem;
    color: #999;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-summary-item .value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
}

.order-summary-item .value.accent {
    color: #4caf50;
    font-size: 1.4rem;
}

.order-summary-divider {
    width: 2px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 1px;
}

/* Actions Box */
.success-actions-box {
    margin-bottom: 40px;
}

.action-message {
    background: #fff8f0;
    color: #ff9100;
    padding: 20px 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    text-align: left;
    border: 1px solid rgba(255, 145, 0, 0.1);
}

.action-message i {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.action-message p {
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 600;
    margin: 0;
}

.registration-upsell {
    padding-top: 20px;
}

.registration-upsell p {
    font-size: 1rem;
    color: #444;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary-success {
    display: inline-block;
    background: linear-gradient(135deg, #ff9100, #ff6a00);
    color: #fff;
    padding: 18px 45px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 15px 35px rgba(255, 145, 0, 0.25);
    transition: all 0.3s ease;
}

.btn-primary-success:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(255, 145, 0, 0.35);
}

.success-footer-actions {
    margin-top: 20px;
}

.btn-secondary-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #999;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-secondary-light:hover {
    color: #1a1a1a;
}

/* Responsive */
@media (max-width: 650px) {
    .success-card {
        padding: 40px 25px;
        border-radius: 30px;
    }
    
    .success-header h1 {
        font-size: 1.8rem;
    }
    
    .order-summary-box {
        flex-direction: column;
        gap: 20px;
        padding: 25px;
    }
    
    .order-summary-divider {
        width: 100%;
        height: 1px;
    }
    
    .action-message {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}


/* ADD TO CART BUTTON ENHANCEMENTS */
.btn-add-cart {
    background-color: #FFC450 !important;
    color: #171717 !important;
    border: 2px solid #FFC450 !important;
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
    margin-top: 0.8rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-cart i {
    color: #171717 !important;
}

.btn-add-cart:hover {
    background-color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
}

.btn-add-cart.purchased {
    background-color: #2e7d32 !important;
    border-color: #2e7d32 !important;
    color: #fff !important;
    cursor: not-allowed;
    opacity: 0.9;
}

.btn-add-cart.purchased i {
    color: #fff !important;
}

.btn-add-cart.adding {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Account Deletion UI */
.danger-zone {
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    background: rgba(239, 68, 68, 0.02) !important;
}

.danger-zone h3 {
    color: #ef4444 !important;
}

.danger-content p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.btn-delete-account {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-delete-account:hover {
    background: #ef4444;
    color: #fff;
}

/* Delete Modal */
.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.delete-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.delete-modal-content {
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.delete-modal-overlay.active .delete-modal-content {
    transform: translateY(0);
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: #fee2e2;
    color: #ef4444;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.delete-modal-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.delete-modal-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-cancel {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-confirm-delete {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

@media (max-width: 768px) {
    header {
        grid-template-columns: 1fr auto auto !important;
        padding: 1rem;
    }

    .header-search {
        display: none !important;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

/* ACCOUNT PAGE STYLES */
.account-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.account-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-tab-btn i {
    font-size: 1.1rem;
}

.account-tab-btn:hover {
    background-color: #eee;
}

.account-tab-btn.active {
    background-color: var(--primary-orange);
    color: #fff;
}

.account-tab-content {
    display: none;
}

.account-tab-content.active {
    display: block;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.settings-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.settings-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #222;
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-card h3 i {
    color: var(--primary-orange);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 145, 0, 0.1);
}

.btn-update {
    background-color: var(--primary-orange);
    color: #fff;
    border: none;
    padding: 14px 25px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-update:hover {
    background-color: var(--btn-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 145, 0, 0.3);
}

.auth-alert.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Remember Me Checkbox */
.remember-field {
    margin: 15px 0 !important;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 5px;
    transition: all 0.2s;
}

.checkbox-container:hover input~.checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary-orange);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* ACCOUNT PAGE PREMIUM STYLES */
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    border: 1px solid #eee;
}

.account-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-orange), #ff9100);
    color: #fff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 15px rgba(255, 145, 0, 0.2);
}

.account-user-info h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: #222;
}

.account-user-info p {
    color: #666;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fdf2f2;
    color: #ef4444;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #ef4444;
    color: #fff;
}

/* No Purchase Empty State */
.no-purchases {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border-radius: 24px;
    border: 2px dashed #e5e7eb;
    margin-top: 20px;
}

.no-purchases i {
    font-size: 4rem;
    background: linear-gradient(135deg, #ddd, #f1f1f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px !important;
    display: inline-block;
}

.no-purchases h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 12px;
}

.no-purchases p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-browse {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--primary-orange);
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.05rem;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(255, 145, 0, 0.25);
}

.btn-browse:hover {
    background: var(--btn-orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 145, 0, 0.35);
}

/* Purchased Models Grid */
.purchased-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.purchased-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.purchased-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.purchased-img {
    height: 200px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.purchased-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-placeholder-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 3rem;
}

.purchased-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.purchased-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #111;
}

.purchase-date {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 20px;
}

.purchased-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-view-model,
.btn-download {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-view-model {
    background: #f3f4f6;
    color: #374151;
}

.btn-view-model:hover {
    background: #e5e7eb;
}

.btn-download {
    background: #0ea5e9;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-download:hover {
    background: #0284c7;
}

@media (max-width: 640px) {
    .account-header {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .account-user-info {
        flex-direction: column;
    }

    .purchased-actions {
        flex-direction: column;
    }
}

/* Cart Item Remove Icon */
.remove-cart-item {
    padding: 10px;
    cursor: pointer;
    color: #999;
    transition: all 0.2s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-cart-item:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cart-item-info {
    flex: 1;
}

/* Checkout Summary Enhancements */
.summary-items-list {
    margin: 15px 0;
}

.summary-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.summary-item-title {
    color: #666;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 15px;
}

.summary-item-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.summary-item-prices .old-p {
    text-decoration: line-through;
    color: #999;
    font-size: 0.75rem;
}

.summary-item-prices .new-p {
    color: #333;
    font-weight: 700;
}

.summary-divider {
    height: 1px;
    background: #eee;
    margin: 15px 0;
}

.summary-row.savings {
    color: #10b981;
    font-weight: 600;
}

.summary-row.savings span:last-child {
    font-weight: 800;
}

/* Checkout Page Responsive Styles */
/* PREMIUM CHECKOUT PAGE STYLES */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    margin: 50px 0 100px;
}

.checkout-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 40px;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.checkout-items {
    background: #ffffff;
    border-radius: 30px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 40px;
}

.checkout-item {
    display: flex;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid #f8f8f8;
    background: #fff;
    transition: all 0.3s ease;
    gap: 25px;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item:hover {
    background: #fafafa;
}

.checkout-item-link {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 25px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.checkout-item .item-img {
    width: 120px !important;
    height: 120px !important;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    position: relative;
}

.checkout-item .item-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
}

.checkout-item-link:hover .item-img img {
    transform: scale(1.1);
}

.checkout-item .item-details {
    flex: 1;
    min-width: 0;
}

.checkout-item .item-details h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.checkout-item-link:hover h3 {
    color: var(--primary-orange);
}

.checkout-item .item-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary-orange);
    display: flex;
    align-items: center;
}

.checkout-item .remove-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #fff5f5;
    color: #ff4d4d;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.1);
}

.checkout-item .remove-btn:hover {
    background: #ff4d4d;
    color: #fff;
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 77, 77, 0.2);
}

/* Sidebar Summary Card */
.order-summary-card {
    background: #fff;
    border-radius: 35px;
    padding: 40px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 120px;
}

.order-summary-card h2 {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 35px;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
}

.order-summary-card h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 2px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #666;
    font-weight: 700;
    font-size: 1.05rem;
}

.summary-row.savings {
    color: #00c853;
    background: #f0fff4;
    padding: 12px 18px;
    border-radius: 15px;
    margin: 25px 0;
}

.summary-row.total {
    border-top: 2px solid #f8f8f8;
    margin-top: 30px;
    padding-top: 30px;
    color: #1a1a1a;
    font-size: 1.75rem;
    font-weight: 900;
}

.summary-row.total span:last-child {
    color: var(--primary-orange);
}

.btn-checkout-pay {
    width: 100%;
    background: linear-gradient(135deg, #635bff, #7a73ff);
    color: #fff;
    padding: 22px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 1.25rem;
    margin-top: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(99, 91, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-checkout-pay:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(99, 91, 255, 0.4);
}

.secure-notice {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #999;
    font-size: 0.9rem;
    font-weight: 600;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1200px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .checkout-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .checkout-item {
        padding: 20px;
        gap: 15px;
        flex-direction: row;
        /* Keep it as a row but might change below */
        align-items: center;
    }

    .checkout-item .item-img {
        width: 80px !important;
        height: 80px !important;
        border-radius: 15px;
    }

    .checkout-item .item-details h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .checkout-item .item-price {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .checkout-item {
        padding: 15px;
        gap: 12px;
        position: relative;
    }

    .checkout-item .item-img {
        width: 70px !important;
        height: 70px !important;
    }

    .checkout-item .item-details {
        padding-right: 40px;
        /* Space for trash icon if absolute position is needed, but we keep it flex here for now */
    }

    .checkout-item .item-details h3 {
        font-size: 1rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.3;
    }

    .checkout-item .remove-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .order-summary-card {
        padding: 25px;
        border-radius: 25px;
    }
}