:root {
    /* Dark Mode (Default) */
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --accent-color: #ffffff;
    --secondary-text: #a0a0a0;
    --card-bg: #141414;
    --section-bg-alt: #0f0f0f;
    --border-color: rgba(255, 255, 255, 0.05);
    --mobile-menu-bg: rgba(10, 10, 10, 0.95);
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --transition-speed: 0.3s;
}

body.light-mode {
    /* Light Mode - High Contrast Black & White */
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #000000;
    --secondary-text: #000000;
    --card-bg: #ffffff;
    --section-bg-alt: #ffffff;
    --border-color: #000000;
    --mobile-menu-bg: rgba(255, 255, 255, 0.98);
}

body.light-mode header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #000000;
}

body.light-mode .hero h1 {
    background: none;
    -webkit-text-fill-color: initial;
    color: #000000;
}

body.light-mode .hero-bg {
    /* opacity: 0.1; */
    /* filter: grayscale(100%) invert(100%); */
    /* Let JS handle dot colors */
    opacity: 1;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* FOUC Fix */
.loading-lang body {
    visibility: hidden;
    opacity: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 300;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--secondary-text);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

.section {
    padding: 6rem 0;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    background: transparent;
}

.btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.05em;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--secondary-text);
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hero {
    min-height: 50vh;
    padding-top: 7rem;
    padding-bottom: 2rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: url('assets/images/hero_bg.png'); */
    /* background-size: cover; */
    /* background-position: center; */
    /* opacity: 0.4; */
    z-index: -1;
    overflow: hidden;
}

#hero-dots-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-video {
    flex: 1;
    z-index: 1;
    display: flex;
    justify-content: center;
    position: relative;
    /* For absolute positioning of controls */
}

.hero-video video {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
}

.video-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 12px;
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.fade-content {
    /* opacity: 0; */
    /* transition: opacity 0.6s ease-out; */
    /* will-change: opacity; */
    /* transform: translateZ(0); */
    opacity: 1;
    /* Ensure visible */
}

.hero-video:hover .video-controls,
.hero-video video:paused+.video-controls {
    opacity: 1;
}

.video-controls button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.video-controls button:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Features Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .grid {
        gap: 1.5rem;
    }
}

.section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(55, 55, 55, 0.2);
    padding: 1rem;
    transition: transform var(--transition-speed);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(55, 55, 55, 0.1);
}

.card-image {
    width: calc(100% + 3rem);
    max-width: none;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    border-radius: 0;
    background-color: var(--card-bg);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

/* Split Section */
.split-section {
    display: flex;
    align-items: center;
    gap: 4rem;
}

@media (max-width: 768px) {
    .split-section {
        gap: 2rem;
    }
}

.split-section:nth-child(even) {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 1;
}

.split-image img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    filter: grayscale(20%);
    transition: filter var(--transition-speed);
}

.split-image img:hover {
    filter: grayscale(0%);
}

/* Footer */
/* Footer */
footer {
    padding: 2rem 0;
    background-color: var(--bg-color);
    font-size: 12px;
    /* Unified small font size like Apple */
    color: var(--secondary-text);
    /* border-top removed to avoid duplication with .section border-bottom */
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Align to bottom like Apple's footer often does, or center? User said "same height". Center is safer. */
    align-items: center;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-speed);
    border-radius: 2px;
}

.btn-small:hover,
.btn-sm:hover,
.btn-refund:hover,
.btn-ship:hover,
.btn-view:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.25rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-text {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.footer-text p {
    margin: 0;
    color: var(--secondary-text);
    font-size: 11px;
    /* Smaller font size as requested */
}

.footer-actions {
    display: flex;
    align-items: center;
}

.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--secondary-text);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    /* Match footer font size */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-speed);
}

.theme-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

/* Language Selector */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.language-selector {
    position: relative;
}

#lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-family: var(--font-main);
    letter-spacing: 0.05em;
}

