/* Custom CSS Variables & Design Architecture Optimization */
:root {
    --it-slate-dark: #0f172a;
    --it-blue-deep: #1e3a8a;
    --it-blue-vivid: #2563eb;
    --it-blue-tint: #eff6ff;
    --it-green-clean: #10b981;
    --it-whatsapp-color: #25d366;
    --text-primary: #334155;
    --text-secondary: #64748b;
    --surface-white: #ffffff;
    --border-subtle: #e2e8f0;
    --radius-fluid: 12px;
    --transition-snappy: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Layout Resets & Performance Enhancements */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: var(--text-primary);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Top Navigation Banner Segment */
.top-contact-bar {
    background-color: var(--it-blue-deep);
    color: var(--surface-white);
    padding: 0.7rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.contact-meta-left {
    display: flex;
    gap: 2rem;
}

/* Structural Header Configuration */
.main-branding-header {
    background-color: var(--surface-white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.015);
    position: sticky;
    top: 0;
    z-index: 500;
    gap: 2rem;
}

.logo-area h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--it-slate-dark);
    letter-spacing: -0.025em;
}

.logo-area h1 .highlight-blue {
    color: var(--it-blue-vivid);
}

.logo-area .tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Core Search Bar Styles */
.search-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 450px;
}

.search-wrapper input {
    width: 100%;
    padding: 0.7rem 2.5rem 0.7rem 1.2rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-fluid);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-snappy);
}

.search-wrapper input:focus {
    border-color: var(--it-blue-vivid);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
    display: none;
}

/* Header Action & Navigation Layout links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.75rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-snappy);
}

.nav-links a:hover {
    color: var(--it-blue-vivid);
}

.login-trigger-btn {
    background-color: var(--it-blue-vivid);
    color: var(--surface-white);
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-fluid);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-snappy);
}

.login-trigger-btn:hover {
    background-color: var(--it-blue-deep);
    transform: translateY(-1px);
}

/* Profile Panel Layout Components */
.user-profile-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--it-blue-tint);
    padding: 0.45rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.avatar-circle {
    width: 28px;
    height: 28px;
    background-color: var(--it-blue-vivid);
    color: var(--surface-white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-username {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--it-blue-deep);
}

.profile-dropdown-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    background-color: var(--surface-white);
    width: 250px;
    padding: 1.25rem;
    border-radius: var(--radius-fluid);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--border-subtle);
    display: none;
}

.profile-dropdown-panel.view-active {
    display: block;
}

.profile-dropdown-panel h4 {
    font-size: 0.95rem;
    color: var(--it-slate-dark);
}

.profile-dropdown-panel .user-email {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.profile-dropdown-panel ul {
    list-style: none;
    margin-bottom: 1rem;
}

.profile-dropdown-panel ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    display: block;
    padding: 0.45rem 0;
}

.logout-btn {
    width: 100%;
    background-color: #ef4444;
    color: var(--surface-white);
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

/* Carousel Section Stylesheet Rules */
.hero-slider-workspace {
    position: relative;
    height: 460px;
    background-color: var(--it-slate-dark);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.hero-slide.active-slide {
    opacity: 1;
    z-index: 10;
}

.slide-inner-content {
    max-width: 650px;
    color: var(--surface-white);
}

.brand-badge-top {
    display: inline-block;
    background-color: var(--it-blue-vivid);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
}

.slide-inner-content h2 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.slide-inner-content p {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 1.75rem;
}

.pricing-badge {
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
    background: rgba(255, 255, 255, 0.07);
    padding: 0.6rem 1.2rem;
    width: fit-content;
    border-radius: 6px;
    border-left: 4px solid var(--it-green-clean);
}

.pricing-badge span {
    font-weight: 800;
    color: var(--it-green-clean);
    font-size: 1.5rem;
}

.explore-catalog-btn {
    background-color: var(--surface-white);
    color: var(--it-slate-dark);
    border: none;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-fluid);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-snappy);
}

