@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Montserrat:wght@400;500;600&display=swap');

/* =====================================
  Global Reset & Variables
===================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.4s ease-in-out;
}

:root {
    --primary: #D4AF37;
    /* Main Gold */
    --accent: #FFC107;
    /* Accent Amber/Gold */
    --danger: #fb641b;
    /* Kept for strong call-to-action */
    --text-dark: #f0f0f0;
    /* Light Gray for Text */
    --text-light: #121212;
    /* Black for text on gold backgrounds */
    --bg-light: #121212;
    /* Main Dark Background */
    --bg-white: #1E1E1E;
    /* Lighter Dark for Cards */
    --shadow: rgba(212, 175, 55, 0.15);
    /* Subtle Gold Shadow */
    --border-color: #333;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    font-family: "Montserrat", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo-section .logo,
a.logo {
    font-family: "Playfair Display", serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.page-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--bg-white);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

header {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.logo-section .logo,
a.logo {
    font-size: 28px;
    font-weight: bold;
    font-style: normal;
    color: var(--primary);
    display: block;
}

.explore-plus {
    font-size: 12px;
    font-style: italic;
    color: var(--text-dark);
    opacity: 0.8;
}

.explore-plus span {
    color: var(--accent);
    font-weight: 500;
}

/* Search Bar */
.search-section {
    flex-grow: 1;
    margin: 0 20px;
    position: relative;
}

.search-section input {
    width: 100%;
    padding: 10px 40px 10px 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    outline: none;
    font-size: 16px;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.search-section input:focus {
    border-color: var(--primary);
}

.search-section .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    cursor: pointer;
}


.actions-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.actions-section a,
.actions-section button {
    color: var(--text-dark);
    font-weight: 500;
}

.actions-section a:hover {
    color: var(--primary);
}

.login-btn {
    background: var(--primary);
    color: var(--text-light) !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid var(--primary);
}

.login-btn:hover {
    background: transparent;
    color: var(--primary) !important;
}

/* =====================================
  Category Navbar
===================================== */
.category-navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 12px 0;
    background: var(--bg-white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.category-item {
    text-align: center;
    font-weight: 500;
    cursor: pointer;
}

.category-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 5px;
    filter: brightness(0.9) saturate(1.2);
    /* Enhance image colors for dark theme */
}

.category-item:hover {
    transform: scale(1.1);
    color: var(--primary);
}


/* =====================================
  Product Grid & Card
===================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.product-card {
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 2px 6px var(--shadow);
    transition: all 0.3s ease-out;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px var(--shadow);
    border-color: var(--primary);
}

.product-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 15px;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.product-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: "Playfair Display", serif;
    flex-grow: 1;
}

.price-container {
    font-size: 1rem;
    font-weight: bold;
}

.product-card-price {
    color: var(--primary);
}

.product-card-original-price {
    text-decoration: line-through;
    color: #888;
    margin-left: 8px;
    font-size: 0.9em;
}

.product-card-discount {
    color: #28a745;
    font-weight: bold;
    margin-left: 8px;
    font-size: 0.9em;
}

.btn-add-to-cart,
.btn-buy-now,
.btn-place-order,
#submit-review-btn {
    padding: 10px;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 6px;
}

.btn-add-to-cart {
    background: var(--accent);
    color: var(--text-light);
}

.btn-buy-now,
.btn-place-order,
#submit-review-btn {
    background: var(--danger);
}

.btn-add-to-cart:hover,
.btn-buy-now:hover,
.btn-place-order:hover,
#submit-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--accent);
    /* Golden Glow Effect */
}

/* --- Login & Register Page --- */
.login-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.form-container {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 350px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.form-container h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary);
}

.form-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.form-container input:focus {
    border-color: var(--primary);
}

