/* ============================================
   HIGHGROWTH DRONES — Apple-Inspired Design
   ============================================ */

:root {
    --primary: #0071e3;
    --primary-hover: #0077ED;
    --dark: #1d1d1f;
    --dark-bg: #000000;
    --dark-card: #161617;
    --gray-bg: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-light: #f5f5f7;
    --border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
}

/* ============================================
   GLASSMORPHISM NAVBAR
   ============================================ */

.navbar-glass {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar-glass .navbar-brand {
    color: var(--text-light) !important;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.navbar-glass .nav-link {
    color: rgba(245, 245, 247, 0.8) !important;
    font-size: 0.85rem;
    font-weight: 400;
    padding: 1rem 0.75rem !important;
    transition: var(--transition);
}

.navbar-glass .nav-link:hover {
    color: #fff !important;
}

.brand-icon {
    display: inline-block;
    font-size: 1rem;
    margin-right: 2px;
}

.cart-badge {
    position: absolute;
    top: 4px;
    right: -4px;
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.dropdown-glass {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
}

.dropdown-glass .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.dropdown-glass .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dropdown-glass .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}


/* ============================================
   BUTTONS — Apple Style (legacy, used on other pages)
   ============================================ */

.btn-apple-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 980px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-apple-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: scale(1.02);
}

.btn-apple-primary.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-apple-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 980px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.btn-apple-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-apple-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.btn-apple-link:hover {
    color: var(--primary-hover);
    gap: 0.7rem;
}


/* ============================================
   FOOTER — Apple Style
   ============================================ */

.footer-apple {
    background: var(--dark-bg);
    color: var(--text-secondary);
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
    padding-bottom: 1.5rem;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--text-light);
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-light);
}

.footer-contact li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-contact i {
    margin-right: 0.5rem;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-secondary);
}

/* ============================================
   PRODUCT LIST PAGE
   ============================================ */

.product-card {
    transition: var(--transition);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

/* Badge styles */
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    border-radius: 980px;
    font-size: 0.75rem;
    padding: 4px 10px;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    border-radius: 980px;
    font-size: 0.75rem;
    padding: 4px 10px;
}

/* Price */
.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.price-original {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #999;
}

/* Rating stars */
.stars {
    color: #ffc107;
}

/* Product detail gallery */
.product-gallery img {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: var(--transition);
}

.product-gallery img:hover,
.product-gallery img.active {
    border-color: var(--primary);
}

/* Spec table */
.spec-table th {
    width: 40%;
    background-color: var(--gray-bg);
}

/* Cart quantity */
.quantity-input {
    width: 80px;
    text-align: center;
}

