/* RYDO - Drive Your Style | style.css */
/* ============================================================
   CSS RESET & ROOT VARIABLES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #E10600;
  --red-dark: #b80500;
  --black: #111111;
  --dark: #222222;
  --mid: #555555;
  --light: #888888;
  --border: #e5e5e5;
  --bg-light: #f8f8f8;
  --white: #ffffff;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1.05rem; }
p { margin-bottom: 1rem; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { margin-bottom: 10px; }
.section-title p { color: var(--mid); max-width: 560px; margin: 0 auto; }
.text-center { text-align: center; }
.text-red { color: var(--red); }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--red);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-align: center;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--red);
}
.btn-outline:hover { background: var(--red); color: var(--white); }

.btn-dark { background: var(--black); border-color: var(--black); }
.btn-dark:hover { background: var(--dark); border-color: var(--dark); }

.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 15px 36px; font-size: 1rem; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--black);
  color: #ccc;
  font-size: 0.8rem;
  padding: 7px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.top-bar a { color: #ccc; }
.top-bar a:hover { color: var(--white); }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 16px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  max-width: 1160px;
  margin: 0 auto;
}
.logo img { height: 48px; width: auto; }
.logo-text {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
}
.logo-text span { color: var(--black); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  color: var(--dark);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: var(--radius);
  display: block;
  letter-spacing: 0.02em;
}
.main-nav a:hover,
.main-nav a.active { color: var(--red); background: #fff0f0; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.search-box input {
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 0.85rem;
  width: 180px;
  font-family: var(--font-body);
}
.search-box button {
  background: var(--red);
  border: none;
  color: var(--white);
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}
.mobile-nav ul { flex-direction: column; gap: 4px; }
.mobile-nav a {
  color: var(--dark);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 12px;
  display: block;
  border-radius: var(--radius);
}
.mobile-nav a:hover { color: var(--red); background: #fff0f0; }
.mobile-nav.open { display: block; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 80px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-content h1 { color: var(--white); margin-bottom: 16px; }
.hero-content h1 span { color: var(--red); }
.hero-content p { color: #bbb; margin-bottom: 28px; font-size: 1.05rem; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image-placeholder {
  background: #2a2a2a;
  border-radius: 10px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-family: var(--font-head);
  font-size: 0.9rem;
  border: 1px dashed #444;
}

/* ============================================================
   TRUST BADGES
   ============================================================ */