.form-container button {
    width: 100%;
    padding: 12px;
    background-color: var(--danger);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.form-container button:hover {
    box-shadow: 0 0 15px var(--danger);
}


.form-container a {
    color: var(--primary);
    margin-top: 15px;
    display: inline-block;
    font-size: 14px;
}

.form-container a:hover {
    text-decoration: underline;
}

.form-links {
    display: flex;
    justify-content: space-between;
}

.error-message {
    color: red;
    font-size: 12px;
    margin-top: 10px;
    min-height: 15px;
}

.success-message {
    color: green;
}

/* --- Product Details Page --- */
.product-details-page .product-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.product-details-page .product-info-section h1 {
    font-size: 28px;
}

.thumbnail-strip {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail-strip img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 4px;
}

.thumbnail-strip img.active {
    border-color: var(--primary);
}

/* --- Media Slider --- */
.media-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border-color);
    overflow: hidden;
    border-radius: 4px;
    background-color: #000;
}

#media-slides {
    width: 100%;
    height: 100%;
}

.media-slide {
    display: none;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}

.slider-btn.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.slider-btn.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* --- Video Container --- */
.product-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    cursor: pointer;
}

.product-video-container .video-thumbnail {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: none;
    transform: translate(-50%, -50%) scale(1);
    object-fit: contain;
}

.product-video-container .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}

.product-video-container:hover .play-button {
    background-color: rgba(255, 0, 0, 0.8);
}

.product-video-container .play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 26px;
    border-color: transparent transparent transparent white;
    margin-left: 5px;
}

.product-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.action-buttons {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

/* --- Cart & Checkout --- */
.cart-page-main,
.checkout-page-main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px;
}

.cart-container,
.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

.cart-items-list,
.cart-summary-box,
.checkout-form,
.order-summary {
    background-color: var(--bg-white);
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.cart-item img {
    width: 80px;
    border-radius: 4px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.total-row {
    font-weight: bold;
    font-size: 18px;
}

.address-option {
    padding: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.address-option input {
    margin-right: 10px;
}

#payment-agreement-section {
    border: 1px solid var(--border-color);
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
}

#payment-agreement-section h4 {
    color: var(--primary);
}

.agreement-text {
    font-size: 14px;
    margin-bottom: 10px;
    color: #aaa;
}

.payment-account-option {
    margin-bottom: 5px;
}

#other-account-name {
    width: 100%;
    padding: 8px;
}

.btn-email-action {
    display: block;
    width: 80%;
    margin: 10px auto;
    padding: 12px;
    background: var(--primary);
    color: var(--text-light);
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

/* --- Address & Orders & Seller/Admin Page --- */
.address-form-container {
    margin-bottom: 20px;
}

.address-form-container input,
.address-form-container textarea,
.address-form-container select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.address-form-container button {
    padding: 12px 20px;
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

.address-item {
    border: 1px solid var(--border-color);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: #2a2a2a;
}

.order-item {
    border: 1px solid var(--border-color);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

/* --- Status Styles (Payment and Order) --- */
.order-status-placed {
    color: #58a6ff;
    font-weight: bold;
}

.order-status-shipped {
    color: #e3b341;
    font-weight: bold;
}

.order-status-delivered {
    color: #56d364;
    font-weight: bold;
}

.status-paid {
    color: #56d364;
    font-weight: bold;
}

.status-unpaid {
    color: #f85149;
    font-weight: bold;
}

.status-pending-verification {
    color: #e3b341;
    font-weight: bold;
}

/* --- Search Page Styles --- */
.search-page-main {
    max-width: 1400px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}

.filters-sidebar {
    background-color: var(--bg-white);
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: fit-content;
    border: 1px solid var(--border-color);
}

.filter-group {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
}

.price-filter-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-filter-inputs input {
    width: 100px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.filter-option {
    margin-bottom: 8px;
}

.filter-option label {
    margin-left: 8px;
}

.product-list-item {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    background-color: var(--bg-white);
    border-radius: 4px;
    transition: box-shadow 0.2s;
}

.product-list-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-image-section {
    text-align: center;
}

.product-image-section img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    padding: 10px;
}

.product-details-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-details-section .rating {
    background-color: var(--accent);
    color: var(--text-light);
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 10px;
}

.product-details-section ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #aaa;
}

.product-price-section h2 {
    font-size: 24px;
}

.no-products {
    padding: 40px;
    text-align: center;
    font-size: 18px;
    color: #878787;
}

/* --- Responsive Design & Hamburger Menu --- */
.mobile-only {
    display: none;
}

.mobile-nav {
    display: none;
}

.overlay {
    display: none;
}


.deals-section .category-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-dark);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    margin-top: 20px;
}