/* Category cards (list page) */
.category-card {
    transition: var(--transition);
    overflow: hidden;
    border-radius: 16px;
    border: none;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

/* Why choose us (non-home pages) */
.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e7f1ff;
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* Checkout */
.order-summary {
    background: var(--gray-bg);
    border-radius: 16px;
    padding: 1.5rem;
}

/* Placeholder image */
.placeholder-img {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* ============================================
   TWO-FACTOR AUTH FORMS
   ============================================ */

.card input[type="text"],
.card input[type="password"],
.card input[type="number"],
.card select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    transition: var(--transition);
}

.card input[type="text"]:focus,
.card input[type="password"]:focus,
.card input[type="number"]:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

/* ============================================
   PRODUCT LIST PAGE
   ============================================ */

.page-header-apple {
    background: var(--dark-bg);
    padding: 8rem 0 3rem;
}

.page-title-apple {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.page-subtitle-apple {
    font-size: 1rem;
    color: var(--text-secondary);
}

.section-products {
    background: var(--gray-bg);
    padding: 3rem 0 5rem;
}

/* Filter Sidebar */
.filter-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    position: sticky;
    top: 80px;
}

.filter-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.filter-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-link {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: var(--transition);
}

.filter-link:hover {
    background: var(--gray-bg);
    color: var(--primary);
}

.filter-link.active {
    background: var(--primary);
    color: #fff;
}

.search-input-wrap {
    position: relative;
}

.search-input-apple {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: var(--font);
    background: var(--gray-bg);
    transition: var(--transition);
}

.search-input-apple:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.search-btn-apple {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Sort Bar */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    justify-content: flex-end;
}

.sort-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.85rem;
    font-family: var(--font);
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Product Card (List Page) */
.product-card-list {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.product-card-list:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.badge-featured {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ff9f0a;
    color: #fff;
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.product-card-image {
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f7, #e8e8ed);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.product-card-list:hover .product-card-image img {
    transform: scale(1.06);
}

.product-card-body {
    padding: 1.25rem;
}

.product-card-category {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0.3rem 0 0.4rem;
    letter-spacing: -0.01em;
}

.product-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.product-card-rating {
    color: #ff9f0a;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card-price .price-now {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.product-card-price .price-was {
    font-size: 0.8rem;
}

.out-of-stock-badge {
    font-size: 0.7rem;
    color: #ff3b30;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.empty-state h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Pagination */
.pagination-apple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-btn {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.page-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.page-num:hover {
    background: #e8e8ed;
}

.page-num.active {
    background: var(--primary);
    color: #fff;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */

.breadcrumb-apple {
    background: #fff;
    padding: 5rem 0 0.75rem;
    border-bottom: 1px solid #e8e8ed;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.breadcrumb-list li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-list li a:hover {
    color: var(--primary);
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: #d2d2d7;
}

.breadcrumb-list li.current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Product Hero */
.pd-hero {
    background: #fff;
    padding: 2.5rem 0 4rem;
}

.pd-gallery {
    position: sticky;
    top: 80px;
}

.pd-main-image {
    background: var(--gray-bg);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
    transition: transform 0.4s ease;
}

.pd-main-image:hover img {
    transform: scale(1.05);
}

.pd-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.pd-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: var(--gray-bg);
    flex-shrink: 0;
}

.pd-thumb.active,
.pd-thumb:hover {
    border-color: var(--primary);
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Panel */
.pd-info {
    padding-left: 1.5rem;
}

@media (max-width: 991px) {
    .pd-info { padding-left: 0; }
    .pd-gallery { position: static; }
}

.pd-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.pd-badge-cat {
    background: var(--gray-bg);
    color: var(--text-secondary);
    padding: 4px 14px;
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 500;
}

.pd-badge-feat {
    background: #ff9f0a;
    color: #fff;
    padding: 4px 14px;
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pd-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.25rem;
}

.pd-brand {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.pd-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.pd-stars {
    color: #ff9f0a;
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

.pd-rating-text {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
}

.pd-rating-text:hover {
    text-decoration: underline;
}

.pd-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.pd-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pd-price-old {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.pd-save {
    background: #ff3b30;
    color: #fff;
    padding: 3px 12px;
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pd-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
}

.pd-highlights li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pd-highlights li i {
    color: #30d158;
    font-size: 0.85rem;
}

.pd-stock {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.pd-stock.in-stock { color: #30d158; }
.pd-stock.out-of-stock { color: #ff3b30; }
.pd-stock-count { color: var(--text-secondary); font-weight: 400; }

.pd-add-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pd-qty {
    display: flex;
    align-items: center;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    overflow: hidden;
}

.pd-qty-btn {
    width: 40px;
    height: 44px;
    border: none;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.pd-qty-btn:hover {
    background: var(--primary);
    color: #fff;
}

.pd-qty-input {
    width: 50px;
    height: 44px;
    border: none;
    border-left: 1px solid #d2d2d7;
    border-right: 1px solid #d2d2d7;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    -moz-appearance: textfield;
}

.pd-qty-input::-webkit-outer-spin-button,
.pd-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pd-qty-input:focus { outline: none; }

.btn-add-cart {
    flex: 1;
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-cart:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

/* Trust Badges */
.pd-trust {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.25rem 0;
    border-top: 1px solid #e8e8ed;
}

.pd-trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pd-trust-item i {
    font-size: 1.1rem;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

/* Key Features Section */
.pd-features-section {
    background: var(--gray-bg);
    padding: 5rem 0;
}

.pd-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--text-primary);
}

.pd-feature-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.pd-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.pd-feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 113, 227, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.pd-feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.pd-feature-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Tabs Section */
.pd-details-section {
    background: #fff;
    padding: 4rem 0 5rem;
}

.pd-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e8e8ed;
    margin-bottom: 2rem;
}

.pd-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    font-family: var(--font);
    transition: var(--transition);
}

.pd-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pd-tab.active {
    color: var(--primary);
    font-weight: 600;
}

.pd-tab.active::after {
    transform: scaleX(1);
}

.pd-tab:hover {
    color: var(--primary);
}

.pd-tab-content {
    display: none;
}

.pd-tab-content.active {
    display: block;
}

.pd-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 800px;
}

.pd-description p {
    margin-bottom: 1rem;
}

/* Specs Grid */
.pd-specs-grid {
    max-width: 700px;
}

.pd-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.pd-spec-row:last-child {
    border-bottom: none;
}

.pd-spec-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pd-spec-label i {
    color: var(--primary);
    font-size: 1rem;
}

.pd-spec-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pd-spec-extra {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* What's in the Box */
.pd-box-list {
    list-style: none;
    padding: 0;
    max-width: 500px;
}

.pd-box-list li {
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #f5f5f7;
}

.pd-box-list li:last-child {
    border-bottom: none;
}

.pd-box-list li i {
    color: #30d158;
    font-size: 1rem;
}

/* Reviews Section */
.pd-reviews-section {
    background: var(--gray-bg);
    padding: 5rem 0;
}

.pd-review-summary {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
}

.pd-review-avg {
    margin-bottom: 0.5rem;
}

.pd-review-avg-num {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.pd-review-avg-max {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pd-stars-lg {
    font-size: 1.25rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.pd-review-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.pd-rating-bars {
    text-align: left;
}

.pd-rating-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.pd-bar-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    width: 30px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.pd-bar-label i {
    font-size: 0.65rem;
    color: #ff9f0a;
}

.pd-bar-track {
    flex: 1;
    height: 8px;
    background: #e8e8ed;
    border-radius: 4px;
    overflow: hidden;
}

.pd-bar-fill {
    height: 100%;
    background: #ff9f0a;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.pd-bar-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
    width: 24px;
    text-align: right;
}

/* Review Form */
.pd-review-form-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.pd-review-form-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.form-label-apple {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.4rem;
}

.input-apple {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: var(--font);
    transition: var(--transition);
}

.input-apple:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

/* Star selector */
.pd-star-select {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
    justify-content: flex-end;
}

.pd-star-select input { display: none; }

.pd-star-select label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #d2d2d7;
    transition: color 0.2s;
}

.pd-star-select input:checked ~ label,
.pd-star-select label:hover,
.pd-star-select label:hover ~ label {
    color: #ff9f0a;
}

.pd-review-login {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 18px;
    margin-bottom: 2rem;
}

.pd-review-login a {
    color: var(--primary);
    font-weight: 600;
}

/* Review Cards */
.pd-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pd-review-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
}

.pd-review-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pd-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.pd-review-meta {
    flex: 1;
}

.pd-review-author {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    color: var(--text-primary);
}

.pd-review-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pd-review-stars {
    color: #ff9f0a;
    font-size: 0.8rem;
}

.pd-review-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.pd-review-comment {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.pd-no-reviews {
    text-align: center;
    padding: 3rem 1rem;
    color: #d2d2d7;
}

.pd-no-reviews i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.pd-no-reviews p {
    color: var(--text-secondary);
}

/* Related Section */
.pd-related-section {
    background: #fff;
    padding: 5rem 0;
    border-top: 1px solid #e8e8ed;
}

/* Sticky Add-to-Cart Bar */
.pd-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid #e8e8ed;
    z-index: 999;
    padding: 0.75rem 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.pd-sticky-bar.visible {
    transform: translateY(0);
}

.pd-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pd-sticky-info {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.pd-sticky-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pd-sticky-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.pd-sticky-btn {
    flex: none;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* ============================================
   CART DRAWER (Slide-in Panel)
   ============================================ */

.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
}

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

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

.cart-drawer-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.cart-drawer-count {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 1rem;
}

.cart-drawer-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 8px;
    transition: var(--transition);
}

.cart-drawer-close:hover {
    background: var(--gray-bg);
    color: var(--text-primary);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-drawer-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    animation: drawerItemIn 0.3s ease;
}

@keyframes drawerItemIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-drawer-item-img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--gray-bg);
    flex-shrink: 0;
}

.cart-drawer-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-drawer-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c7c7cc;
    font-size: 1.5rem;
}

.cart-drawer-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.cart-drawer-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition);
}

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

.cart-drawer-item-brand {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cart-drawer-item-price {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cart-drawer-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 0.35rem;
}

.cart-drawer-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #d2d2d7;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.cart-drawer-qty-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.cart-drawer-qty-val {
    width: 36px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-drawer-item-end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    flex-shrink: 0;
}

.cart-drawer-item-total {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cart-drawer-remove-btn {
    background: none;
    border: none;
    color: #c7c7cc;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.85rem;
    transition: var(--transition);
}

.cart-drawer-remove-btn:hover {
    color: #ff3b30;
}

.cart-drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    color: #c7c7cc;
}

.cart-drawer-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cart-drawer-empty p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.cart-drawer-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e8e8ed;
    background: #fff;
}

.cart-drawer-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cart-drawer-view-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    text-align: center;
    border: 1.5px solid var(--text-primary);
    border-radius: 980px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    transition: var(--transition);
}

.cart-drawer-view-btn:hover {
    background: var(--text-primary);
    color: #fff;
}

.cart-drawer-checkout-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    text-align: center;
    background: var(--primary);
    border-radius: 980px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.cart-drawer-checkout-btn:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: scale(1.02);
}

/* Lock body scroll when drawer is open */
body.cart-drawer-open {
    overflow: hidden;
}

/* ============================================
   CART PAGE
   ============================================ */

.cart-section {
    padding: 3rem 0 6rem;
    background: var(--gray-bg);
    min-height: 60vh;
}

.cart-items-card {
    background: #fff;
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    align-items: center;
}

.cart-item-border {
    border-bottom: 1px solid #e8e8ed;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-bg);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-brand {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cart-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.cart-item-name:hover {
    color: var(--primary);
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cart-qty-form {
    margin: 0;
}

.cart-qty-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-qty-input {
    width: 60px;
    padding: 0.4rem 0.5rem;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    font-family: var(--font);
    background: var(--gray-bg);
    transition: var(--transition);
}

.cart-qty-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.cart-qty-btn {
    background: none;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.cart-qty-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.cart-item-total {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 80px;
    text-align: right;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #86868b;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 1rem;
}

.cart-remove-btn:hover {
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.08);
}

/* Order Summary */
.summary-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.summary-row.summary-total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.text-success-apple {
    color: #34c759;
    font-weight: 500;
}

.summary-divider {
    height: 1px;
    background: #e8e8ed;
    margin: 0.75rem 0;
}

.summary-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 0.9rem;
    margin-top: 1.5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-checkout:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: scale(1.02);
}

/* Cart Page Qty Buttons */
.cart-page-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    overflow: hidden;
}

.cart-page-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.cart-page-qty-btn:hover {
    background: var(--primary);
    color: #fff;
}

.cart-page-qty-val {
    width: 40px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    border-left: 1px solid #d2d2d7;
    border-right: 1px solid #d2d2d7;
    line-height: 36px;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 5rem 1rem;
}

.empty-cart-icon {
    font-size: 4rem;
    color: #d2d2d7;
    margin-bottom: 1.5rem;
}

.empty-cart h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-cart p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-content {
        padding: 100px 1rem 60px;
    }

    .section-dark,
    .section-light,
    .section-highlight,
    .section-features,
    .section-cta {
        padding: 4rem 0;
    }

    .highlight-image {
        height: 300px;
    }

    .category-card-apple {
        height: 200px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .pd-add-wrap {
        flex-direction: column;
    }

    .btn-add-cart {
        width: 100%;
    }

    .pd-tabs {
        overflow-x: auto;
    }

    .pd-tab {
        white-space: nowrap;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .pd-sticky-info .pd-sticky-name {
        display: none;
    }

    .sort-bar {
        justify-content: flex-start;
    }

    .page-header-apple {
        padding: 6rem 0 2rem;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item-details {
        flex-direction: column;
    }

    .cart-item-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
    }

    .cart-item-total {
        min-width: auto;
        text-align: center;
    }
}
