/**
 * Shopee Affiliate Theme - Frontend Styles
 * 
 * Beautiful, high-converting design based on Shopee
 * Optimized for performance and conversions
 * 
 * @package Ghost_Bento_Shopee
 */

/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --shopee-orange: #ee4d2d;
    --shopee-orange-dark: #d7401f;
    --shopee-orange-light: #ff6b4a;
    --shopee-gray: #f5f5f5;
    --shopee-gray-dark: #757575;
    --shopee-gray-light: #e0e0e0;
    --shopee-text: #333333;
    --shopee-text-light: #757575;
    --shopee-white: #ffffff;
    --shopee-black: #000000;
    --shopee-success: #28a745;
    --shopee-warning: #ffc107;
    --shopee-danger: #dc3545;
    --shopee-border: #e0e0e0;
    --shopee-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shopee-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shopee-radius: 8px;
    --shopee-radius-lg: 12px;
    --shopee-transition: all 0.3s ease;
}

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

body {
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--shopee-text);
    line-height: 1.6;
    background: var(--shopee-gray);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--shopee-transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header
   ============================================ */
.shopee-header {
    background: var(--shopee-white);
    box-shadow: var(--shopee-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 15px 0;
}

.header-logo .logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--shopee-orange);
}

.logo-icon {
    font-size: 32px;
}

.header-search {
    flex: 1;
    max-width: 500px;
}

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

.header-search .search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--shopee-border);
    border-radius: var(--shopee-radius);
    font-size: 14px;
    transition: var(--shopee-transition);
}

.header-search .search-input:focus {
    outline: none;
    border-color: var(--shopee-orange);
}

.header-search .search-btn {
    padding: 12px 20px;
    background: var(--shopee-orange);
    color: var(--shopee-white);
    border-radius: var(--shopee-radius);
    font-size: 18px;
    transition: var(--shopee-transition);
}

.header-search .search-btn:hover {
    background: var(--shopee-orange-dark);
}

.header-nav .nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
}

.header-nav .nav-list a {
    font-weight: 500;
    color: var(--shopee-text);
    transition: var(--shopee-transition);
}

.header-nav .nav-list a:hover {
    color: var(--shopee-orange);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--shopee-text);
    transition: var(--shopee-transition);
}

.header-action:hover {
    color: var(--shopee-orange);
}

.action-icon {
    font-size: 20px;
}

.wishlist-link {
    position: relative;
}

.wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--shopee-orange);
    color: var(--shopee-white);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--shopee-orange);
    color: var(--shopee-white);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--shopee-text);
    transition: var(--shopee-transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--shopee-text);
    transition: var(--shopee-transition);
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* Mobile Menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: var(--shopee-transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--shopee-white);
    z-index: 1002;
    transition: var(--shopee-transition);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--shopee-border);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--shopee-orange);
}

.mobile-menu-close {
    font-size: 32px;
    color: var(--shopee-text);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav {
    padding: 20px;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--shopee-gray-light);
}

.mobile-nav-list a {
    font-size: 16px;
    font-weight: 500;
    color: var(--shopee-text);
}

.mobile-nav-list a:hover {
    color: var(--shopee-orange);
}

body.mobile-menu-open .mobile-menu-overlay {
    display: block;
    opacity: 1;
}

body.mobile-menu-open .mobile-menu {
    display: block;
    right: 0;
}

/* ============================================
   Footer
   ============================================ */
.shopee-footer {
    background: #1a2332;
    color: var(--shopee-white);
    padding: 60px 0 30px;
}

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

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--shopee-orange);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    padding: 8px 0;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--shopee-transition);
}

.footer-menu a:hover {
    color: var(--shopee-orange);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    padding: 8px 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--shopee-transition);
}

.footer-links a:hover {
    color: var(--shopee-orange);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--shopee-transition);
}