#lang-btn:hover {
    border-color: var(--accent-color);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 150px;
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    z-index: 1001;
}

.lang-dropdown.show {
    display: flex;
}

.lang-dropdown a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--secondary-text);
    transition: background 0.2s, color 0.2s;
}

.lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding-top: 1rem;
        /* Reduced from 10rem */
        padding-bottom: 1rem;
        /* Reduced from 6rem */
    }

    .hero-content {
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    .section {
        padding: 3rem 0;
    }

    .split-section {
        flex-direction: column;
        gap: 2rem;
    }

    .split-section:nth-child(even) {
        flex-direction: column;
    }

    .nav-right {
        gap: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        /* Full width on mobile */
        background-color: var(--mobile-menu-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1000;
        /* Behind hamburger but above content */
    }

    .nav-links.active {
        display: flex;
        /* Ensure flex display when active */
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-color);
    }
}

/* Product Detail Page */
.product-detail {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.product-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 2px;
    background-color: var(--card-bg);
    border: none;
}

.thumbnails {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 2px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition-speed), border-color var(--transition-speed);
    border: 1px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--accent-color);
}

.product-info {
    flex: 1;
}

.product-price {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 1.5rem;
}

/* Variant Options */
.variant-options-cell {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.variant-btn {
    padding: 0.4rem 1.2rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 2px;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
    letter-spacing: 0.05em;
}

.variant-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.variant-btn.active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--bg-color);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.specs-table th,
.specs-table td {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.specs-table th {
    color: var(--secondary-text);
    font-weight: 400;
    width: 40%;
}

.specs-table td {
    color: var(--text-color);
}

@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
        gap: 1.5rem;
    }

    .product-gallery,
    .product-info {
        width: 100%;
    }
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.qty-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-speed);
    border-radius: 2px;
}

.qty-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

.qty-input {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    height: 40px;
    width: 60px;
    text-align: center;
    font-size: 1rem;
    border-radius: 2px;
    -moz-appearance: textfield;
    appearance: none;
}

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

.qty-input:focus {
    outline: none;
    /* border-color is already accent-color, maybe add a box-shadow or just keep it simple */
}

/* Footer Alignment - Responsive */
@media (max-width: 768px) {
    footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

footer p {
    margin-bottom: 0;
}

/* Shop View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--secondary-text);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

/* --- Admin Responsive Styles --- */

/* Admin Container Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
    /* Header height */
}

.admin-content {
    flex: 1;
    padding: 2rem;
    overflow-x: hidden;
}

/* Responsive Admin Layout */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
        padding-top: 60px;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        overflow-x: auto;
        display: flex;
        gap: 1rem;
        white-space: nowrap;
    }

    .admin-sidebar a {
        padding: 0.5rem 1rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.05);
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-header .search-bar {
        width: 100%;
    }

    .admin-header .search-bar input {
        width: 100%;
    }
}

/* Responsive Tables (Card View) */
@media (max-width: 768px) {
    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        margin-bottom: 1.5rem;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .admin-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: right;
    }

    .admin-table td:last-child {
        border-bottom: none;
        justify-content: flex-end;
        gap: 0.5rem;
        padding-top: 1rem;
    }

    .admin-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--secondary-text);
        text-align: left;
        margin-right: 1rem;
    }

    /* Specific adjustments for content */
    .admin-table td img {
        width: 50px;
        height: 50px;
    }

    .order-summary-cell {
        text-align: right;
    }
}



.view-btn:hover,
.view-btn.active {
    border-color: var(--accent-color);
    color: var(--text-color);
}

/* View More Button */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    width: 100%;
}

.product-price-small {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.btn-view-more {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-speed);
}

.btn-view-more:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* List View Layout */
.grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.grid.list-view .card {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto auto auto;
    gap: 0 2rem;
    align-items: start;
    padding: 1.5rem;
}

