/* components.css - Deferred Styles for Vision Enhancers */

/* Section Title Polish */
.section-title-underlined {
  padding-top: var(--spacing-lg);
  border-bottom: 4px solid var(--color-primary);
  display: inline-block;
  margin-bottom: var(--spacing-lg);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Breadcrumbs --- */
.breadcrumb-nav { margin: 20px 0 30px; padding: 10px 0; }
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; list-style: none; gap: 12px; font-size: 0.9rem; color: #666; }
.breadcrumb-list li:not(:last-child)::after { content: '\00bb'; margin-left: 12px; color: #ccc; font-size: 1.2rem; }
.breadcrumb-list a { color: var(--color-primary); text-decoration: none; font-weight: 600; }
.breadcrumb-list [aria-current="page"] { color: #333; font-weight: 700; }

/* --- Buttons (Specialized) --- */
.btn-massive { padding: 18px 40px; font-size: 1.4rem; border-radius: 16px; }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-wishlist { background: #FFFFFF; color: var(--color-primary); border: 2px solid #E2E8F0; }
.btn-wishlist.active { background: #FFF5F7; border-color: #FF2D55; color: #FF2D55; }

/* --- Grid & Cards --- */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: var(--spacing-lg); 
    margin: var(--spacing-lg) 0; 
}
.card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: visible;
  height: 100%;
}
.card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03); 
  border-color: var(--color-primary); 
}
.card img { 
    width: 100%; 
    height: 180px; 
    border-radius: 14px; 
    object-fit: contain; 
    background: #f8fafc; 
    margin-bottom: 12px;
    padding: 10px;
}
.card-title { 
    margin-bottom: 8px; 
    font-size: 1.15rem; 
    font-weight: 800; 
    color: #1e293b;
    flex-grow: 1;
    line-height: 1.3;
}
.card-price { 
    font-size: 1.5rem; 
    font-weight: 900; 
    color: var(--color-primary); 
    letter-spacing: -0.5px;
}
.card-delivery { font-size: 0.85rem; color: #94a3b8; margin: 8px 0; font-weight: 600; }

.card-footer {
    padding-top: 15px;
    border-top: 1px dashed #f1f5f9;
    margin-top: 10px;
}

/* --- Category Scroller (Mobile Ready) --- */
.category-scroller-outer {
    margin: 20px -15px 35px;
    padding: 0 15px;
    position: relative;
}
.category-scroller {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 0 15px;
    -webkit-overflow-scrolling: touch;
}
.category-scroller::-webkit-scrollbar { display: none; }

.cat-pill {
    flex-shrink: 0;
    padding: 12px 24px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    color: #475569;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cat-pill.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 95, 163, 0.25);
}
.cat-pill:hover:not(.active) {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #fff;
}

/* --- Features Section --- */
.features { background: white; padding: 80px 0; border-bottom: 1px solid #eee; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; max-width: 1200px; margin: 0 auto; }
.feature-icon { font-size: 3.5rem; margin-bottom: 20px; display: block; }
.feature-item h3 { font-size: 1.5rem; font-weight: 800; }

/* --- Forms (Modern) --- */
.modern-form-card { 
    background: white; 
    padding: 50px; 
    border-radius: 30px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08); 
    border: 1px solid #f1f5f9; 
}
.modern-input, .modern-select, .modern-textarea { 
    width: 100%; 
    padding: 16px 20px; 
    border: 2px solid #f1f5f9; 
    border-radius: 12px; 
    background: #f8fafc; 
    font-size: 1rem;
    transition: all 0.3s ease;
}
.modern-input:focus, .modern-select:focus, .modern-textarea:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 95, 163, 0.1);
    outline: none;
}
.modern-label { font-weight: 700; color: #1e293b; margin-bottom: 8px; display: block; }

/* --- Contact & About Pages --- */
.contact-header { 
    background: linear-gradient(135deg, #005fa3 0%, #1e3a8a 100%); 
    color: white; 
    padding: 100px 0; 
    text-align: center; 
    margin-bottom: 80px; 
    border-radius: 0 0 60px 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.contact-title { font-size: 4rem; font-weight: 900; margin-bottom: 15px; color: #fff; letter-spacing: -1px; }
.contact-subtitle { font-size: 1.5rem; opacity: 0.9; font-weight: 500; font-family: 'Inter', sans-serif; }
.contact-description { max-width: 800px; margin: 25px auto 0; font-size: 1.15rem; opacity: 0.85; line-height: 1.7; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; margin-top: -120px; position: relative; z-index: 10; }
.contact-info-card { background: white; padding: 45px; border-radius: 30px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.08); height: 100%; border: 1px solid #f1f5f9; }
.contact-method { display: flex; gap: 25px; margin-bottom: 35px; align-items: flex-start; }
.contact-card-icon { 
    width: 60px; height: 60px; background: #eff6ff; color: #2563eb; 
    border-radius: 18px; display: flex; align-items: center; justify-content: center; 
    font-size: 1.8rem; flex-shrink: 0; box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
}
.contact-method h3 { margin-bottom: 5px; color: #1e293b; font-size: 1.25rem; }
.contact-method p { color: #64748b; font-size: 1rem; }
.contact-method a { color: var(--color-primary); text-decoration: none; word-break: break-all; }

.contact-hours-list { list-style: none; margin-top: 10px; }
.contact-hours-list li { display: flex; justify-content: space-between; border-bottom: 1px dashed #e2e8f0; padding: 8px 0; font-size: 0.95rem; color: #475569; }

.about-hero { background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a8a 100%); color: white; padding: 80px 0; text-align: center; border-radius: 24px; }

/* ═══════════════════════════════════════════════════
   PRODUCT DETAIL PAGE (PDP) — Premium Redesign
   ═══════════════════════════════════════════════════ */

/* --- Layout --- */
.pdp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

/* --- Gallery --- */
.pdp-gallery {
    position: sticky;
    top: 120px;
}

.pdp-image-wrapper {
    position: relative;
    background: #f8fafc;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.pdp-main-image {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    display: block;
    padding: 30px;
    transition: transform 0.4s ease;
}

.pdp-image-wrapper:hover .pdp-main-image {
    transform: scale(1.03);
}

.pdp-badge-sale {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ef4444;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 900;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* --- Info Panel --- */
.pdp-info {
    display: flex;
    flex-direction: column;
}

.pdp-category-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
}

.pdp-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--color-text);
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

/* Rating */
.pdp-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 5px;
}

.pdp-stars {
    color: #f59e0b;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.pdp-rating-text {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
}

.pdp-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 20px 0;
}

/* Price */
.pdp-price-block {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pdp-price-now {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: -1px;
}

.pdp-price-was {
    font-size: 1.1rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.pdp-save-badge {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

/* Delivery */
.pdp-delivery {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 10px;
}

.pdp-delivery svg { flex-shrink: 0; }

/* Stock */
.pdp-stock { margin-top: 12px; }

.pdp-stock-in, .pdp-stock-low, .pdp-stock-out {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 6px 14px;
    border-radius: 50px;
}

.pdp-stock-in {
    background: #dcfce7;
    color: #15803d;
}

.pdp-stock-low {
    background: #fef3c7;
    color: #b45309;
}

.pdp-stock-out {
    background: #fee2e2;
    color: #dc2626;
}

/* Description */
.pdp-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
}

/* Cart Form */
.pdp-cart-form {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 5px;
}

.pdp-qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdp-qty-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
}

.pdp-qty-stepper {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.pdp-qty-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    background: #f8fafc;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.pdp-qty-btn:hover {
    background: #e2e8f0;
}

.pdp-qty-input {
    width: 55px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-text);
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.pdp-add-to-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    background: var(--color-accent);
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.25);
}

.pdp-add-to-cart:hover {
    background: #ffdb4d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.35);
}

/* Wishlist */
.pdp-wishlist-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    text-decoration: none;
}

.pdp-wishlist-btn:hover {
    border-color: #FF2D55;
    color: #FF2D55;
    background: #FFF5F7;
}

.pdp-wishlist-btn.active {
    border-color: #FF2D55;
    color: #FF2D55;
    background: #FFF5F7;
}

/* Trust Badges */
.pdp-trust-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.pdp-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.pdp-trust-item svg { flex-shrink: 0; }

/* --- Tabs --- */
.pdp-tabs-wrapper {
    margin-top: 30px;
    margin-bottom: 80px;
}

.pdp-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
}

