:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --bg: #0f172a;               /* Dark canvas background */
    --card-bg: #1e293b;          /* Dark card surface */
    --text-main: #f8fafc;         /* High-contrast white text */
    --text-muted: #94a3b8;        /* Soft gray muted text */
    --border: #334155;            /* Dark subtle border */
    --dark-banner: #020617;        /* Deeper header/footer background */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--dark-banner);
    color: #ffffff;
    text-align: center;
    padding: 20px 15px;
    border-bottom: 1px solid var(--border);
}

.brand-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.trust-banner {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
    margin-top: 10px;
    color: var(--text-muted);
}

.main-nav {
    background: var(--card-bg);
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
}

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--primary);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 25px 15px;
    flex: 1;
    width: 100%;
}

.search-section {
    text-align: center;
    margin-bottom: 15px;
}

.search-section input {
    width: 100%;
    max-width: 450px;
    padding: 12px 16px;
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.search-section input::placeholder {
    color: var(--text-muted);
}

.rating-badge {
    text-align: center;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.category-header h2 {
    font-size: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

/* Product Grid & Dark Card Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin: 10px 0 5px;
    color: var(--text-main);
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.stock-tag {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin: 6px 0 12px;
}

/* Vertical Action Buttons */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 13px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #334155;
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 13px;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-large {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

.btn-back {
    background: #334155;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 15px;
}

.link-details {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
    text-align: center;
}

.link-details:hover {
    color: var(--text-main);
}

.page { display: none; }
.page.active { display: block; }

.checkout-card, .card-box {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row > div { flex: 1; }

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 4px;
    color: var(--text-main);
}

input, select {
    width: 100%;
    padding: 10px;
    background: var(--bg);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}

.alert-warning {
    background: #451a03;
    color: #fde68a;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin: 12px 0;
    border: 1px solid #78350f;
}

.payment-details-box {
    background: var(--bg);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid var(--border);
}

.copy-field {
    display: flex;
    background: var(--card-bg);
    border: 1px dashed var(--text-muted);
    padding: 8px 12px;
    border-radius: 6px;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    word-break: break-all;
    font-family: monospace;
    font-size: 13px;
}

.copy-field button {
    background: #334155;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.auto-detect-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.btn-voucher {
    display: inline-block;
    background: #0284c7;
    color: white;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    margin-top: 8px;
}

.view-counter {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid var(--border);
    z-index: 90;
}

.floating-telegram {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0088cc;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 100;
}

footer {
    background: var(--dark-banner);
    color: white;
    padding: 30px 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border);
}

.footer-col h4 {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.footer-col a:hover {
    color: var(--text-main);
}

@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
}

/* Product Details Box Container - Light Background */
#page-detail .detail-wrapper {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    margin-top: 15px;
    color: #0f172a;
    line-height: 1.7;
    font-size: 15px;
}

/* Headings: Solid Black */
.detail-wrapper h1,
.detail-wrapper h2,
.detail-wrapper h3,
.detail-wrapper h4 {
    color: #000000;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 12px;
}

/* Paragraphs: Dark Black/Charcoal Text */
.detail-wrapper p {
    color: #0f172a;
    margin-bottom: 16px;
}

/* List Indenting & Dark Bullets */
.detail-wrapper ul,
.detail-wrapper ol {
    margin: 16px 0 16px 24px;
    padding-left: 20px;
    color: #0f172a;
}

.detail-wrapper li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #0f172a;
}

/* Highlight boxes inside details */
.detail-wrapper blockquote {
    background: #f1f5f9;
    border-left: 4px solid var(--primary);
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 0 6px 6px 0;
    color: #0f172a;
}
/* Make ONLY the 'Other Products Available' item text white */
#detail-content ul li span {
    color: #ffffff !important;
}

#detail-content ul li span strong {
    color: #ffffff !important;
}

/* Disable text highlighting and dragging */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
}

/* Enable smooth transitions across interactive elements */
.card-box,
.product-card,
.checkout-card,
.payment-box,
.btn-primary,
.btn-secondary,
.btn-voucher,
.btn-back,
.select-input,
.copy-field,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Card Boxes & Product Cards Hover Effect */
.card-box:hover,
.product-card:hover,
.checkout-card:hover,
.payment-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Primary & Secondary Buttons Hover Effect */
.btn-primary:hover,
.btn-secondary:hover,
.btn-voucher:hover,
.btn-back:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* Form Input & Select Box Focus/Hover Glow */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
.select-input:focus,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
.select-input:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    outline: none;
}

/* Navigation Links Hover */
.main-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
    transform: translateY(-1px);
    color: #60a5fa;
}

/* Page Transition Base */
.page {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
    will-change: opacity, transform;
}

/* Active Page with Smooth Fade & Lift */
.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scrolling across the site */
html {
    scroll-behavior: smooth;
}

/* REVIEWS SECTION STYLES */
.reviews-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.rating-summary-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.big-rating {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f1f5f9;
}

.rating-details {
    display: flex;
    flex-direction: column;
}

.sub-text {
    font-size: 0.85rem;
    color: #94a3b8;
}

.review-form-box {
    margin-bottom: 24px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
}

.review-form-box textarea {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    margin-top: 6px;
    font-family: inherit;
}