.grid.list-view .card-image {
    grid-row: 1 / span 3;
    width: calc(100% + 1.5rem);
    max-width: none;
    height: calc(100% + 3rem);
    margin: -1.5rem 0 -1.5rem -1.5rem;
    border-radius: 0;
    aspect-ratio: auto;
    object-fit: cover;
}

.grid.list-view .card h3 {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.grid.list-view .card p {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 0;
}

.grid.list-view .product-footer {
    grid-column: 2;
    grid-row: 3;
    width: 100%;
    margin-top: 0;
    align-self: end;
}



@media (max-width: 768px) {
    .grid.list-view .card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .grid.list-view .card-image {
        width: calc(100% + 3rem);
        height: auto;
        aspect-ratio: 1 / 1;
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    }

    .grid.list-view .btn-view-more {
        margin-top: 0;
    }
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--secondary-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Phone Number Group */
.phone-group {
    display: flex;
    gap: 10px;
}

.phone-group select {
    flex: 0 0 120px;
    /* Fixed width for country code */
    width: 120px;
    text-overflow: ellipsis;
}

.phone-group input {
    flex: 1;
    min-width: 0;
    /* Allow input to shrink if needed */
}

@media (max-width: 480px) {
    .phone-group {
        flex-direction: column;
    }

    .phone-group select {
        width: 100%;
        flex: none;
    }
}

/* Address Row Grid */
.address-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .address-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .address-row {
        grid-template-columns: 1fr;
    }
}

/* Ensure select looks consistent with inputs */
.phone-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.phone-group select:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb .separator {
    color: var(--border-color);
}

.breadcrumb .current {
    color: var(--text-color);
}

/* Pricing Table */
.pricing-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    background: var(--card-bg);
}

.pricing-row {
    display: flex;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed);
}

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

.pricing-row:hover:not(.header) {
    background-color: rgba(255, 255, 255, 0.02);
}

.pricing-row.header {
    background-color: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--accent-color);
}

.col-item {
    flex: 1;
    font-weight: 500;
}

.col-desc {
    flex: 2;
    color: var(--secondary-text);
}