.pdp-tab {
    padding: 16px 30px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.pdp-tab-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.pdp-tab-content {
    background: #fff;
    padding: 40px;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 16px 16px;
}

/* Spec Table */
.pdp-spec-table {
    width: 100%;
    border-collapse: collapse;
}

.pdp-spec-table th, .pdp-spec-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1rem;
}

.pdp-spec-table th {
    font-weight: 800;
    color: var(--color-text);
    width: 40%;
    background: #f8fafc;
}

.pdp-spec-table td {
    color: #475569;
}

.pdp-spec-table tr:last-child th,
.pdp-spec-table tr:last-child td {
    border-bottom: none;
}

/* Review Form */
.pdp-review-form {
    background: #f8fafc;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.pdp-review-form h4 {
    margin-bottom: 15px;
}

.pdp-review-form .rating-stars {
    margin: 10px 0 20px;
}

.pdp-review-form .rating-stars span {
    font-size: 2rem;
    cursor: pointer;
    color: #d1d5db;
    transition: color 0.2s;
}

.pdp-review-form .rating-stars span.active,
.pdp-review-form .rating-stars span:hover {
    color: #f59e0b;
}

.pdp-review-form .modern-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    background: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 15px;
    margin-bottom: 15px;
    font-family: inherit;
}

.pdp-review-actions {
    display: flex;
    gap: 12px;
}