.reviews-feed-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 18px 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    font-weight: 600;
    color: #f8fafc;
    font-size: 0.95rem;
}

.verified-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.review-date {
    font-size: 0.8rem;
    color: #64748b;
}

.review-rating {
    font-size: 1.1rem;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.star-filled {
    color: #f59e0b;
}

.star-empty {
    color: #475569;
}

.review-body {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   ORDER CONFIRMATION PAGE REFINEMENTS
   ========================================================================== */

#page-confirmation {
    padding: 30px 15px;
}

.confirmation-container {
    max-width: 860px;
    margin: 0 auto;
}

/* Header Section */
.confirmation-header {
    text-align: center;
    margin-bottom: 28px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: radial-gradient(circle, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
}

.confirmation-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 6px;
}

.sub-heading {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Featured Order ID Banner */
.order-id-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1fr solid #334155;
    border-left: 5px solid #38bdf8;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.label-text {
    font-size: 0.725rem;
    color: #38bdf8;
    letter-spacing: 1.2px;
    font-weight: 700;
    text-transform: uppercase;
}

.id-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.id-display strong {
    font-size: 1.75rem;
    color: #ffffff;
    letter-spacing: 1px;
    font-family: monospace;
}

.track-hint {
    margin-top: 14px;
    font-size: 0.85rem;
    color: #cbd5e1;
    background: rgba(56, 189, 248, 0.08);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    line-height: 1.4;
}

/* Two-Column Grid */
.confirmation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.details-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.details-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 18px;
    border-bottom: 1px solid #334155;
    padding-bottom: 10px;
}

/* Key-Value Data Rows */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    font-size: 0.875rem;
    gap: 12px;
}

.detail-row span {
    color: #94a3b8;
    white-space: nowrap;
}

.detail-row strong {
    color: #f1f5f9;
    text-align: right;
    word-break: break-word;
}

.detail-row.full-width {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
}

.address-box {
    background: #0f172a;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Payment Section Accents */
.badge-payment {
    background: #334155;
    color: #38bdf8;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
}

.total-price {
    color: #4ade80 !important;
    font-size: 1.25rem !important;
    font-weight: 700;
}

/* Interactive Payment Box */
.payment-dest-box {
    margin-top: 16px;
    background: #0f172a;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #334155;
}

.payment-dest-box label {
    font-size: 0.775rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: #1e293b;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #334155;
}

.copy-field span {
    font-family: monospace;
    font-size: 0.85rem;
    color: #38bdf8;
    word-break: break-all;
}

/* Buttons */
.btn-copy {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.btn-copy:hover {
    background: #2563eb;
}

/* Danger Warning Box */
.alert-danger {
    margin-top: 18px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid #ef4444;
    color: #fca5a5;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Page Navigation Actions */
.confirmation-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #334155;
    color: #f8fafc;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.btn-secondary:hover {
    background: #475569;
}

/* Mobile Responsive Tweaks */
@media (max-width: 768px) {
    .confirmation-grid {
        grid-template-columns: 1fr;
    }
    .id-display {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-copy {
        width: 100%;
        text-align: center;
    }
    .confirmation-actions {
        flex-direction: column;
    }
    .confirmation-actions button {
        width: 100%;
    }
}

/* ==========================================================================
   TRACK ORDER PAGE STYLING
   ========================================================================== */

#page-track {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 15px;
}

.track-hero-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4);
}

.track-icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    font-size: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.track-hero-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 8px;
}

.track-subtitle {
    color: #94a3b8;
    font-size: 0.925rem;
    max-width: 480px;
    margin: 0 auto 28px auto;
    line-height: 1.5;
}

/* Integrated Search Input Form */
.track-search-form {
    display: flex;
    gap: 10px;
    max-width: 540px;
    margin: 0 auto;
}

.input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    color: #64748b;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    background: #0f172a;
    border: 1.5px solid #334155;
    border-radius: 10px;
    padding: 14px 14px 14px 42px;
    color: #f8fafc;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #64748b;
}

.input-wrapper input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
    background: #090d16;
}

.btn-track-submit {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-track-submit:hover {
    background: #1d4ed8;
}

.btn-track-submit:active {
    transform: scale(0.98);
}

.track-result-wrapper {
    margin-top: 24px;
}

/* Mobile Layout Adjustments */
@media (max-width: 600px) {
    .track-hero-card {
        padding: 24px 16px;
    }
    
    .track-search-form {
        flex-direction: column;
        gap: 12px;
    }

    .btn-track-submit {
        padding: 14px;
        width: 100%;
    }
}

/* CHECKOUT TRUST BANNER */
.checkout-trust-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-left: 4px solid #10b981;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.checkout-trust-banner .trust-icon {
    font-size: 1.25rem;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-trust-banner .trust-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.875rem;
    line-height: 1.4;
}

.checkout-trust-banner .trust-text strong {
    color: #34d399;
    font-weight: 600;
}

.checkout-trust-banner .trust-text span {
    color: #a7f3d0;
    font-size: 0.825rem;
}

/* Mobile Alignment Adjustment */
@media (max-width: 480px) {
    .checkout-trust-banner {
        align-items: flex-start;
        padding: 10px 12px;
    }
}

.reviews-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.review-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.review-card:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
}
