/* ============================================
   PARASHOP TAWFIQ - MAIN STYLESHEET
   Mobile-First | Medical Green & White Theme
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --green-dark: #0d7c3e;
    --green-main: #1a9e52;
    --green-light: #27ae60;
    --green-pale: #e8f5e9;
    --green-accent: #2ecc71;
    --white: #ffffff;
    --off-white: #f8faf9;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --red: #e74c3c;
    --orange: #f39c12;
    --blue: #3498db;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 15px 50px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Cairo', sans-serif;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--off-white);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn--primary {
    background: var(--white);
    color: var(--green-dark);
}

.btn--primary:hover {
    background: var(--green-pale);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--cart {
    width: 100%;
    justify-content: center;
    background: var(--green-main);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
}

.btn--cart:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---- Section Header ---- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--green-main);
}

.section-header__link {
    color: var(--green-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-header__link:hover {
    color: var(--green-dark);
    gap: 10px;
}

/* ================================================
   HEADER
   ================================================ */

/* Top Bar */
.header__top-bar {
    background: var(--green-dark);
    color: var(--white);
    padding: 6px 0;
    font-size: 0.8rem;
}

.header__top-bar .container {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.header__top-bar span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Main Header */
.header__main {
    background: var(--white);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__main-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 2rem;
    color: var(--green-main);
}

.logo-text__name {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--green-dark);
    line-height: 1.2;
}

.logo-text__tagline {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 400;
}

/* Search */
.header__search {
    flex: 1;
    display: flex;
    align-items: stretch;
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
    max-width: 600px;
}

.header__search:focus-within {
    border-color: var(--green-main);
    box-shadow: 0 0 0 4px rgba(26, 158, 82, 0.1);
}

.header__search-category {
    display: none;
    padding: 0 12px;
    border: none;
    background: var(--green-pale);
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--green-dark);
    cursor: pointer;
    outline: none;
    border-left: 1px solid var(--gray-300);
}

.header__search-input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    font-family: var(--font-main);
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
}

.header__search-btn {
    padding: 10px 18px;
    background: var(--green-main);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.header__search-btn:hover {
    background: var(--green-dark);
}

/* Header Actions */
.header__actions {
    display: none;
    align-items: center;
    gap: 16px;
}

.header__action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.75rem;
    color: var(--gray-700);
    position: relative;
}

.header__action-btn i {
    font-size: 1.3rem;
}

.header__action-btn:hover {
    color: var(--green-main);
}

.header__cart {
    position: relative;
}

.header__cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--red);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Toggle */
.header__mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.header__mobile-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

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

.header__mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* Navigation */
.header__nav {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.header__nav.open {
    max-height: 500px;
}

.header__nav-list {
    display: flex;
    flex-direction: column;
}

.header__nav-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.header__nav-list a:hover,
.header__nav-list a.active {
    color: var(--green-main);
    background: var(--green-pale);
}

.nav-promo {
    color: var(--red) !important;
}

/* ================================================
   HERO BANNER
   ================================================ */
.hero {
    position: relative;
    overflow: hidden;
}

.hero__slider {
    position: relative;
    min-height: 360px;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.hero__slide.active {
    opacity: 1;
    position: relative;
}

.hero__slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 0;
    gap: 24px;
}

.hero__slide-text {
    color: var(--white);
}

.hero__slide-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 6px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero__slide-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.hero__slide-text p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 500px;
}

.hero__slide-image {
    display: none;
}

.hero-icon {
    font-size: 8rem;
    opacity: 0.2;
    color: var(--white);
}

/* Hero Controls */
.hero__controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.hero__control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__control-btn:hover {
    background: rgba(255,255,255,0.4);
}

.hero__dots {
    display: flex;
    gap: 8px;
}

.hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}

.hero__dot.active {
    background: var(--white);
    width: 28px;
    border-radius: 5px;
}

/* ================================================
   FEATURES BAR
   ================================================ */
.features {
    padding: 32px 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.features__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.features__item:hover {
    background: var(--green-pale);
}

.features__item i {
    font-size: 1.5rem;
    color: var(--green-main);
    flex-shrink: 0;
}

.features__item h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-900);
}

.features__item p {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ================================================
   CATEGORIES
   ================================================ */
.categories {
    padding: 48px 0 24px;
}

.categories__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.categories__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--card-color, var(--green-pale));
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.categories__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.categories__card i {
    font-size: 2rem;
}

.categories__card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-800);
}

.categories__card span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ================================================
   PRODUCTS GRID
   ================================================ */
.products {
    padding: 24px 0 48px;
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card__badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
}

.badge {
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
}

.badge--promo {
    background: var(--red);
    color: var(--white);
}

.badge--new {
    background: var(--blue);
    color: var(--white);
}

.badge--hot {
    background: var(--orange);
    color: var(--white);
}