.pdp-muted {
    color: #94a3b8;
    font-style: italic;
}

/* Review Items */
.review-item {
    padding: 25px 0;
    border-bottom: 1px solid #f1f5f9;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reviewer-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--color-text);
}

.review-rating {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.verified-badge {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-top: 5px;
}

.review-comment {
    color: #475569;
    line-height: 1.7;
}

.tab-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

/* --- PDP Responsive --- */
@media (max-width: 900px) {
    .pdp-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pdp-gallery {
        position: static;
    }

    .pdp-title {
        font-size: 1.8rem;
    }

    .pdp-price-now {
        font-size: 1.8rem;
    }

    .pdp-cart-form {
        flex-direction: column;
    }

    .pdp-add-to-cart {
        width: 100%;
    }

    .pdp-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .pdp-tabs::-webkit-scrollbar { display: none; }

    .pdp-tab {
        padding: 14px 20px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .pdp-tab-content {
        padding: 25px 20px;
    }

    .pdp-trust-badges {
        gap: 12px;
    }
}


footer { 
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%); 
    color: #f8fafc; 
    padding: 100px 0 0; 
    margin-top: 100px; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    text-align: left;
    position: relative;
}

/* Subtle glow at the top of footer */
footer::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.6;
}

.footer-main { 
    display: grid; 
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr; 
    gap: 40px; 
    margin-bottom: 80px; 
}

.footer-col h3 { 
    color: #fff; 
    font-size: 1.1rem; 
    font-weight: 800; 
    margin-bottom: 25px; 
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--color-accent);
}

.footer-about h3 {
    font-size: 1.5rem;
    color: var(--color-accent);
    letter-spacing: -0.5px;
    text-transform: none;
}

.footer-about p { 
    opacity: 0.7; 
    line-height: 1.8; 
    margin-bottom: 25px; 
    font-size: 1.05rem; 
}

.footer-contact-info {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.footer-contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-contact-info b { color: var(--color-accent); }

.footer-social { display: flex; gap: 12px; }
.social-icon { 
    width: 40px; 
    height: 40px; 
    background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.1rem; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    text-decoration: none; 
    color: #fff;
}

.social-icon:hover { 
    background: var(--color-primary); 
    border-color: var(--color-primary);
    transform: translateY(-5px) rotate(8deg); 
    box-shadow: 0 10px 20px rgba(0, 95, 163, 0.3);
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { 
    color: #94a3b8; 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 1rem; 
    transition: all 0.3s ease; 
    display: inline-block;
}
.footer-col ul a:hover { 
    color: #fff; 
    transform: translateX(5px); 
    background: transparent;
}

.footer-newsletter p { opacity: 0.7; margin-bottom: 20px; font-size: 0.95rem; line-height: 1.6; }
.newsletter-form { 
    display: flex; 
    gap: 8px; 
    background: rgba(255,255,255,0.03);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.newsletter-input { 
    flex: 1; 
    padding: 12px 15px; 
    border-radius: 8px; 
    border: none; 
    background: transparent; 
    color: #fff; 
    font-size: 0.9rem;
    outline: none;
}

.newsletter-btn { 
    padding: 12px 24px; 
    background: var(--color-accent); 
    color: #000; 
    border: none; 
    border-radius: 8px; 
    font-weight: 800; 
    cursor: pointer; 
    transition: all 0.3s ease;
}

.newsletter-btn:hover { 
    background: #fff; 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

.footer-bottom { 
    background: rgba(2, 6, 23, 0.8); 
    padding: 30px 0; 
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 40px;
}

.footer-bottom-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p { font-size: 0.85rem; opacity: 0.4; margin: 0; }

.footer-payment-icons {
    display: flex;
    gap: 15px;
    opacity: 0.5;
    font-size: 1.5rem;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-main { grid-template-columns: 1fr 1fr; gap: 60px; }
}

@media (max-width: 640px) {
    .footer-main { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
    .footer-social { justify-content: center; }
    .footer-bottom-grid { justify-content: center; flex-direction: column; }
    footer { padding-top: 60px; }
    .footer-col ul a:hover { transform: translateY(-3px); }
    .newsletter-form { flex-direction: column; padding: 15px; }
}