.explore-catalog-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--surface-white);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition-snappy);
}

.slide-arrow:hover { background: rgba(255, 255, 255, 0.2); }
.left-arrow { left: 25px; }
.right-arrow { right: 25px; }

/* Feature Cards Grid Layout */
.trust-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    padding: 3.5rem 5%;
}

.trust-card {
    background-color: var(--surface-white);
    padding: 2.25rem;
    border-radius: var(--radius-fluid);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: var(--transition-snappy);
}

.trust-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.trust-icon {
    font-size: 2.2rem;
    margin-bottom: 0.85rem;
}

.trust-card h3 {
    font-size: 1.2rem;
    color: var(--it-slate-dark);
    margin-bottom: 0.6rem;
}

.trust-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Master Grid Area Architecture */
.catalog-layout-wrapper {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 2.5rem;
    padding: 0 5% 6rem 5%;
}

.sidebar-filter-dock {
    background-color: var(--surface-white);
    border-radius: var(--radius-fluid);
    border: 1px solid var(--border-subtle);
    padding: 1.75rem;
    height: fit-content;
}

.sticky-sidebar-inner {
    position: sticky;
    top: 110px;
}

.sidebar-filter-dock h3 {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--it-slate-dark);
}

.filter-block {
    margin-bottom: 1.75rem;
}

.filter-block label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.filter-block select {
    width: 100%;
    padding: 0.7rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
    outline: none;
    background-color: var(--surface-white);
}

.catalog-stats-pill {
    background-color: var(--it-blue-tint);
    color: var(--it-blue-deep);
    padding: 0.7rem;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 600;
}

/* Storefront Item Grid Elements */
.live-grid-workspace .section-title-row {
    margin-bottom: 2rem;
}

.live-grid-workspace h2 {
    font-size: 1.75rem;
    color: var(--it-slate-dark);
    letter-spacing: -0.02em;
}

.dynamic-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.75rem;
}

/* Grid Laptop Render Cards Optimization */
.product-unit-card {
    background-color: var(--surface-white);
    border-radius: var(--radius-fluid);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
    display: flex;
    flex-direction: column;
    transition: var(--transition-snappy);
}

.product-unit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.card-media-header {
    height: 175px;
    background-color: #cbd5e1;
    background-position: center;
    background-size: cover;
    position: relative;
}

.card-condition-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    color: var(--surface-white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.card-body-metrics {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body-metrics h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--it-slate-dark);
    margin-bottom: 0.6rem;
}

.card-spec-table {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.card-spec-table li {
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-footer-action-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-display-set .original-strike {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.price-display-set .current-deal {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--it-slate-dark);
}

.direct-checkout-trigger {
    background-color: var(--it-blue-vivid);
    color: var(--surface-white);
    border: none;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-snappy);
}

.direct-checkout-trigger:hover {
    background-color: var(--it-blue-deep);
}

/* Semantic Content Block Layout */
.about-us-container {
    background-color: var(--surface-white);
    padding: 5rem 5%;
    border-top: 1px solid var(--border-subtle);
}

.about-content-block {
    max-width: 850px;
    margin: 0 auto;
}

.about-content-block h2 {
    font-size: 2rem;
    color: var(--it-slate-dark);
    margin-bottom: 1.25rem;
    text-align: center;
}

.about-content-block p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

/* Modal Window Base Overlays */
.modal-backdrop-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
}

.modal-backdrop-blur.modal-visible {
    display: flex;
}

.modal-content-envelope {
    background-color: var(--surface-white);
    width: 100%;
    max-width: 460px;
    border-radius: var(--radius-fluid);
    position: relative;
    padding: 3rem 2.25rem;
}

.modal-content-envelope.broad-modal-envelope {
    max-width: 820px;
    padding: 0;
    overflow: hidden;
}

.modal-exit-trigger {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    z-index: 10;
}

.form-row-block {
    margin-bottom: 1.4rem;
}