.social-link:hover {
    color: var(--shopee-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ============================================
   Breadcrumb
   ============================================ */
.shopee-breadcrumb {
    background: var(--shopee-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--shopee-border);
}

.shopee-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.shopee-breadcrumb a {
    color: var(--shopee-text-light);
}

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

.shopee-breadcrumb .separator {
    color: var(--shopee-gray-light);
}

.shopee-breadcrumb .current {
    color: var(--shopee-text);
    font-weight: 500;
}

/* ============================================
   Product Landing Page
   ============================================ */
.shopee-product-landing {
    background: var(--shopee-gray);
    padding-bottom: 60px;
}

/* Product Main Section */
.shopee-product-main {
    background: var(--shopee-white);
    padding: 40px 0;
    margin-bottom: 20px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 20px;
}

.main-image {
    position: relative;
    background: var(--shopee-gray);
    border-radius: var(--shopee-radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--shopee-gray-dark);
}

.no-image span {
    font-size: 48px;
    margin-bottom: 10px;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.thumbnail-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--shopee-radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--shopee-transition);
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--shopee-orange);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Flash Sale Banner */
.flash-sale-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--shopee-orange), var(--shopee-orange-light));
    color: var(--shopee-white);
    padding: 15px 20px;
    border-radius: var(--shopee-radius-lg);
}

.flash-icon {
    font-size: 32px;
}

.flash-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.flash-label {
    font-size: 14px;
    font-weight: 600;
}

.flash-countdown {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* Product Title */
.product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--shopee-text);
    line-height: 1.4;
}

/* Product Meta */
.product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--shopee-border);
    border-bottom: 1px solid var(--shopee-border);
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 5px;
}

.star {
    color: var(--shopee-warning);
    font-size: 18px;
}

.star.filled {
    color: var(--shopee-warning);
}

.rating-value {
    font-weight: 600;
    color: var(--shopee-orange);
}

.sold-count {
    color: var(--shopee-text-light);
    font-size: 14px;
}

.sold-count .count {
    font-weight: 600;
    color: var(--shopee-text);
}

/* Price Section */
.price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.original-price {
    font-size: 18px;
    color: var(--shopee-gray-dark);
    text-decoration: line-through;
}

.sale-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-size: 36px;
    font-weight: 700;
    color: var(--shopee-orange);
}

.sale-price .currency {
    font-size: 24px;
}

.discount-badge {
    background: var(--shopee-orange);
    color: var(--shopee-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.discount-percent {
    font-size: 18px;
    font-weight: 700;
}

/* Coupon Section */
.coupon-section {
    background: #fff3e0;
    border: 2px dashed var(--shopee-orange);
    border-radius: var(--shopee-radius);
    padding: 15px 20px;
}

.coupon-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--shopee-orange);
    margin-bottom: 10px;
}

.coupon-code {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coupon-code .code {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: var(--shopee-orange);
    letter-spacing: 2px;
}

.copy-coupon {
    background: var(--shopee-orange);
    color: var(--shopee-white);
    padding: 8px 16px;
    border-radius: var(--shopee-radius);
    font-weight: 600;
    transition: var(--shopee-transition);
}

.copy-coupon:hover {
    background: var(--shopee-orange-dark);
}

/* Shipping Badges */
.shipping-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--shopee-gray);
    padding: 10px 15px;
    border-radius: var(--shopee-radius);
    font-size: 14px;
}

.badge-icon {
    font-size: 20px;
}

.badge-text {
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-buy {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 30px;
    border-radius: var(--shopee-radius);
    font-size: 18px;
    font-weight: 700;
    transition: var(--shopee-transition);
}

.btn-buy.primary {
    background: linear-gradient(135deg, var(--shopee-orange), var(--shopee-orange-light));
    color: var(--shopee-white);
    box-shadow: 0 4px 12px rgba(238, 77, 45, 0.4);
}

.btn-buy.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(238, 77, 45, 0.5);
}