/* --- Reviews Section Styles --- */
.reviews-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

#review-form-container {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#review-form-container h4 {
    margin-bottom: 15px;
}

#review-comment {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 16px;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.review-item {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.review-body {
    color: #aaa;
}

.review-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.love-react-btn {
    background: none;
    border: 1px solid #444;
    color: #878787;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.love-react-btn.loved {
    background-color: #d9534f40;
    color: #d9534f;
    border-color: #d9534f;
}

/* Star Rating Input CSS */
.star-rating-input {
    display: inline-block;
    direction: rtl;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 30px;
    color: #444;
    cursor: pointer;
}

.star-rating-input input:checked~label,
.star-rating-input label:hover,
.star-rating-input label:hover~label {
    color: var(--primary);
}


/* --- Media Slider Styles --- */
.media-slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    border-radius: 4px;
    background-color: #000;
}

.media-slide {
    display: none;
    width: 100%;
    height: 100%;
    text-align: center;
}

.media-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.media-slide .product-video-container {
    width: 100%;
    height: 100%;
}

.media-slide .product-video-container iframe {
    width: 100%;
    height: 100%;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 0 3px 3px 0;
}

.slider-btn.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.slider-btn.next {
    right: 0;
}


/* --- Seller Dashboard My Products Styles --- */
.seller-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 8px;
    gap: 15px;
}

