/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #111;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    position: relative;
    background: linear-gradient(145deg, #030303 0%, #1a1a1a 100%);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Navigation */
nav {
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 30;
    flex-wrap: wrap;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav .logo img {
    height: 32px;
    width: auto;
}

nav .logo span {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff, #ff7a00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 5px rgba(255,122,0,0.3);
}

nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

nav ul li {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

nav ul li:hover {
    opacity: 1;
    transform: translateY(-1px);
    color: #ff7a00;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.cart-link svg {
    transition: color 0.2s;
}

.cart-link:hover svg {
    color: #ff7a00;
}

.cart-count {
    background: #ff7a00;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.cart-link:hover .cart-count {
    background: #fff;
    color: #ff7a00;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: #ff7a00;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section */
.hero-blend {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: visible;
    margin-top: 0;
}

.big-text-blend {
    font-size: 24vw;
    font-weight: 800;
    color: #ff7a00;
    letter-spacing: 1.2vw;
    white-space: nowrap;
    text-align: center;
    user-select: none;
    pointer-events: none;
    width: 100%;
    line-height: 0.9;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: translateY(5%);
}

.car-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58%;
    max-width: 980px;
    z-index: 15;
    filter: drop-shadow(0 25px 30px rgba(0,0,0,0.6));
    transition: all 0.4s ease;
    pointer-events: auto;
}

.car-overlay img {
    width: 100%;
    display: block;
    opacity: 0.96;
    transition: transform 0.3s;
}

.hero-caption {
    text-align: center;
    width: 90%;
    max-width: 750px;
    margin: -2rem auto 1.5rem auto;
    position: relative;
    z-index: 20;
}

.hero-caption h1 {
    font-size: 5vw;
    font-weight: 800;
    background: linear-gradient(120deg, #fff, #ffaa55);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
}

.hero-caption p {
    font-size: clamp(14px, 3.2vw, 18px);
    opacity: 0.85;
    margin-top: 12px;
    line-height: 1.5;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

/* Stats & Cards Desktop */
.stats-left {
    position: absolute;
    bottom: 8%;
    left: 5%;
    z-index: 25;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 32px;
    border-left: 3px solid #ff7a00;
}

.stats-left h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff7a00;
}

.stats-left p {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: -4px;
}

.stats-left .stat-item + .stat-item {
    margin-top: 16px;
}

.card-right {
    position: absolute;
    right: 5%;
    bottom: 8%;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    padding: 1rem;
    width: 170px;
    color: #000;
    backdrop-filter: blur(4px);
    box-shadow: 0 20px 28px -12px rgba(0,0,0,0.5);
    z-index: 25;
}

.card-right img {
    width: 100%;
    border-radius: 18px;
}

.card-right button,
.card-right a {
    margin-top: 12px;
    width: 100%;
    padding: 8px 0;
    border: none;
    background: #ff7a00;
    color: #fff;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.card-right button:hover,
.card-right a:hover {
    background: #e55a00;
}

/* Mobile Info Section */
.info-section-mobile {
    display: none;
    width: 100%;
    background: linear-gradient(145deg, #141414, #080808);
    padding: 2rem 1.2rem;
    border-radius: 40px 40px 0 0;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin-top: -10px;
}

.mobile-stats-dual {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.mobile-stats-dual .stat-block {
    text-align: center;
    background: rgba(255, 122, 0, 0.12);
    padding: 12px 22px;
    border-radius: 48px;
    backdrop-filter: blur(4px);
    min-width: 120px;
}

.mobile-stats-dual .stat-block h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #ff7a00;
}

.mobile-stats-dual .stat-block p {
    font-size: 0.7rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.info-section-mobile .card-mobile {
    background: #fff;
    border-radius: 32px;
    padding: 16px;
    width: 200px;
    text-align: center;
}

.info-section-mobile .card-mobile img {
    width: 100%;
    border-radius: 20px;
}

.info-section-mobile .card-mobile button,
.info-section-mobile .card-mobile a {
    background: #ff7a00;
    border: none;
    padding: 10px 0;
    width: 100%;
    border-radius: 40px;
    color: white;
    font-weight: bold;
    margin-top: 12px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

/* Details Section / Products Grid */
.details-section {
    width: 100%;
    padding: 70px 24px 80px;
    background: linear-gradient(to bottom, #111, #1a1a1a);
}

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

.details-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: #ff7a00;
    margin-bottom: 16px;
}

.details-content .tagline {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 48px;
    line-height: 1.5;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.japan-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff7a00, #e55a00);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 0 0 12px 12px;
    position: absolute;
    top: 0;
    left: 16px;
    z-index: 5;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.product-card {
    background: #1a1a1a;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 2px solid #ff7a00;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.5);
}

.product-card-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.product-card:hover .product-image {
    transform: scale(1.02);
}

.product-info {
    padding: 18px 16px 20px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-desc {
    font-size:12px;
    color:#666;
    margin:4px 0 8px;
    line-height:1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

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

.product-price {
    font-size: 22px;
    font-weight: 800;
    color: #ff7a00;
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.product-price small {
    font-size: 13px;
    font-weight: 500;
    color: #aaa;
}

.buy-btn {
    width: 100%;
    background: #ff7a00;
    border: none;
    padding: 12px 0;
    border-radius: 40px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.buy-btn:hover {
    background: #e66a00;
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(255,122,0,0.3);
}

.checkout-btn {
    flex: 1;
    min-width: 140px;
    background: transparent;
    border: 2px solid #ff7a00;
    padding: 12px 0;
    border-radius: 40px;
    color: #ff7a00;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.checkout-btn:hover {
    background: #ff7a00;
    color: #fff;
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(255,122,0,0.3);
}

/* Company Description */
.company-description {
    text-align: left;
    max-width: 900px;
    margin: 20px auto 35px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    padding: 32px 40px;
    border-radius: 36px;
    border-left: 4px solid #ff7a00;
}

.company-description h3 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #ff7a00;
    letter-spacing: -0.3px;
}

.company-description p {
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 16px;
}

.cta-button {
    padding: 14px 44px;
    background: #ff7a00;
    color: #fff;
    border: none;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: #e66a00;
    transform: scale(0.98);
}

/* Live Search Premium UI */
.live-search-container {
    margin: 20px auto 50px;
    max-width: 650px;
    padding: 0 20px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 122, 0, 0.3);
    border-radius: 50px;
    padding: 6px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: #ff7a00;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(255, 122, 0, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: #ff7a00;
    opacity: 0.9;
    margin-right: 12px;
}

#liveSearchInput {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    outline: none;
}

#liveSearchInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.clear-icon {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-left: 10px;
}

.clear-icon:hover {
    color: #ff7a00;
    background: rgba(255, 122, 0, 0.1);
}

.clear-icon svg {
    width: 18px;
    height: 18px;
}

/* Japanese Flag Corner */
.japanese-flag-corner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 35% 35%, #fff 22%, #bc002d 23%, #bc002d 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    cursor: pointer;
    z-index: 999;
    border: 2px solid rgba(255,255,255,0.15);
    transition: transform 0.2s ease;
}

.japanese-flag-corner:hover {
    transform: scale(1.1);
}

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

/* Footer */
.site-footer {
    background: #0a0a0a;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    list-style: none;
    margin-bottom: 20px;
}

.footer-links li {
    font-size: 12px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.footer-links li a {
    color: inherit;
    text-decoration: none;
}

.footer-links li:hover,
.footer-links li a:hover {
    color: #ff7a00;
}

.footer-designed {
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media screen and (max-width: 1100px) {
    .stats-left h1 { font-size: 2rem; }
    .card-right { width: 150px; }
    .specs-grid { gap: 20px; }
}

@media screen and (max-width: 1024px) {
    .stats-left, .card-right { display: none !important; }
    .info-section-mobile { display: flex !important; }
    .hero-blend { min-height: 70vh; }
    .big-text-blend { font-size: 28vw; letter-spacing: 1vw; transform: translateY(2%); }
    .car-overlay { width: 72%; top: 52%; }
    .hero-caption { margin-top: -1rem; margin-bottom: 1rem; }
    .hero-caption h1 { font-size: 8vw; }
    nav { position: absolute; top: 18px; left: 24px; right: 24px; }
    .hamburger { display: flex; }
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 68%;
        max-width: 280px;
        height: 100vh;
        background: rgba(8, 8, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 36px;
        transition: right 0.35s ease;
        border-left: 1px solid rgba(255,122,0,0.4);
        z-index: 99;
    }
    nav ul.active { right: 0; }
    nav ul li { font-size: 1.2rem; }
    .specs-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .company-description { padding: 28px 32px; margin: 20px 20px 35px; }
}

@media screen and (max-width: 600px) {
    .hero-blend { min-height: 62vh; }
    .big-text-blend { font-size: 32vw; letter-spacing: 0.5vw; }
    .car-overlay { width: 88%; top: 54%; }
    .hero-caption { margin-top: 0.5rem; }
    .hero-caption h1 { font-size: 11vw; }
    .hero-caption p { font-size: 13px; width: 95%; }
    .info-section-mobile { padding: 1.5rem 1rem; }
    .mobile-stats-dual { gap: 20px; }
    .mobile-stats-dual .stat-block { padding: 8px 14px; min-width: 100px; }
    .mobile-stats-dual .stat-block h3 { font-size: 1.5rem; }
    .specs-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .product-image { height: 150px; }
    .product-info { padding: 14px 12px 16px; }
    .product-title { font-size: 15px; }
    .product-price { font-size: 18px; }
    .buy-btn { padding: 10px 0; font-size: 12px; }
    .details-section { padding: 40px 16px; }
    .company-description { padding: 20px 20px; margin: 20px 0 30px; }
    .company-description h3 { font-size: 22px; }
}

@media screen and (min-width: 1025px) {
    .info-section-mobile { display: none !important; }
    .stats-left, .card-right { display: block; }
    .hero-blend { min-height: 92vh; }
    .car-overlay { width: 54%; }
    .car-overlay:hover img { transform: scale(1.01); }
    .specs-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── In‑card action buttons ─── */
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.card-cart-btn,
.card-buy-btn {
  flex: 1;
  padding: 8px 0;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.card-cart-btn {
  background: #ff7a00;
  color: #fff;
}
.card-cart-btn:hover {
  background: #e66a00;
  transform: scale(0.95);
}
.card-buy-btn {
  background: transparent;
  color: #ff7a00;
  border: 1.5px solid #ff7a00;
}
.card-buy-btn:hover {
  background: rgba(255,122,0,0.1);
  transform: scale(0.95);
}
@media screen and (max-width: 600px) {
  .card-actions { flex-direction: column; gap: 6px; }
  .card-cart-btn,
  .card-buy-btn { padding: 8px 0; font-size: 10px; }
}

/* ─── Toast Notifications ─── */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: #1a1a1a;
  border: 1px solid #333;
  border-left: 4px solid #ff7a00;
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 36px rgba(0,0,0,0.55);
  animation: toastSlideIn 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}
.toast.success { border-left-color: #4caf50; }
.toast.error   { border-left-color: #f44336; }
.toast.removing { animation: toastSlideOut 0.28s ease forwards; }
.toast-icon { font-size: 18px; flex-shrink: 0; }
@keyframes toastSlideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toastSlideOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

/* ─── Button Loading Spinner ─── */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
  cursor: default;
}
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.55s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Cart Badge Pulse ─── */
.cart-count.pulse {
  animation: cartPulse 0.45s ease;
}
@keyframes cartPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

@media screen and (max-width: 600px) {
  .toast-container { right: 12px; left: 12px; bottom: 20px; }
  .toast { max-width: 100%; }
}