.btn-wishlist {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 25px;
    border: 2px solid var(--shopee-border);
    border-radius: var(--shopee-radius);
    font-size: 16px;
    font-weight: 600;
    color: var(--shopee-text);
    transition: var(--shopee-transition);
}

.btn-wishlist:hover {
    border-color: var(--shopee-orange);
    color: var(--shopee-orange);
}

.btn-icon {
    font-size: 24px;
}

/* Delivery Info */
.delivery-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid var(--shopee-border);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--shopee-text-light);
}

.info-icon {
    font-size: 20px;
}

/* ============================================
   Product Tabs
   ============================================ */
.shopee-product-tabs {
    background: var(--shopee-white);
    padding: 40px 0;
    margin-bottom: 20px;
}

.tabs-header {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--shopee-border);
}

.tab-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: var(--shopee-text-light);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    transition: var(--shopee-transition);
}

.tab-btn:hover {
    color: var(--shopee-orange);
}

.tab-btn.active {
    color: var(--shopee-orange);
    border-bottom-color: var(--shopee-orange);
}

.tabs-content {
    min-height: 300px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.product-description {
    line-height: 1.8;
    font-size: 16px;
}

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

.specs-table tr {
    border-bottom: 1px solid var(--shopee-border);
}

.specs-table td {
    padding: 15px;
}

.spec-label {
    font-weight: 600;
    color: var(--shopee-text);
    width: 30%;
}

.spec-value {
    color: var(--shopee-text-light);
}

.review-item {
    padding: 20px;
    border-bottom: 1px solid var(--shopee-border);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--shopee-text);
}

.review-rating {
    color: var(--shopee-warning);
}

.review-content {
    color: var(--shopee-text-light);
    margin-bottom: 10px;
}

.review-date {
    font-size: 12px;
    color: var(--shopee-gray-dark);
}

.no-reviews {
    text-align: center;
    padding: 60px 20px;
    color: var(--shopee-gray-dark);
}

.no-reviews-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

/* ============================================
   Related Products
   ============================================ */
.shopee-related-products {
    background: var(--shopee-white);
    padding: 40px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--shopee-text);
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ============================================
   Product Card
   ============================================ */
.product-card {
    background: var(--shopee-white);
    border-radius: var(--shopee-radius-lg);
    overflow: hidden;
    box-shadow: var(--shopee-shadow);
    transition: var(--shopee-transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shopee-shadow-lg);
}

.card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--shopee-transition);
}

.product-card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--shopee-white);
}

.card-badge.flash {
    background: linear-gradient(135deg, var(--shopee-orange), var(--shopee-orange-light));
}

.card-badge.discount {
    background: var(--shopee-danger);
}

.card-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: var(--shopee-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--shopee-transition);
    opacity: 0;
}

.product-card:hover .card-wishlist {
    opacity: 1;
}

.card-wishlist:hover {
    background: var(--shopee-orange);
    color: var(--shopee-white);
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--shopee-text);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a:hover {
    color: var(--shopee-orange);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
}

.card-rating {
    color: var(--shopee-warning);
}

.card-sold {
    color: var(--shopee-gray-dark);
}

.card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 15px;
}

.card-price .original-price {
    font-size: 14px;
    color: var(--shopee-gray-dark);
    text-decoration: line-through;
}

.card-price .sale-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--shopee-orange);
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-card {
    flex: 1;
    padding: 10px;
    border-radius: var(--shopee-radius);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: var(--shopee-transition);
}

.btn-card.primary {
    background: var(--shopee-orange);
    color: var(--shopee-white);
}

.btn-card.primary:hover {
    background: var(--shopee-orange-dark);
}

.btn-card.secondary {
    background: var(--shopee-gray);
    color: var(--shopee-text);
}

.btn-card.secondary:hover {
    background: var(--shopee-gray-light);
}

/* ============================================
   Archive Page
   ============================================ */
.shopee-archive {
    background: var(--shopee-gray);
}