.col-price {
    flex: 1;
    text-align: right;
    color: var(--accent-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .pricing-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .col-price {
        text-align: left;
    }
}

/* Contact Form */
.contact-wrapper {
    display: flex;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.form-group input,
.form-group textarea {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 4px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Typewriter Effect */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: var(--accent-color);
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Hide hero content initially for typewriter effect */
.hero-content h1,
.hero-content p {
    visibility: hidden;
}

/* Delay CTA Button */
.hero-content .btn {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-content .btn.btn-visible {
    visibility: visible;
    opacity: 1;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    opacity: 1;
    transition: opacity var(--transition-speed);
}

.modal.active {
    display: flex;
}

.modal .modal-content {
    transform: translateY(0);
}

.modal.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform var(--transition-speed);
}

.modal.hidden .modal-content {
    transform: translateY(-20px);
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.modal-content p {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.default-badge {
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 600;
}

/* Cart Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

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

body.modal-open {
    overflow: hidden;
}

.modal-content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 450px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-weight: 300;
    letter-spacing: -0.02em;
}

.modal-message {
    margin-bottom: 2rem;
    color: var(--secondary-text);
    font-size: 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    background: transparent;
    border-radius: 0;
    /* Match standard btn */
    min-width: 140px;
}

.modal-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

.modal-btn.primary {
    background: var(--accent-color);
    color: var(--bg-color);
}

.modal-btn.primary:hover {
    background: transparent;
    color: var(--accent-color);
}

.modal-btn.secondary {
    border-color: var(--secondary-text);
    color: var(--secondary-text);
}

.modal-btn.secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

/* Address Selection Modal Items */
.address-item {
    display: block;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    background: rgba(255, 255, 255, 0.05);
}

.address-item:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.address-item .recipient {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-item .location {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.address-item .street {
    color: var(--text-color);
}

/* Order List Styles */
.order-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.3s ease;
}

.order-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.order-id {
    font-weight: 600;
}

.order-date {
    color: var(--secondary-text);
}

.order-products {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.order-product-name {
    font-size: 0.95rem;
    margin-top: 4px;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
}

.order-info {
    display: flex;
    gap: 1.5rem;
}

.order-status,
.order-total {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.status-value {
    color: var(--text-color);
    text-transform: capitalize;
}

.total-value {
    color: var(--accent-color);
    font-weight: 600;
}

.pay-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.pay-btn:hover {
    opacity: 0.9;
}

/* Mobile Responsive Order List */
@media (max-width: 768px) {
    .order-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .order-info {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .pay-btn {
        width: 100%;
        text-align: center;
    }
}

/* Admin Panel Styles */
.admin-container {
    display: flex;
    min-height: calc(100vh - 80px);
    /* Adjust based on header height */
    margin-top: 80px;
    /* Adjust based on header height */
}

.admin-sidebar {
    width: 250px;
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1rem;
    flex-shrink: 0;
}

.admin-sidebar ul {
    list-style: none;
    padding: 0;
}

.admin-sidebar li {
    margin-bottom: 0.5rem;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--secondary-text);
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--transition-speed);
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
}

.admin-content {
    flex: 1;
    padding: 2rem;
    overflow-x: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

.search-bar {
    display: flex;
    gap: 10px;
}

.search-bar input {
    padding: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: 4px;
    width: 300px;
}

.search-bar button {
    padding: 10px 15px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
}

.search-bar button:hover {
    border-color: var(--accent-color);
}

.table-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--secondary-text);
    font-weight: 500;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: capitalize;
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-paid {
    background-color: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.status-shipped {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-completed {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-cancelled {
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.status-closed {
    background-color: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    margin-right: 5px;
}

.btn-view:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-ship:hover {
    border-color: #2196f3;
    color: #2196f3;
}

.btn-close:hover {
    border-color: #f44336;
    color: #f44336;
}

.pagination {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.pagination button {
    padding: 8px 12px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button:not(:disabled):hover {
    border-color: var(--accent-color);
}

.pagination button.active {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}



.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-text);
}

.close-modal:hover {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-text);
}

.form-group input {
    width: 100%;
    padding: 10px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
}

.form-group input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition-speed);
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Admin Card & Form Styles */
.admin-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.admin-card h2 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    font-size: 1.5rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.admin-form-group {
    margin-bottom: 1rem;
}

.admin-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.admin-form-group input,
.admin-form-group select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
}

.admin-form-group input:focus,
.admin-form-group select:focus {
    border-color: var(--accent-color);
    outline: none;
}

.btn-delete {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.5);
}

.btn-delete:hover {
    background: #e74c3c;
    color: white;
}

.btn-edit {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}


/* --- Admin Responsive Styles --- */

/* Admin Container Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
    /* Header height */
}

.admin-content {
    flex: 1;
    padding: 2rem;
    overflow-x: hidden;
}

/* Responsive Admin Layout */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
        padding-top: 60px;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        overflow-x: auto;
        display: flex;
        gap: 1rem;
        white-space: nowrap;
    }

    .admin-sidebar a {
        padding: 0.5rem 1rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.05);
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-header .search-bar {
        width: 100%;
    }

    .admin-header .search-bar input {
        width: 100%;
    }
}

/* Responsive Tables (Card View) */
@media (max-width: 768px) {
    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        margin-bottom: 1.5rem;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .admin-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: right;
    }

    .admin-table td:last-child {
        border-bottom: none;
        justify-content: flex-end;
        gap: 0.5rem;
        padding-top: 1rem;
    }

    .admin-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--secondary-text);
        text-align: left;
        margin-right: 1rem;
    }

    /* Specific adjustments for content */
    .admin-table td img {
        width: 50px;
        height: 50px;
    }

    .order-summary-cell {
        text-align: right;
    }
}

.order-id-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.order-id-link:hover {
    text-decoration: underline;
}