.seller-product-details {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.seller-product-thumb {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
}

.seller-product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stock-update-form {
    display: flex;
    gap: 5px;
}

.stock-quantity-input {
    width: 70px;
    padding: 6px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.btn-update-stock {
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-delete-product {
    background-color: #d9534f;
    /* Red color */
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-delete-product:hover {
    background-color: #c9302c;
}

/* --- Product Rating Display Style --- */
#product-rating {
    background-color: var(--accent);
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 16px;
    display: inline-block;
    margin: 10px 0;
    font-weight: 500;
}

#product-rating small {
    font-weight: normal;
    font-size: 14px;
    opacity: 0.9;
}

/* --- Out of Stock Message Styles --- */
.out-of-stock-message {
    color: #d9534f;
    font-weight: bold;
    font-size: 18px;
    margin: 10px 0;
}

.out-of-stock-message-small {
    color: #d9534f;
    font-size: 12px;
    font-weight: bold;
}

.action-buttons button:disabled,
.cart-item-quantity button:disabled,
#quantity-input:disabled {
    background-color: #555 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* =====================================
  NEW STYLES FOR MY ORDERS and SELLER DASHBOARD
===================================== */

/* --- User's "My Orders" Page (Flipkart Style) --- */
.order-item-user {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
}

.order-header-user {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
}

.order-status-user {
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 14px;
    text-transform: capitalize;
    flex-shrink: 0;
}

.status-placed {
    background-color: #2563eb;
    color: white;
}

.status-shipped {
    background-color: #f59e0b;
    color: var(--text-light);
}

.status-delivered {
    background-color: #16a34a;
    color: white;
}

.status-cancelled {
    background-color: #dc2626;
    color: white;
}

.order-body-user {
    padding: 15px 0;
}

.order-product-item-user {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.order-product-item-user:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.order-product-thumb-user {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.order-product-details-user {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.order-product-details-user p {
    flex-grow: 1;
    margin: 0;
    font-weight: 600;
}

.order-product-details-user small {
    flex-shrink: 0;
    color: #aaa;
}

.order-product-details-user span {
    flex-shrink: 0;
    font-weight: bold;
}

.order-footer-user {
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

/* --- Seller Dashboard Tabs & Content --- */
.dashboard-section {
    margin-top: 30px;
}

.tabs-nav {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.tab-link {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    border-bottom: 3px solid transparent;
}

.tab-link:hover {
    opacity: 1;
}

.tab-link.active {
    opacity: 1;
    border-bottom: 3px solid var(--primary);
    font-weight: bold;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

.summary-box {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.summary-box h5 {
    color: var(--primary);
    margin-bottom: 10px;
}

.order-item {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.order-items-list-seller {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.order-item-seller {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.order-item-thumb-seller {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.seller-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.seller-actions>div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.seller-order-selector {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.btn-cancel-order {
    background-color: #d9534f;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.seller-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #2a2a2a;
}

.seller-product-details {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
}

.seller-product-thumb {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.stock-update-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.stock-quantity-input {
    width: 80px;
    padding: 8px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
}

.btn-update-stock {
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* --- New Styles for Payment Status on Order Page --- */

.status-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.payment-status-user {
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 12px;
    text-transform: capitalize;
}

/* Payment Status Colors */
.status-paid {
    background-color: #16a34a;
    /* Green */
    color: white;
}

.status-unpaid {
    background-color: #dc2626;
    /* Red */
    color: white;
}

.status-pending-verification {
    background-color: #f59e0b;
    /* Amber */
    color: var(--text-light);
}

.status-failed {
    background-color: #ef4444;
    /* Lighter Red */
    color: white;
}

.status-n-a {
    background-color: #6b7280;
    /* Gray */
    color: white;
}



/* --- Address Form Specific Styles --- */

.address-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Duti column toiri kora hoyechhe */
    gap: 15px;
    /* Duti field-er majhe faka jayga */
    margin-bottom: 15px;
}

/* Street address textarea-ke puro jayga dewar jonno */
.address-form-grid textarea {
    grid-column: 1 / -1;
    /* Duti column-er soman jayga nebe */
}

/* Mobile screen-er jonno (responsive design) */
@media (max-width: 100px) {
    .address-form-grid {
        grid-template-columns: 1fr;
        /* Mobile-e ekta column thakbe */
    }
}

/* --- Admin Panel Specific Styles --- */

.tier-label {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: normal;
}

.link-style {
    color: var(--primary);
    text-decoration: underline;
}

.admin-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-order-items {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
}

.admin-order-items li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.admin-item-thumb {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
}

.payer-info-admin {
    font-style: italic;
    color: #ccc;
    font-size: 0.9rem;
}

.admin-order-selector {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.seller-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.btn-revoke {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.seller-details-box {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #2a2a2a;
}

.product-list-item-admin {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-list-item-admin:last-child {
    border-bottom: none;
}

.btn-delete-product {
    background: none;
    border: 1px solid #d9534f;
    color: #d9534f;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

/* =====================================
  Custom Confirmation Modal Styles
===================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    /* Initially hidden */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.modal-box {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: scale(0.95);
    animation: fadeInScale 0.3s ease-out forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


.modal-box h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.modal-box p {
    margin-bottom: 25px;
    color: #ccc;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-buttons button {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

.modal-btn-confirm {
    background-color: #dc2626;
    /* Red */
    color: white;
}

.modal-btn-confirm:hover {
    background-color: #b91c1c;
}

.modal-btn-cancel {
    background-color: #444;
    color: white;
}

.modal-btn-cancel:hover {
    background-color: #555;
}

/* --- New Styles for Sales Report in Seller Dashboard --- */

.sales-report-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.sales-report-controls label {
    font-weight: bold;
}

#month-select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 16px;
}

#sales-report-container p {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* --- Admin Panel Specific Styles --- */
#admin-panel-container .dashboard-section {
    background-color: #2a2a2a;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

#admin-panel-container .dashboard-section h3 {
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.tier-label {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: normal;
}

.link-style {
    color: var(--primary);
    text-decoration: underline;
}

.admin-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-order-items {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
}

.admin-order-items li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.admin-item-thumb {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
}

.payer-info-admin {
    font-style: italic;
    color: #ccc;
    font-size: 0.9rem;
}

.admin-order-selector {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.seller-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.btn-revoke {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.seller-details-box {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #1E1E1E;
}

.product-list-item-admin {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-list-item-admin:last-child {
    border-bottom: none;
}

.btn-delete-product {
    background: none;
    border: 1px solid #d9534f;
    color: #d9534f;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

/* --- Admin Panel Specific Styles --- */
#admin-panel-container .dashboard-section {
    background-color: #2a2a2a;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

#admin-panel-container .dashboard-section h3 {
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.tier-label {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: normal;
}

.link-style {
    color: var(--primary);
    text-decoration: underline;
}

.admin-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-order-items {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
}

.admin-order-items li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.admin-item-thumb {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
}

.payer-info-admin {
    font-style: italic;
    color: #ccc;
    font-size: 0.9rem;
}

.admin-order-selector {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.seller-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.btn-revoke {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.seller-details-box {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #1E1E1E;
}

.product-list-item-admin {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-list-item-admin:last-child {
    border-bottom: none;
}

.btn-delete-product {
    background: none;
    border: 1px solid #d9534f;
    color: #d9534f;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.admin-seller-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.seller-list-btn {
    background-color: #333;
    border: 1px solid #444;
    color: var(--text-dark);
    padding: 10px 20px;
    /* প্রধান পরিবর্তন: গোল করার জন্য */
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    transition: background-color 0.3s, border-color 0.3s;
}

.seller-list-btn:hover {
    background-color: #444;
    border-color: #555;
}

.seller-list-btn.active {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--accent);
    font-weight: bold;
}

.contact-section {
    max-width: 1100px;
    margin: 50px auto;
    padding: 20px;
    display: flex;
    gap: 40px;
}

.contact-info,
.contact-form {
    background: #181616;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info {
    flex-basis: 40%;
}

.contact-info h2 {
    color: var(--primary);
    margin-top: 0;
}

.contact-info p {
    line-height: 1.8;
    font-size: 16px;
}

.contact-info strong {
    color: #333;
}

.contact-form {
    flex-basis: 60%;
}

.contact-form h2 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    height: 120px;
}

.submit1-btn {
    background: #f0e007;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.submit1-btn:hover {
    background: #918304;
}

@media (max-width: 800px) {

    /* =====================================
      Global Mobile Fixes for All Pages
    ===================================== */
    body {
        font-size: 15px;
        /* বেসিক লেখার সাইজ একটু কমানো হলো */
    }

    .page-container {
        margin: 10px;
        /* সব পেজের প্রধান কন্টেইনারের মার্জিন ও প্যাডিং কমানো হলো */
        padding: 15px;
    }

    h1,
    .product-details-page .product-info-section h1 {
        font-size: 1.5rem;
        /* বড় হেডিংগুলো মোবাইলের জন্য ছোট করা হলো */
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .product-card {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .product-card:hover {
        transform: none;
    }

    .product-card-image img {
        height: 140px;
        object-fit: contain;
        padding: 5px;
    }

    .product-card-body {
        padding: 8px;
    }

    .product-card-title {
        font-size: 0.9rem;
        font-weight: 500;
        margin-bottom: 5px;
    }

    /* =====================================
      Dashboard & Admin Panel Fixes
    ===================================== */
    .dashboard-section,
    #admin-panel-container .dashboard-section {
        padding: 15px;
        /* ড্যাশবোর্ডের সেকশনগুলোর প্যাডিং কমানো হলো */
    }

    .seller-product-item {
        flex-direction: column;
        /* 'My Products' আইটেমগুলোকে উপরে-নিচে সাজানো হলো */
        align-items: flex-start;
        gap: 5px;
    }

    .seller-product-actions {
        flex-direction: column;
        /* স্টক আপডেট ফর্ম ও ডিলিট বাটনকে উপরে-নিচে আনা হলো */
        align-items: flex-start;
        width: 100%;
    }

    .stock-update-form {
        width: 100%;
        justify-content: space-between;
    }

    .order-item .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .seller-actions,
    .admin-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    /* =====================================
      Original Mobile Styles (Consolidated)
    ===================================== */

    /* --- Header & Navigation --- */
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .header-container {
        padding: 0 10px;
    }

    .logo-section .logo,
    a.logo {
        font-size: 24px;
    }

    .hamburger-btn {
        background: none;
        border: none;
        color: var(--text-dark);
        font-size: 24px;
        cursor: pointer;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100%;
        background-color: var(--bg-white);
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
        z-index: 2000;
        padding: 20px;
        transition: right 0.3s ease-in-out;
    }

    .mobile-nav.active {
        right: 0;
    }

    .close-btn {
        background: none;
        border: none;
        font-size: 36px;
        color: var(--text-dark);
        position: absolute;
        top: 10px;
        right: 20px;
        cursor: pointer;
    }

    .mobile-search-section {
        position: relative;
        margin-top: 50px;
        margin-bottom: 20px;
    }

    .mobile-search-section input {
        width: 100%;
        padding: 10px 40px 10px 15px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
    }

    .mobile-search-icon {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
    }

    .mobile-nav-links a,
    .mobile-nav-links button {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 16px;
        text-align: left;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1999;
    }

    .overlay.active {
        display: block;
    }

    /* --- Main Layouts to Single Column --- */
    .product-details-page .product-container,
    .cart-container,
    .checkout-container,
    .search-page-main {
        grid-template-columns: 1fr;
    }

    /* --- Search Page --- */
    .filters-sidebar {
        display: block;
    }

    .product-list-item {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }

    .product-image-section img {
        width: 300px;
        height: 300px;
        border: #000000;
        background-color: #000000;
    }

    .product-price-section {
        order: -1;
    }

    .product-price-section h2 {
        font-size: 1.6rem;
    }

    /* --- Forms --- */
    .login-page-container {
        padding: 10px;
    }

    .form-container {
        width: 100%;
        padding: 25px 20px;
    }

    .address-form-grid {
        grid-template-columns: 1fr;
    }

    /* --- Product Details Page --- */
    .media-slider-container {
        height: 300px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .action-buttons button {
        width: 100%;
        margin: 0;
    }

    /* --- Cart & Checkout Page --- */
    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .cart-item-details {
        order: 1;
    }

    /* --- Contact Page --- */
    .contact-section {
        flex-direction: column;
        gap: 25px;
        padding: 10px;
    }

    /* --- User Order Page --- */
    .order-header-user {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .order-product-details-user {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .tabs-nav {
        gap: 4px;
        /* বাটনগুলোর মধ্যে ফাঁকা জায়গা কমানো হলো */
        flex-wrap: wrap;
        /* এটি সবচেয়ে গুরুত্বপূর্ণ: জায়গা না থাকলে ট্যাবগুলো নিচের লাইনে চলে আসবে */
        align-items: center;
    }

    .tab-link {
        padding: 8px 12px;
        /* প্যাডিং কমানো হলো যাতে বাটনগুলো কম জায়গা নেয় */
        font-size: 10px;
        /* লেখার সাইজ কমানো হলো */
        white-space: nowrap;
        /* ট্যাবের নাম (যেমন "New Orders") যেন দুই লাইনে ভেঙে না যায় */
        color: #ff0000;
        background-color: #ffffff;
    }

    /* =====================================
      Final Dashboard Overflow Fixes
    ===================================== */

    /* Sales Report এর মাস ও বছর সিলেক্ট করার কন্ট্রোল ঠিক করা */
    .sales-report-controls,
    .admin-actions>div {
        flex-direction: column;
        /* এলিমেন্টগুলোকে একটির নিচে একটি সাজানো হলো */
        align-items: flex-start;
        /* সবকিছুকে বাম দিক থেকে শুরু করা হলো */
        gap: 8px;
    }

    .sales-report-controls label {
        margin-bottom: 2px;
        /* লেবেল এবং সিলেক্ট বক্সের মধ্যে একটু ফাঁকা জায়গা */
    }

    .sales-report-controls select,
    .admin-actions select,
    .seller-actions select {
        width: 100%;
        /* সিলেক্ট বক্সগুলোকে পুরো জায়গা দেওয়া হলো */
    }

    /* অর্ডারের ভেতরের লম্বা লেখা ভেঙে পরের লাইনে আনার জন্য */
    .order-item p,
    .seller-details-box p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* [পূর্ববর্তী সব CSS কোড এখানে থাকবে...] */
/* ... আপনার পুরোনো সব সিএসএস কোড ... */

/* =====================================
  New UX Feature Styles (Loaders, etc.)
===================================== */

/* --- Page Loader Styles --- */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-spinner {
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-hidden {
    opacity: 0;
    pointer-events: none;
    /* Allows clicking through the hidden loader */
}


/* --- Skeleton Loader Styles --- */
.skeleton-card {
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.skeleton-image {
    height: 180px;
    background-color: #2a2a2a;
    margin: 15px;
    border-radius: 6px;
}

.skeleton-text {
    height: 20px;
    background-color: #2a2a2a;
    margin: 0 15px 10px 15px;
    border-radius: 4px;
}

.skeleton-text-short {
    width: 60%;
}

.shimmer {
    background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- Content Flash Fix --- */
.logo-loading {
    visibility: hidden;
}

.product-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.product-card-image img {
    height: 180px;
    width: 180;
    object-fit: contain;
    padding: 5px;
}

.product-card-body {
    padding: 8px;
}

.product-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
}

@media (max-width: 800px) {
    body {
        font-size: 15px;
    }

    .page-container,
    .main-content {
        margin: 10px;
        padding: 10px;
    }

    h1,
    .product-details-page .product-info-section h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* --- Header & Nav --- */
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .header-container {
        padding: 0 10px;
    }

    .logo-section .logo,
    a.logo {
        font-size: 24px;
    }

    .hamburger-btn {
        background: none;
        border: none;
        color: var(--text-dark);
        font-size: 24px;
        cursor: pointer;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100%;
        background-color: var(--bg-white);
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
        z-index: 2000;
        padding: 20px;
        transition: right 0.3s ease-in-out;
    }

    .mobile-nav.active {
        right: 0;
    }

    .close-btn {
        background: none;
        border: none;
        font-size: 36px;
        color: var(--text-dark);
        position: absolute;
        top: 10px;
        right: 20px;
        cursor: pointer;
    }

    .mobile-search-section {
        position: relative;
        margin-top: 50px;
        margin-bottom: 20px;
    }

    .mobile-search-section input {
        width: 100%;
        padding: 10px 40px 10px 15px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
    }

    .mobile-search-icon {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
    }

    .mobile-nav-links a,
    .mobile-nav-links button {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 16px;
        text-align: left;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1999;
    }

    .overlay.active {
        display: block;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px 0;
    }

    .product-details-page .product-container,
    .cart-container,
    .checkout-container,
    .search-page-main {
        grid-template-columns: 1fr;
    }

    .product-card {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .product-card:hover {
        transform: none;
    }

    .product-card-image {
        padding: 8px;
    }

    .product-card-image img {
        width: 100%;
        height: 140px;
        object-fit: contain;
    }

    .product-card-body {
        padding: 10px;
    }

    .product-card-title {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .product-list-item {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }

    .product-image-section img {
        width: 100%;
        max-width: 250px;
        height: auto;
        background-color: transparent;
        border: none;
    }

    .product-price-section {
        order: -1;
    }

    .product-price-section h2 {
        font-size: 1.6rem;
    }

    .login-page-container {
        padding: 10px;
    }

    .form-container {
        width: 100%;
        padding: 25px 20px;
    }

    .address-form-grid {
        grid-template-columns: 1fr;
    }


    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .cart-item-details {
        order: 1;
    }

    .contact-section {
        flex-direction: column;
        gap: 25px;
        padding: 10px;
    }

    .order-header-user {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .order-product-details-user {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .tabs-nav {
        gap: 4px;
        flex-wrap: wrap;
    }

    .tab-link {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .dashboard-section,
    #admin-panel-container .dashboard-section {
        padding: 15px;
    }

    .seller-product-item,
    .seller-actions,
    .admin-actions,
    .order-item .order-header,
    .sales-report-controls,
    .sales-report-controls>div,
    .admin-actions>div {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .stock-update-form {
        width: 100%;
        justify-content: space-between;
    }

    .sales-report-controls select,
    .admin-actions select,
    .seller-actions select {
        width: 100%;
    }

    .order-item p,
    .seller-details-box p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

.btn-admin-toggle-active {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: white;
    min-width: 120px; 
}

.btn-admin-toggle-active[data-is-active="true"] {
    background-color: #ffc107; 
    color: #000;
}

.btn-admin-toggle-active[data-is-active="false"] {
    background-color: #28a745; 
}

#size-selector-container {
    margin: 20px 0;
}
#size-selector-container h4 {
    margin-bottom: 10px;
    font-size: 1em;
    color: #ccc;
}
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.size-option input[type="radio"] {
    display: none;
}
.size-option label {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.size-option input[type="radio"]:checked + label {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
    font-weight: bold;
}
.size-option label.disabled {
    background-color: #333;
    color: #777;
    cursor: not-allowed;
    text-decoration: line-through;
}

.item-details-seller {
    display: flex;
    flex-direction: column;
}

.item-details-seller > div {
    display: flex;
    gap: 10px;
    font-size: 0.9em;
    color: #555;
    margin-top: 4px;
}

.item-size-info {
    font-weight: bold;
}





.modal-overlay {
    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: 1000;
    padding: 15px;
}

.modal-box {
    background: #2c2c2e;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    text-align: center;
}

.modal-box h3 {
    margin-top: 0;
    color: var(--primary);
    text-align: left;
}

.modal-box p {
    text-align: left;
    color: #aaa;
    margin-bottom: 20px;
}

#edit-modal-body {
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

#edit-modal-body .size-stock-entry {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

#edit-modal-body .size-stock-entry input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-radius: 4px;
    font-size: 1rem;
}

#edit-modal-body .size-stock-entry input[readonly] {
    background-color: #333;
    cursor: not-allowed;
    font-weight: bold;
}

.modal-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end; 
    gap: 15px;
}

.modal-btn-confirm, .modal-btn-cancel {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    font-weight: bold;
    color: white;
}

.modal-btn-cancel {
    background-color: #555;
}

#modal-save-btn {
    background-color: #28a745; 
}

.btn-edit-product {
  background-color: #007bff;       
  color: white;                   
  border: none;                   
  padding: 8px 16px;               
  border-radius: 6px;              
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-edit-product:hover {
  background-color: #0056b3;       
  transform: scale(1.05);         
}

.btn-edit-product:active {
  background-color: #00428a;       
  transform: scale(0.98);
}