.product-card__wishlist {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

.product-card__wishlist:hover {
    color: var(--red);
    transform: scale(1.1);
}

.product-card__image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    padding: 16px;
}

.product-placeholder-icon {
    font-size: 3.5rem;
    color: var(--gray-300);
}

.product-card__info {
    padding: 12px;
}

.product-card__category {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--green-main);
    font-weight: 600;
    margin-bottom: 4px;
}

.product-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
}

.product-card__rating i {
    font-size: 0.7rem;
    color: var(--orange);
}

.product-card__rating span {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-right: 4px;
}

.product-card__price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.price--current {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--green-dark);
}

.price--old {
    font-size: 0.8rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

/* ================================================
   PROMO BANNER
   ================================================ */
.promo-banner {
    padding: 48px 0;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-accent) 100%);
}

.promo-banner__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    color: var(--white);
}

.promo-banner__label {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
}

.promo-banner__text h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 12px 0;
    line-height: 1.4;
}

.promo-banner__text p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.countdown {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    min-width: 60px;
    border: 1px solid rgba(255,255,255,0.2);
}

.countdown__number {
    font-size: 1.6rem;
    font-weight: 800;
}

.countdown__label {
    font-size: 0.7rem;
    opacity: 0.8;
}

.promo-banner__countdown h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

/* ================================================
   NEWSLETTER
   ================================================ */
.newsletter {
    padding: 48px 0;
    background: var(--white);
}

.newsletter__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.newsletter__icon {
    font-size: 2.5rem;
    color: var(--green-main);
}

.newsletter__text h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gray-900);
}

.newsletter__text p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.newsletter__form {
    display: flex;
    width: 100%;
    max-width: 480px;
    gap: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.newsletter__form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--gray-200);
    border-left: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.newsletter__form input:focus {
    border-color: var(--green-main);
}

.newsletter__form .btn {
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    background: var(--green-main);
    color: var(--white);
    white-space: nowrap;
}

.newsletter__form .btn:hover {
    background: var(--green-dark);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 48px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer__logo i {
    font-size: 1.8rem;
    color: var(--green-main);
}

.footer__logo span {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
}

.footer__about {
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer__social {
    display: flex;
    gap: 10px;
}

.footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);:root {
  font-family: 'Tajawal', system-ui, sans-serif;
  color: #0f172a;
  background: #f8fafc;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

main {
  width: min(720px, 100%);
  padding: 24px;
}

form {
  display: grid;
  gap: 12px;
  background: #fff;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

button {
  cursor: pointer;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  font-weight: 700;
  transition: background 0.2s ease;
}

button:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

button:hover:not(:disabled) {
  background: #0d9488;
}

#status {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}/* ============================================
   المرحلة 4: Cart & Checkout Styles
   ============================================ */

/* --- Cart Empty State --- */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    text-align: center;
    gap: 1.5rem;
}
.cart-empty__icon {
    font-size: 4rem;
    color: var(--light-text);
    opacity: 0.5;
}
.cart-empty__text {
    font-size: 1.3rem;
    color: var(--light-text);
}

/* --- Cart Table Enhancements --- */
.cart__table-wrapper { overflow-x: auto; }

.cart-table__product {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-table__img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
}
.cart-table__name { font-weight: 500; }
.cart-table__subtotal { font-weight: 600; color: var(--primary-color); }

/* --- Quantity Control --- */
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.qty-control__btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--secondary-color);
    color: var(--text-color);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-control__btn:hover { background: var(--primary-light); color: white; }
.qty-control__input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 1rem;
    outline: none;
    -moz-appearance: textfield;
}
.qty-control__input::-webkit-inner-spin-button,
.qty-control__input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* --- Remove Button --- */
.btn-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}
.btn-remove:hover { background: #ffebee; transform: scale(1.1); }

/* --- Cart Summary --- */
.cart__summary {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 1.5rem;
}
.cart__summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 1rem;
}
.cart__summary-row--total {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #eee;
    font-size: 1.3rem;
    font-weight: 700;
}
.cart__total-price { color: var(--primary-color); }
.cart__actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.cart__actions .btn { flex: 1; text-align: center; min-width: 150px; }

/* --- Cart Cards (Mobile) --- */
.cart__cards { display: none; }

.cart-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    position: relative;
}
.cart-card__img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.cart-card__details { flex: 1; }
.cart-card__name { font-weight: 600; margin-bottom: 0.3rem; font-size: 0.95rem; }
.cart-card__price { color: var(--primary-color); font-weight: 600; margin-bottom: 0.5rem; }
.cart-card__subtotal { margin-top: 0.5rem; font-size: 0.9rem; color: var(--light-text); }
.cart-card .btn-remove {
    position: absolute;
    top: 10px;
    left: 10px;
}