.archive-hero {
    background: linear-gradient(135deg, var(--shopee-orange), var(--shopee-orange-light));
    color: var(--shopee-white);
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--shopee-radius);
    font-size: 16px;
}

.search-btn {
    padding: 15px 25px;
    background: var(--shopee-white);
    color: var(--shopee-orange);
    border-radius: var(--shopee-radius);
    font-size: 20px;
}

.archive-main {
    padding: 40px 0;
}

.archive-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar */
.archive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--shopee-white);
    padding: 20px;
    border-radius: var(--shopee-radius-lg);
    box-shadow: var(--shopee-shadow);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--shopee-text);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--shopee-border);
}

.category-list {
    list-style: none;
}

.category-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--shopee-gray-light);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--shopee-text);
    transition: var(--shopee-transition);
}

.category-list a:hover {
    color: var(--shopee-orange);
}

.category-list .count {
    color: var(--shopee-gray-dark);
}

.category-list li.active a {
    color: var(--shopee-orange);
    font-weight: 600;
}

.price-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-input {
    padding: 10px;
    border: 1px solid var(--shopee-border);
    border-radius: var(--shopee-radius);
}

.price-separator {
    text-align: center;
    color: var(--shopee-gray-dark);
}

.filter-btn {
    background: var(--shopee-orange);
    color: var(--shopee-white);
    padding: 12px;
    border-radius: var(--shopee-radius);
    font-weight: 600;
    transition: var(--shopee-transition);
}

.filter-btn:hover {
    background: var(--shopee-orange-dark);
}

.rating-filter {
    list-style: none;
}

.rating-filter li {
    padding: 10px 0;
}

.rating-filter label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.rating-filter .stars {
    color: var(--shopee-warning);
}

/* Archive Content */
.archive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--shopee-white);
    border-radius: var(--shopee-radius-lg);
    box-shadow: var(--shopee-shadow);
}

.toolbar-left {
    color: var(--shopee-text-light);
}

.toolbar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.layout-switcher {
    display: flex;
    gap: 5px;
}

.layout-btn {
    padding: 8px 12px;
    border: 1px solid var(--shopee-border);
    border-radius: var(--shopee-radius);
    font-size: 18px;
    color: var(--shopee-text-light);
    transition: var(--shopee-transition);
}

.layout-btn:hover,
.layout-btn.active {
    border-color: var(--shopee-orange);
    color: var(--shopee-orange);
}

.sort-dropdown select {
    padding: 8px 12px;
    border: 1px solid var(--shopee-border);
    border-radius: var(--shopee-radius);
    font-size: 14px;
    cursor: pointer;
}

.products-wrapper {
    display: grid;
    gap: 20px;
}

.products-wrapper.layout-grid {
    grid-template-columns: repeat(4, 1fr);
}

.products-wrapper.layout-list {
    grid-template-columns: 1fr;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--shopee-gray-dark);
}

.no-products-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.archive-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.archive-pagination a,
.archive-pagination span {
    padding: 10px 15px;
    border: 1px solid var(--shopee-border);
    border-radius: var(--shopee-radius);
    color: var(--shopee-text);
    transition: var(--shopee-transition);
}

.archive-pagination a:hover {
    border-color: var(--shopee-orange);
    color: var(--shopee-orange);
}

.archive-pagination .current {
    background: var(--shopee-orange);
    color: var(--shopee-white);
    border-color: var(--shopee-orange);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        position: static;
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-wrapper.layout-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .archive-layout {
        grid-template-columns: 1fr;
    }
    
    .archive-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .sale-price {
        font-size: 28px;
    }
    
    .cta-section {
        flex-direction: column;
    }
    
    .btn-buy {
        width: 100%;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-wrapper.layout-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .archive-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-search {
        flex-direction: column;
    }
    
    .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .tab-btn {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .products-wrapper.layout-grid {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .shipping-badges {
        flex-direction: column;
    }
}