.trust-bar { background: var(--red); padding: 20px 0; }
.trust-badges {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.trust-badge .icon {
  font-size: 1.4rem;
  min-width: 32px;
  text-align: center;
}
.trust-badge .label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.category-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.category-card .cat-icon { font-size: 2.4rem; margin-bottom: 14px; }
.category-card h3 { font-size: 1rem; margin-bottom: 8px; }
.category-card p { font-size: 0.85rem; color: var(--mid); margin-bottom: 14px; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.product-card:hover { box-shadow: var(--shadow); }
.product-img {
  background: var(--bg-light);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-size: 0.82rem;
  font-family: var(--font-head);
  border-bottom: 1px solid var(--border);
}
.product-info { padding: 16px; }
.product-info h3 { font-size: 0.95rem; margin-bottom: 6px; }
.product-info .price {
  color: var(--red);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.product-info .price del { color: var(--light); font-size: 0.85rem; margin-left: 6px; font-weight: 400; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 0.83rem;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; color: var(--light); }
.breadcrumb a { color: var(--mid); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--red); font-weight: 600; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: #bbb; max-width: 560px; margin: 0 auto; }

/* ============================================================
   CARDS / INFO BOXES
   ============================================================ */
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card h3 { margin-bottom: 10px; }
.info-card p { color: var(--mid); font-size: 0.93rem; margin-bottom: 0; }

.stat-box {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--border);
}
.stat-box .stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red);
  display: block;
}
.stat-box .stat-label { font-size: 0.9rem; color: var(--mid); font-weight: 600; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-question {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--black);
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  padding: 0;
}
.faq-question .faq-icon { font-size: 1.2rem; color: var(--red); min-width: 20px; }
.faq-answer { display: none; padding-top: 12px; color: var(--mid); font-size: 0.95rem; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 0.93rem;
  font-family: var(--font-body);
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ============================================================
   TABLE
   ============================================================ */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.data-table th {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-light); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

/* ============================================================
   POLICY / LEGAL PAGES
   ============================================================ */
.policy-content { max-width: 820px; margin: 0 auto; }
.policy-content h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  font-size: 1.2rem;
}
.policy-content h2:first-child { margin-top: 0; }
.policy-content p { color: var(--mid); font-size: 0.95rem; }
.policy-content ul { padding-left: 20px; list-style: disc; color: var(--mid); font-size: 0.95rem; margin-bottom: 1rem; }
.policy-content ul li { margin-bottom: 6px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-info-item .ci-icon {
  font-size: 1.3rem;
  color: var(--red);
  min-width: 28px;
  margin-top: 3px;
}
.contact-info-item h4 { margin-bottom: 4px; }
.contact-info-item p { color: var(--mid); font-size: 0.92rem; margin-bottom: 0; }

/* ============================================================
   TRACK ORDER
   ============================================================ */
.track-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 40px 0;
}
.track-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.track-step {
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
}
.track-step .step-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.1rem;
  color: var(--light);
  border: 2px solid var(--border);
}
.track-step.done .step-dot {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.track-step .step-label { font-size: 0.8rem; font-family: var(--font-head); font-weight: 600; color: var(--mid); }
.track-step.done .step-label { color: var(--red); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  color: #aaa;
  padding-top: 56px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2a2a2a;
}
.footer-brand { }
.footer-logo { margin-bottom: 14px; }
.footer-logo-text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  display: block;
}
.footer-logo-text span { color: var(--red); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: #888; margin-bottom: 16px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #888; font-size: 0.88rem; }
.footer-col a:hover { color: var(--red); }
.footer-contact p { font-size: 0.88rem; color: #888; display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
  color: #555;
}
.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: var(--red); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-img-placeholder {
  background: var(--bg-light);
  border: 1px dashed var(--border);
  border-radius: 10px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-size: 0.85rem;
  font-family: var(--font-head);
}
.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.value-icon {
  font-size: 1.5rem;
  min-width: 36px;
  color: var(--red);
}
.value-item h4 { margin-bottom: 4px; }
.value-item p { font-size: 0.9rem; color: var(--mid); margin-bottom: 0; }

/* ============================================================
   SHOP / FILTER
   ============================================================ */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}
.filter-sidebar { position: sticky; top: 80px; }
.filter-group {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.filter-group:last-child { border-bottom: none; }
.filter-group h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: var(--mid);
}
.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--dark);
  cursor: pointer;
  margin-bottom: 8px;
}
.filter-group input[type="checkbox"] { accent-color: var(--red); }

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--mid);
}
.shop-toolbar select {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
}

/* ============================================================
   BANNER / CTA SECTION
   ============================================================ */
.cta-banner {
  background: var(--red);
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.cta-banner .btn { background: var(--white); color: var(--red); border-color: var(--white); }
.cta-banner .btn:hover { background: #f0f0f0; }

/* ============================================================
   ALERT / NOTICE BOX
   ============================================================ */
.notice {
  border-left: 4px solid var(--red);
  background: #fff0f0;
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 20px;
}
.notice.info { border-color: #0070f3; background: #f0f6ff; }
.notice.success { border-color: #16a34a; background: #f0fdf4; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image-placeholder { height: 220px; }
  .about-intro { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 44px 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .top-bar .container { flex-direction: column; gap: 4px; }
  .form-row { grid-template-columns: 1fr; }
  .trust-badges { gap: 12px; justify-content: flex-start; }
  .track-steps { flex-direction: column; gap: 20px; }
  .track-steps::before { display: none; }
  .track-step .step-dot { margin-bottom: 6px; }
}

@media (max-width: 480px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero { padding: 52px 0; }
  .page-hero { padding: 40px 0; }
}