/* ============================================
   Checkout Page
   ============================================ */
.checkout-page .container { max-width: 1000px; }

.checkout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: flex-start;
}

/* --- Checkout Form --- */
.checkout__form-section { order: 1; }
.checkout__form {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.checkout__fieldset {
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
}
.checkout__legend {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
    display: block;
    width: 100%;
}
.checkout__legend i { margin-left: 8px; }
.form-group__label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.95rem; }
.form-group__hint { font-size: 0.8rem; color: var(--light-text); margin-top: 0.3rem; display: block; }
.required { color: var(--danger); }

/* --- Payment Options --- */
.checkout__payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.checkout__payment-option {
    cursor: pointer;
    display: block;
}
.checkout__payment-option input[type="radio"] { display: none; }
.checkout__payment-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    transition: var(--transition);
}
.checkout__payment-option--active .checkout__payment-card {
    border-color: var(--primary-color);
    background: #e8f5e9;
}
.checkout__payment-icon { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 0.5rem; display: block; }
.checkout__payment-label { font-weight: 600; display: block; margin-bottom: 0.3rem; }
.checkout__payment-desc { font-size: 0.8rem; color: var(--light-text); display: block; }

/* --- Checkout Summary Sidebar --- */
.checkout__summary {
    order: 2;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}
.checkout__summary-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}
.checkout__summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.checkout__summary-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #eee;
}
.checkout__summary-info { flex: 1; }
.checkout__summary-name { font-weight: 500; font-size: 0.9rem; margin-bottom: 0.2rem; }
.checkout__summary-meta { font-size: 0.8rem; color: var(--light-text); }
.checkout__summary-subtotal { font-weight: 600; font-size: 0.9rem; color: var(--primary-color); white-space: nowrap; }
.checkout__summary-divider { height: 2px; background: #eee; margin: 1rem 0; }
.checkout__summary-row { display: flex; justify-content: space-between; padding: 0.3rem 0; }
.checkout__summary-row--total { font-size: 1.2rem; font-weight: 700; margin-top: 0.5rem; }
.checkout__total-price { color: var(--primary-color); }

/* --- Checkout Actions --- */
.checkout__actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.checkout__actions .btn { flex: 1; text-align: center; min-width: 140px; }
.btn--lg { padding: 14px 30px; font-size: 1.05rem; }

/* --- Success Page --- */
.success-page__icon { font-size: 5rem; color: var(--success); margin-bottom: 1.5rem; }
.success-page__title { font-size: 2rem; color: var(--primary-color); margin-bottom: 1rem; }
.success-page__text { font-size: 1.1rem; color: var(--light-text); max-width: 500px; margin: 0 auto 1rem; }
.success-page__order-id { font-size: 0.95rem; color: var(--light-text); margin-bottom: 2rem; }
.success-page__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================
   Mobile Responsive - Cart & Checkout
   ============================================ */
@media (max-width: 768px) {
    .cart__table-wrapper { display: none; }
    .cart__cards { display: block; }

    .checkout {
        grid-template-columns: 1fr;
    }
    .checkout__summary { order: -1; position: static; }
    .checkout__form { padding: 1.2rem; }

    .checkout__payment-options {
        grid-template-columns: 1fr;
    }

    .checkout__actions {
        flex-direction: column;
    }

    .cart__actions {
        flex-direction: column;
    }
}
/* ============================================
   PREMIUM CART REDESIGN
   ============================================ */
.cart-page-wrapper { margin: 40px auto; }
.cart__summary { background: #fff; padding: 30px; border-radius: 16px; box-shadow: 0 10px 30px rgba(13, 124, 62, 0.08); position: sticky; top: 100px; border: 1px solid #f0f0f0; }
.cart-table { border-collapse: separate; border-spacing: 0 15px; background: transparent; box-shadow: none; border-radius: 0; }
.cart-table th { background: transparent; color: var(--gray-600); font-weight: 600; border-bottom: 2px solid #eee; padding-bottom: 15px; text-transform: uppercase; font-size: 0.85rem; }
.cart-table__row { background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border-radius: 12px; transition: 0.3s; }
.cart-table__row:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(13, 124, 62, 0.08); }
.cart-table__row td { border: none; padding: 20px; }
.cart-table__row td:first-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }
.cart-table__row td:last-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
.cart-table__img { width: 80px; height: 80px; background: var(--off-white); border: none; padding: 10px; }
.cart-table__name { font-weight: 700; color: var(--gray-800); font-size: 1.05rem; }
.qty-control { background: var(--off-white); border: none; border-radius: 30px; padding: 5px; }
.qty-control__btn { background: #fff; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.1); width: 32px; height: 32px; font-weight: bold; }
.btn-remove { background: #ffebee; color: #e74c3c; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.cart__summary-row--total { color: var(--green-dark); font-size: 1.5rem; }
