* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #fff;
    color: #111;
}

/* TOP BAR */
.top-bar {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

.top-bar a {
    color: #fff;
    text-decoration: underline;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 28px;
    font-weight: 900;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    font-weight: 500;
}

.search {
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search input {
    border: none;
    background: transparent;
}

.nav-icons i {
    font-size: 20px;
    margin-left: 20px;
    cursor: pointer;
}

/* HERO */
.hero {
    display: flex;
    padding: 60px;
}

.hero-text {
    flex: 1;
    padding-right: 40px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 16px;
    margin-bottom: 25px;
}

.btn {
    background: black;
    color: white;
    padding: 12px 26px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.hero-image img {
    width: 500px;
    border-radius: 15px;
}

.brand-strip {
    display: flex;
    justify-content: space-around;
    padding: 40px 0;
    font-size: 30px;
    font-weight: 600;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.section {
    padding: 60px;
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 40px;
}

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
    transition: 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.price {
    margin-top: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.old {
    text-decoration: line-through;
    color: gray;
    font-weight: 400;
    font-size: 0.7rem;
}

.disc {
    color: red;
    font-weight: 600;
    font-size: 0.7rem;
}

/* STYLE GRID */
.style-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.style-card {
    background: #f2f2f2;
    padding: 80px;
    font-size: 26px;
    font-weight: 700;
    border-radius: 15px;
}

/* FOOTER */
footer {
    background: #000;
    color: #fff;
    padding: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4,
.footer-col h3 {
    margin-bottom: 15px;
}

.footer-col p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-copy {
    text-align: center;
    opacity: 0.7;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.nav-fixed {
    top: 0 !important;
    transition: top 0.25s ease;
}

.topbar-hidden {
    transform: translateY(-100%);
    transition: transform 0.25s ease;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    overflow: hidden;
}

.product-info {
    width: 62%;
    display: flex;
    gap: 12px;
    align-items: center;
}

.actions {
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    overflow: hidden;
    gap: 8px;
}

@media (max-width: 480px) {
    .cart-item {
        padding: 8px 0;
    }

    .product-info {
        width: 65%;
        gap: 8px;
    }

    .product-info img {
        width: 60px !important;
        height: 60px !important;
    }

    .product-info h4 {
        font-size: 16px;
    }

    .product-info p {
        font-size: 12px;
    }

    .actions {
        width: 30%;
    }

    .actions button {
        font-size: 14px;
    }

    .btn-minus, .btn-plus {
        width: 28px !important;
        height: 28px !important;
        background-color: #f0f0f0;
        border: 1px solid #ccc;
    }
}

@media (max-width: 420px) {
    .cart-item {
        padding: 6px 0;
    }

    .product-info {
        width: 70%;
        gap: 6px;
    }

    .product-info img {
        width: 50px !important;
        height: 50px !important;
    }

    .product-info h4 {
        font-size: 14px;
    }

    .product-info p {
        font-size: 11px;
    }

    .actions {
        width: 25%;
    }

    .actions button {
        font-size: 12px;
    }

    .btn-minus, .btn-plus {
        width: 24px !important;
        height: 24px !important;
        background-color: #f0f0f0;
        border: 1px solid #ccc;
    }
}

.promo-code {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.apply-btn {
    width: 80px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .promo-code {
        gap: 6px;
    }

    .apply-btn {
        min-width: 70px;
        font-size: 14px;
    }
}

.landing-section {
    padding: 48px 24px;
}

.landing-row {
    display: flex;
    flex-direction: column;
 /* mobile first: stacked */
    gap: 24px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-row.reverse {
}

.landing-image,
.landing-text {
    width: 100%;
}

.landing-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 16px;
}

.landing-text h2 {
    font-size: 28px;
    color: #222;
 /* abu gelap */
    margin-bottom: 8px;
}

.landing-text .company {
    font-size: 15px;
    color: #555;
    margin-bottom: 14px;
    font-weight: 600;
}

.landing-text p {
    color: #444;
    line-height: 1.6;
    max-width: 60ch;
}

@media (min-width: 768px) {
    .landing-row {
        flex-direction: row;
        gap: 32px;
        align-items: center;
    }

    .landing-row.reverse {
        flex-direction: row-reverse;
    }

    .landing-image, .landing-text {
        flex: 1 1 50%;
    }

    .landing-section {
        padding: 64px 32px;
    }

    .landing-image img {
        max-height: 420px;
    }
}

.dark .landing-section {
}

.dark .landing-text h2 {
    color: #f8fafc;
 /* very light */
}

.dark .landing-text .company {
    color: #cbd5e1;
 /* soft-muted */
}

.dark .landing-text p {
    color: #e2e8f0;
 /* readable paragraph color */
}

.testimonials-section {
    padding: 48px 24px;
}

.testimonials-header {
    align-items: center;
}

.testimonials-title {
    font-size: 28px;
    font-weight: 800;
    color: #222;
}

.testimonials-nav {
    display: flex;
    gap: 8px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(16,24,40,0.08);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16,24,40,0.06);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
 /* ensure equal height */
}

.testimonial-card .card-top {
    display: flex;
    gap: 12px;
}

.avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #111827;
    font-weight: 700;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.card-content .card-title {
    font-size: 16px;
    margin-bottom: 6px;
    color: #111827;
}

.card-content .card-body {
    color: #4b5563;
    line-height: 1.5;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.rating {
    color: #f59e0b;
 /* amber */
    font-size: 16px;
}

.username {
    color: #6b7280;
    font-size: 13px;
}

@media (min-width: 768px) {
    .testimonials-section {
        padding: 64px 32px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* Dark mode tweaks */
.dark .testimonial-card {
    background: #0b1220;
    box-shadow: 0 8px 24px rgba(2,6,23,0.6);
}

.dark .testimonial-card .card-content .card-title {
    color: #f8fafc;
}

.dark .testimonial-card .card-content .card-body {
    color: #cbd5e1;
}

.dark .username {
    color: #94a3b8;
}

.dark body {
    background: #000 !important;
    color: #e6eef8 !important;
}

/* Navbar and top bar */
.dark .navbar {
    background: transparent;
    border-bottom-color: rgba(255,255,255,0.06);
}

.dark .top-bar {
    background: #000;
    color: #fff;
}

/* Product cards and grids */
.dark .product-card {
    background: #071024;
    border-color: #1f2937;
    color: #e6eef8;
}

.dark .product-card h4,
.dark .product-card .price {
    color: #f8fafc;
}

/* Style cards */
.dark .style-card {
    background: #0b1220;
    color: #e6eef8;
}

/* Brand strip borders */
.dark .brand-strip {
    border-top-color: rgba(255,255,255,0.04);
    border-bottom-color: rgba(255,255,255,0.04);
    color: #cbd5e1;
}

/* Section titles */
.dark .section-title,
.dark .testimonials-title {
    color: #f8fafc;
}

.dark .btn {
    background: #fff;
    color: #071024;
}

.dark footer {
    background: #000;
    color: #e6eef8;
}

/* Search pill */
.dark .search {
    background: #111827;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f8f5;
 /* soft page background for auth pages */
    padding: 24px;
}

.auth-card {
    width: 90%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(16,24,40,0.08);
}

.auth-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 18px;
    color: #111827;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e6e8eb;
    margin-bottom: 14px;
    font-size: 15px;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-input:focus {
    outline: none;
    border-color: #8FBA3B;
 /* accent */
    box-shadow: 0 6px 18px rgba(143,186,59,0.12);
}

.auth-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(90deg,#8FBA3B 0%, #C7DA48 100%);
    color: #062014;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 8px 20px rgba(139,164,48,0.12);
    margin-top: 4px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    opacity: 0.98;
}

.auth-note {
    text-align: center;
    margin-top: 16px;
    color: #555;
    font-size: 14px;
}

.auth-link {
    color: #8FBA3B;
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Accessibility helper */
.sr-only {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

@media (max-width: 420px) {
    .auth-card {
        padding: 24px;
    }

    .auth-title {
        font-size: 22px;
    }
}

/* Dark mode adjustments for auth pages */
.dark .auth-page {
    background: #071024;
}

.dark .auth-card {
    background: #071012;
    box-shadow: 0 10px 30px rgba(2,6,23,0.6);
}

.dark .auth-title {
    color: #f8fafc;
}

.dark .auth-input {
    background: #0b1220;
    border-color: #1f2937;
    color: #e6eef8;
}

.dark .auth-input:focus {
    box-shadow: 0 6px 18px rgba(143,186,59,0.12);
    border-color: #8FBA3B;
}

.dark .auth-note {
    color: #cbd5e1;
}

.dark .auth-link {
    color: #cfe28a;
}

/* Auth form feedback + validation styles */
.form-message {
    display: none;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.form-message.error {
    background: #fff5f5;
    color: #9b1c1c;
    border: 1px solid rgba(155,28,28,0.08);
}

.form-message.success {
    background: #f6fff0;
    color: #1f6f0a;
    border: 1px solid rgba(31,111,10,0.08);
}

.input-error {
    border-color: #f43f5e !important;
    box-shadow: 0 6px 18px rgba(244,63,94,0.07) !important;
}

.pw-note {
    margin-top: -6px;
    margin-bottom: 8px;
    color: #ef4444;
    font-size: 13px;
}

@media (max-width: 420px) {
    .promo-code {
        gap: 4px;
    }

    .apply-btn {
        min-width: 60px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .cart-item {
        padding: 4px 0;
    }

    .product-info {
        width: 75%;
        gap: 4px;
    }

    .product-info img {
        width: 40px !important;
        height: 40px !important;
    }

    .product-info h4 {
        font-size: 12px;
    }

    .product-info p {
        font-size: 10px;
    }

    .actions {
        width: 20%;
    }

    .actions button {
        font-size: 10px;
    }

    .btn-minus, .btn-plus {
        width: 16px !important;
        height: 16px !important;
    }

    .promo-code {
        gap: 2px;
    }

    .apply-btn {
        min-width: 50px;
        font-size: 10px;
    }
}

/* BREADCRUMB */
.contact-breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 32px;
}

.dark .contact-breadcrumb {
    color: #9ca3af;
}

.contact-breadcrumb a:hover {
    text-decoration: underline;
}

/* TITLES */
.contact-title {
    font-size: 2.8rem;
    font-weight: 800;
}

.contact-desc {
    max-width: 600px;
    margin: 0 auto;
    color: #6b7280;
}

.dark .contact-desc {
    color: #d1d5db;
}

.contact-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.dark .contact-card {
    background: #1f2937;
    border-color: #4b5563;
}

.contact-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.3rem;
}

.contact-label {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 6px;
}

.contact-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    transition: 0.2s;
}

.contact-input:focus {
    border-color: black;
}

.dark .contact-input {
    background: #374151;
    border-color: #4b5563;
}

.dark .contact-input:focus {
    border-color: white;
}

/* BUTTON */
.contact-submit {
    width: 100%;
    padding: 12px;
    background: black;
    color: white;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.25s;
}

.contact-submit:hover {
    opacity: 0.85;
}

.dark .contact-submit {
    background: white;
    color: black;
}

.contact-social {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 10px;
    transition: 0.2s;
    color: inherit;
}

.contact-social:hover {
    background: #f3f4f6;
}

.dark .contact-social:hover {
    background: #4b5563;
}

.contact-divider {
    margin: 2rem 0;
    border-color: #d1d5db;
}

.dark .contact-divider {
    border-color: #4b5563;
}

.contact-info {
    color: #6b7280;
    margin-bottom: 8px;
}

.dark .contact-info {
    color: #d1d5db;
}