.form-row-block label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-row-block input, .form-row-block textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
    outline: none;
}

.auth-submit-action-btn {
    width: 100%;
    background-color: var(--it-blue-vivid);
    color: var(--surface-white);
    border: none;
    padding: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
}

.demo-notice-tag {
    background-color: var(--it-blue-tint);
    border: 1px dashed var(--it-blue-vivid);
    padding: 0.85rem;
    border-radius: 8px;
    font-size: 0.75rem;
    margin-top: 1.5rem;
    color: var(--it-blue-deep);
}

/* Two Column Split Checkout */
.checkout-split-grid {
    display: grid;
    grid-template-columns: 1fr 1.20fr;
}

.checkout-summary-pane {
    background-color: #f1f5f9;
    padding: 3rem 2.25rem;
}

.checkout-form-pane {
    padding: 3rem 2.25rem;
}

.selected-product-card-preview {
    background: var(--surface-white);
    padding: 1.5rem;
    border-radius: var(--radius-fluid);
    border: 1px solid var(--border-subtle);
    margin-top: 1.25rem;
}

.condition-badge-pill {
    display: inline-block;
    background-color: var(--it-blue-tint);
    color: var(--it-blue-vivid);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin: 0.5rem 0 1.25rem 0;
}

.final-price-box {
    margin-top: 1.75rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.final-price-box span {
    color: var(--it-green-clean);
    font-size: 1.4rem;
    display: block;
}

.custom-radio-set label {
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.confirm-transaction-btn {
    width: 100%;
    background-color: var(--it-green-clean);
    color: var(--surface-white);
    border: none;
    padding: 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* Footer Container Blocks */
.site-base-footer {
    background-color: var(--it-slate-dark);
    color: #94a3b8;
    padding: 4.5rem 5% 2.5rem 5%;
}

.footer-layout-grid {
    display: grid;
    grid-template-columns: 1.20fr 1fr;
    gap: 4rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 3.5rem;
}

.footer-layout-grid h3, .footer-layout-grid h4 {
    color: var(--surface-white);
    margin-bottom: 1.2rem;
}

.footer-layout-grid p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.6rem;
}

.footer-legal-bar {
    text-align: center;
    padding-top: 2.5rem;
    font-size: 0.85rem;
}

/* Sticky Right Floating WhatsApp Node */
.floating-whatsapp-action-anchor {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--it-whatsapp-color);
    color: var(--surface-white);
    text-decoration: none;
    padding: 0.75rem 1.4rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
    z-index: 1000;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp-action-anchor:hover {
    transform: scale(1.06);
}

.whatsapp-badge-text {
    font-size: 0.9rem;
    font-weight: 700;
}

.hidden-element {
    display: none !important;
}

/* Unified Responsive Layout Adaptations */
@media(max-width: 1100px) {
    .main-branding-header { flex-wrap: wrap; padding: 1.25rem 1rem; }
    .logo-area { width: 100%; text-align: center; }
    .search-wrapper { order: 3; max-width: 100%; width: 100%; }
    .nav-container { order: 4; width: 100%; justify-content: center; }
    .auth-action-zone { order: 2; position: absolute; top: 1.5rem; right: 1rem; }
    .catalog-layout-wrapper { grid-template-columns: 1fr; }
    .sticky-sidebar-inner { position: static; }
}

@media(max-width: 700px) {
    .top-contact-bar { flex-direction: column; gap: 0.4rem; text-align: center; }
    .contact-meta-left { flex-direction: column; gap: 0.2rem; }
    .nav-links { gap: 1.2rem; }
    .slide-inner-content h2 { font-size: 1.8rem; }
    .checkout-split-grid { grid-template-columns: 1fr; }
    .checkout-summary-pane { padding: 1.75rem; }
    .checkout-form-pane { padding: 1.75rem; }
    .footer-layout-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .floating-whatsapp-action-anchor { bottom: 20px; right: 20px; padding: 0.7rem; }
    .whatsapp-badge-text { display: none; }
}