/*
Theme Name: ShopeeClone
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Description: A Shopee-inspired WooCommerce theme with Elementor support. Features orange branding, product grid, flash deals, and mobile-first design.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shopeeclone
Tags: e-commerce, woocommerce, elementor, one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
WooCommerce: true
*/

/* ========================================
   CSS VARIABLES - SHOPEE COLOR SYSTEM
======================================== */
:root {
    --shopee-orange: #EE4D2D;
    --shopee-orange-dark: #D73211;
    --shopee-orange-light: #FF6633;
    --shopee-orange-pale: #FFF0ED;
    --shopee-red: #CC0001;
    --shopee-yellow: #FFCA00;
    --shopee-green: #26AA99;
    --shopee-green-dark: #1A8077;
    --shopee-blue: #0055AA;
    --shopee-gray-1: #F5F5F5;
    --shopee-gray-2: #EEEEEE;
    --shopee-gray-3: #BDBDBD;
    --shopee-gray-4: #757575;
    --shopee-gray-5: #333333;
    --shopee-white: #FFFFFF;
    --shopee-black: #000000;
    --shopee-border: #E0E0E0;
    --shopee-shadow: 0 1px 4px 0 rgba(0,0,0,0.1);
    --shopee-shadow-hover: 0 2px 12px rgba(0,0,0,0.15);
    --shopee-radius: 4px;
    --shopee-font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, sans-serif;
    --shopee-transition: all 0.2s ease;
    --container-width: 1200px;
}

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; scroll-behavior: smooth; }

body {
    font-family: var(--shopee-font);
    font-size: 14px;
    color: var(--shopee-gray-5);
    background-color: var(--shopee-gray-1);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

button, input, select, textarea {
    font-family: var(--shopee-font);
    font-size: 14px;
    border: none;
    outline: none;
}

button { cursor: pointer; }

/* ========================================
   LAYOUT
======================================== */
.shopee-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.shopee-section { margin-bottom: 10px; }

.shopee-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.shopee-col { padding: 0 8px; }

/* ========================================
   TOP BAR (Above header)
======================================== */
.shopee-topbar {
    background: linear-gradient(90deg, var(--shopee-orange-dark) 0%, var(--shopee-orange) 100%);
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    padding: 5px 0;
    border-bottom: 1px solid var(--shopee-orange-dark);
}

.shopee-topbar .shopee-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shopee-topbar a { color: rgba(255,255,255,0.85); }
.shopee-topbar a:hover { color: #fff; }

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-divider {
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.4);
}

/* ========================================
   HEADER
======================================== */
#masthead {
    background: var(--shopee-orange);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

/* Logo */
.site-logo {
    flex-shrink: 0;
}

.site-title {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.15);
}

.site-title span { color: var(--shopee-yellow); }

.site-title a { color: #fff; }

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 680px;
}

.search-form-wrapper {
    display: flex;
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    border: 2px solid var(--shopee-orange-dark);
}

.search-form-wrapper input[type="search"] {
    flex: 1;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--shopee-gray-5);
    background: transparent;
    border: none;
}

.search-form-wrapper input[type="search"]::placeholder { color: #aaa; }

.search-form-wrapper button[type="submit"] {
    background: var(--shopee-orange);
    color: #fff;
    padding: 0 22px;
    font-size: 18px;
    border: none;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form-wrapper button[type="submit"]:hover {
    background: var(--shopee-orange-dark);
}

/* Search suggestions pills */
.search-suggestions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.search-suggestions a {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.15);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: var(--shopee-transition);
}

.search-suggestions a:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    color: #fff;
}

.header-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-size: 11px;
    gap: 2px;
    position: relative;
    cursor: pointer;
    transition: var(--shopee-transition);
}

.header-icon-btn:hover { color: var(--shopee-yellow); }

.header-icon-btn svg { width: 22px; height: 22px; }

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

/* ========================================
   NAVIGATION MENU
======================================== */
#site-navigation {
    background: rgba(0,0,0,0.08);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.main-navigation {
    display: flex;
}

.main-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.main-navigation ul li a {
    display: block;
    padding: 8px 14px;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    transition: var(--shopee-transition);
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ========================================
   HERO BANNER / SLIDER
======================================== */
.shopee-hero {
    background: var(--shopee-white);
    margin-bottom: 10px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 220px 1fr 160px;
    gap: 0;
    min-height: 300px;
}

/* Category Sidebar */
.hero-categories {
    background: #fff;
    border-right: 1px solid var(--shopee-border);
    padding: 8px 0;
}

.hero-categories ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--shopee-gray-5);
    transition: var(--shopee-transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-categories ul li a:hover {
    background: var(--shopee-orange-pale);
    color: var(--shopee-orange);
}

.hero-categories ul li a .cat-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--shopee-orange);
}

/* Banner Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FF6B35 0%, #EE4D2D 50%, #CC0000 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide-content {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-slide-content h2 {
    font-size: 32px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 10px;
}

.hero-slide-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-slide-btn {
    display: inline-block;
    background: #fff;
    color: var(--shopee-orange);
    padding: 10px 28px;
    border-radius: 2px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--shopee-transition);
}

.hero-slide-btn:hover {
    background: var(--shopee-yellow);
    color: var(--shopee-orange-dark);
    transform: translateY(-1px);
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--shopee-transition);
}

.slider-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 3px;
}

/* Promo Banners (right side) */
.hero-promos {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--shopee-border);
}

.hero-promo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid var(--shopee-border);
    transition: var(--shopee-transition);
    cursor: pointer;
    background: #fff;
    font-size: 12px;
    color: var(--shopee-gray-4);
    font-weight: 600;
}

.hero-promo:last-child { border-bottom: none; }
.hero-promo:hover { background: var(--shopee-orange-pale); }

.hero-promo span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--shopee-orange);
}

/* ========================================
   CATEGORY ICONS ROW
======================================== */
.shopee-categories-row {
    background: #fff;
    padding: 20px 0;
    margin-bottom: 10px;
    box-shadow: var(--shopee-shadow);
}

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

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 5px;
    border-radius: var(--shopee-radius);
    cursor: pointer;
    transition: var(--shopee-transition);
    text-align: center;
}

.category-item:hover { background: var(--shopee-orange-pale); }

.category-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--shopee-orange-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--shopee-orange-pale);
    transition: var(--shopee-transition);
}

.category-item:hover .category-icon-wrapper {
    border-color: var(--shopee-orange);
}

.category-icon-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.category-icon-wrapper .cat-emoji { font-size: 28px; line-height: 1; }

.category-name {
    font-size: 11px;
    color: var(--shopee-gray-5);
    line-height: 1.3;
    font-weight: 500;
}

/* ========================================
   FLASH SALE / DEALS SECTION
======================================== */
.shopee-flash-sale {
    background: #fff;
    margin-bottom: 10px;
    box-shadow: var(--shopee-shadow);
    overflow: hidden;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--shopee-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flash-sale-icon {
    color: var(--shopee-orange);
    font-size: 22px;
}

/* Countdown Timer */
.flash-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--shopee-gray-4);
    font-size: 12px;
}

.countdown-label { font-weight: 600; }

.countdown-units {
    display: flex;
    align-items: center;
    gap: 3px;
}

.countdown-unit {
    background: var(--shopee-gray-5);
    color: #fff;
    padding: 4px 7px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.countdown-sep { color: var(--shopee-orange); font-weight: 700; font-size: 16px; }

.section-view-all {
    font-size: 13px;
    color: var(--shopee-orange);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.section-view-all:hover { text-decoration: underline; }

/* Flash Sale Products */
.flash-products {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.flash-products::-webkit-scrollbar { display: none; }

/* ========================================
   PRODUCT CARDS (Universal)
======================================== */
.shopee-product-card {
    background: #fff;
    border-radius: var(--shopee-radius);
    overflow: hidden;
    transition: var(--shopee-transition);
    position: relative;
    cursor: pointer;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.shopee-product-card:hover {
    box-shadow: var(--shopee-shadow-hover);
    border-color: var(--shopee-orange);
    transform: translateY(-2px);
}

.flash-products .shopee-product-card {
    width: 160px;
    margin-right: 8px;
}

/* Product Image Container */
.product-image-wrap {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: var(--shopee-gray-1);
}

.product-image-wrap img,
.product-image-wrap .product-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    font-size: 40px;
}

/* Badges */
.product-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 0 0 var(--shopee-radius) 0;
    text-transform: uppercase;
}

.badge-sale {
    background: var(--shopee-orange);
    color: #fff;
}

.badge-new {
    background: var(--shopee-green);
    color: #fff;
}

.badge-hot {
    background: var(--shopee-red);
    color: #fff;
}

.product-discount-badge {
    position: absolute;
    bottom: 8px;
    left: 0;
    background: var(--shopee-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 0 var(--shopee-radius) var(--shopee-radius) 0;
}

/* Wishlist button */
.product-wishlist-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--shopee-transition);
    border: none;
    cursor: pointer;
    z-index: 3;
    color: var(--shopee-gray-4);
}

.shopee-product-card:hover .product-wishlist-btn { opacity: 1; }
.product-wishlist-btn:hover { color: var(--shopee-orange); background: #fff; }

/* Product Info */
.product-info {
    padding: 8px 10px 10px;
}

.product-title {
    font-size: 13px;
    color: var(--shopee-gray-5);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.product-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--shopee-orange);
}

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

/* Stock bar */
.product-stock-bar {
    width: 100%;
    height: 4px;
    background: var(--shopee-gray-2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.stock-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--shopee-yellow) 0%, var(--shopee-orange) 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.product-sold-label {
    font-size: 10px;
    color: var(--shopee-gray-4);
}

/* Ratings */
.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.stars {
    display: flex;
    gap: 1px;
}

.star {
    font-size: 10px;
    color: var(--shopee-yellow);
}

.star.half { color: var(--shopee-gray-3); }

.rating-count {
    font-size: 10px;
    color: var(--shopee-gray-4);
}

/* Location & Sold */
.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: var(--shopee-gray-4);
    margin-top: 4px;
}

.product-location { display: flex; align-items: center; gap: 2px; }

/* ========================================
   PRODUCT GRID (Main listings)
======================================== */
.shopee-product-grid {
    background: #fff;
    padding: 16px;
    box-shadow: var(--shopee-shadow);
}

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

/* ========================================
   SIDEBAR / FILTERS
======================================== */
.shopee-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.filter-widget {
    background: #fff;
    border-radius: var(--shopee-radius);
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: var(--shopee-shadow);
}

.filter-widget-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--shopee-gray-5);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--shopee-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-widget ul li { margin-bottom: 8px; }

.filter-widget ul li a,
.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--shopee-gray-5);
    cursor: pointer;
    transition: var(--shopee-transition);
}

.filter-widget ul li a:hover,
.filter-option:hover { color: var(--shopee-orange); }

.filter-option input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--shopee-orange);
    cursor: pointer;
}

.filter-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--shopee-gray-4);
}

/* Price Range Filter */
.price-range-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.price-input {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid var(--shopee-border);
    border-radius: var(--shopee-radius);
    font-size: 12px;
    color: var(--shopee-gray-5);
    text-align: center;
}

.price-input:focus { border-color: var(--shopee-orange); }

.price-apply-btn {
    background: var(--shopee-orange);
    color: #fff;
    padding: 7px 14px;
    border-radius: var(--shopee-radius);
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--shopee-transition);
    white-space: nowrap;
}

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

/* Rating Filter */
.rating-filter-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    cursor: pointer;
    font-size: 12px;
    color: var(--shopee-gray-4);
    transition: var(--shopee-transition);
}

.rating-filter-option:hover { color: var(--shopee-orange); }

.rating-stars-filter {
    display: flex;
    gap: 2px;
}

.rating-star { color: var(--shopee-yellow); font-size: 13px; }

/* ========================================
   SORT BAR
======================================== */
.shopee-sort-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.03);
    padding: 10px 16px;
    border-radius: var(--shopee-radius);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sort-label { font-size: 13px; color: var(--shopee-gray-4); flex-shrink: 0; }

.sort-btn {
    padding: 6px 14px;
    border-radius: var(--shopee-radius);
    font-size: 13px;
    border: 1px solid var(--shopee-border);
    background: #fff;
    color: var(--shopee-gray-5);
    cursor: pointer;
    transition: var(--shopee-transition);
}

.sort-btn:hover, .sort-btn.active {
    background: var(--shopee-orange);
    color: #fff;
    border-color: var(--shopee-orange);
}

.sort-select {
    padding: 6px 12px;
    border: 1px solid var(--shopee-border);
    border-radius: var(--shopee-radius);
    font-size: 13px;
    background: #fff;
    color: var(--shopee-gray-5);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23757575' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.sort-select:focus { border-color: var(--shopee-orange); outline: none; }

.sort-pagination {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--shopee-gray-4);
}

.sort-page-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--shopee-border);
    background: #fff;
    border-radius: var(--shopee-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--shopee-transition);
}

.sort-page-btn:hover:not(:disabled) { border-color: var(--shopee-orange); color: var(--shopee-orange); }
.sort-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ========================================
   WOOCOMMERCE OVERRIDES
======================================== */

/* Product Archive */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    background: #fff;
    border-radius: var(--shopee-radius);
    overflow: hidden;
    transition: var(--shopee-transition);
    position: relative;
    border: 1px solid transparent;
    margin: 0;
}

.woocommerce ul.products li.product:hover {
    box-shadow: var(--shopee-shadow-hover);
    border-color: var(--shopee-orange);
    transform: translateY(-2px);
}

.woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px;
    padding: 8px 10px 4px;
    color: var(--shopee-gray-5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
    font-weight: 400;
}

.woocommerce ul.products li.product .price {
    padding: 0 10px 4px;
    font-size: 15px;
    color: var(--shopee-orange);
    font-weight: 700;
    display: block;
}

.woocommerce ul.products li.product .price del {
    font-size: 11px;
    color: var(--shopee-gray-3);
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}

/* Star ratings */
.woocommerce .star-rating {
    padding: 0 10px 4px;
    font-size: 12px;
}

.woocommerce .star-rating::before,
.woocommerce .star-rating span::before {
    color: var(--shopee-yellow);
    font-size: 12px;
    letter-spacing: 2px;
}

/* Add to cart button */
.woocommerce ul.products li.product .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--shopee-orange);
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    width: calc(100% - 20px);
    margin: 4px 10px 10px;
    text-align: center;
    display: block;
    transition: var(--shopee-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--shopee-radius);
}

.woocommerce ul.products li.product .button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--shopee-orange-dark);
    color: #fff;
}

/* Sale badge */
.woocommerce span.onsale {
    background: var(--shopee-orange);
    color: #fff;
    border-radius: 0;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    min-height: auto;
    min-width: auto;
    line-height: 1.4;
    top: 0;
    left: 0;
    right: auto;
}

/* Single Product Page */
.woocommerce div.product {
    background: #fff;
    padding: 20px;
    border-radius: var(--shopee-radius);
    box-shadow: var(--shopee-shadow);
}

.woocommerce div.product .product_title {
    font-size: 20px;
    font-weight: 600;
    color: var(--shopee-gray-5);
    margin-bottom: 10px;
}

.woocommerce div.product p.price {
    font-size: 26px;
    color: var(--shopee-orange);
    font-weight: 700;
    background: var(--shopee-orange-pale);
    padding: 14px 20px;
    margin: 16px 0;
    border-radius: var(--shopee-radius);
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    background: var(--shopee-orange);
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--shopee-radius);
    transition: var(--shopee-transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: var(--shopee-orange-dark);
}

/* Buy Now button */
.woocommerce div.product .buy-now-btn {
    background: #fff;
    color: var(--shopee-orange);
    border: 1px solid var(--shopee-orange);
    padding: 11px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--shopee-radius);
    transition: var(--shopee-transition);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woocommerce div.product .buy-now-btn:hover {
    background: var(--shopee-orange-pale);
}

/* Cart Page */
.woocommerce table.cart {
    border: none;
    border-collapse: collapse;
}

.woocommerce table.cart th {
    background: var(--shopee-gray-1);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--shopee-gray-4);
    font-weight: 500;
    border-bottom: 1px solid var(--shopee-border);
}

.woocommerce table.cart td {
    padding: 16px;
    border-bottom: 1px solid var(--shopee-border);
    vertical-align: middle;
}

.woocommerce .cart-collaterals .cart_totals {
    background: #fff;
    padding: 20px;
    border-radius: var(--shopee-radius);
    box-shadow: var(--shopee-shadow);
}

.woocommerce .cart-collaterals .cart_totals h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--shopee-gray-5);
    margin-bottom: 16px;
}

/* Checkout */
.woocommerce form .form-row label {
    font-size: 13px;
    font-weight: 500;
    color: var(--shopee-gray-5);
    margin-bottom: 6px;
    display: block;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select {
    border: 1px solid var(--shopee-border);
    border-radius: var(--shopee-radius);
    padding: 10px 14px;
    font-size: 14px;
    width: 100%;
    transition: var(--shopee-transition);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--shopee-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(238,77,45,0.1);
}

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb {
    font-size: 12px;
    color: var(--shopee-gray-4);
    padding: 10px 0;
    margin-bottom: 16px;
}

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

/* Notices */
.woocommerce .woocommerce-message {
    background: var(--shopee-orange-pale);
    border-color: var(--shopee-orange);
    color: var(--shopee-gray-5);
    border-radius: var(--shopee-radius);
}

.woocommerce .woocommerce-error {
    border-color: var(--shopee-red);
    background: #fff0f0;
}

/* ========================================
   PROMOTIONAL BANNERS
======================================== */
.shopee-promo-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.promo-banner {
    border-radius: var(--shopee-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/1;
    cursor: pointer;
    transition: var(--shopee-transition);
}

.promo-banner:hover { transform: translateY(-2px); box-shadow: var(--shopee-shadow-hover); }

.promo-banner-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    background-size: cover;
    background-position: center;
}

/* ========================================
   BRAND / MALL SECTION
======================================== */
.shopee-brands {
    background: #fff;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: var(--shopee-shadow);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.brand-item {
    border: 1px solid var(--shopee-border);
    border-radius: var(--shopee-radius);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 2/1;
    transition: var(--shopee-transition);
    cursor: pointer;
    overflow: hidden;
}

.brand-item:hover {
    border-color: var(--shopee-orange);
    box-shadow: var(--shopee-shadow-hover);
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(30%);
    transition: var(--shopee-transition);
}

.brand-item:hover img { filter: grayscale(0%); }

/* ========================================
   FOOTER
======================================== */
#colophon {
    background: #2d2d2d;
    color: rgba(255,255,255,0.7);
    margin-top: 20px;
}

.footer-top {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 40px 0;
}

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

.footer-widget-title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget ul li a {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    transition: var(--shopee-transition);
}

.footer-widget ul li a:hover { color: var(--shopee-orange); }

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.footer-social-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    transition: var(--shopee-transition);
}

.footer-social-link:hover {
    background: var(--shopee-orange);
    color: #fff;
}

/* Payment Methods */
.footer-payment {
    margin-top: 14px;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.payment-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

/* Footer Bottom */
.footer-bottom {
    padding: 16px 0;
    background: #1a1a1a;
}

.footer-bottom .shopee-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    transition: var(--shopee-transition);
}

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

/* ========================================
   STICKY ADD TO CART (Mobile/Single product)
======================================== */
.shopee-sticky-atc {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--shopee-border);
    padding: 10px 16px;
    display: flex;
    gap: 10px;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: none;
}

.shopee-sticky-atc .btn-chat {
    flex: 1;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--shopee-orange);
    color: var(--shopee-orange);
    border-radius: var(--shopee-radius);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.shopee-sticky-atc .btn-add-cart {
    flex: 1.5;
    padding: 10px;
    background: rgba(238,77,45,0.1);
    border: 1px solid var(--shopee-orange);
    color: var(--shopee-orange);
    border-radius: var(--shopee-radius);
    font-weight: 600;
    font-size: 14px;
}

.shopee-sticky-atc .btn-buy {
    flex: 1.5;
    padding: 10px;
    background: var(--shopee-orange);
    color: #fff;
    border-radius: var(--shopee-radius);
    font-weight: 700;
    font-size: 14px;
}

/* ========================================
   PAGINATION
======================================== */
.shopee-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 0;
}

.page-link {
    width: 36px;
    height: 36px;
    border: 1px solid var(--shopee-border);
    background: #fff;
    border-radius: var(--shopee-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--shopee-gray-5);
    cursor: pointer;
    transition: var(--shopee-transition);
}

.page-link:hover { border-color: var(--shopee-orange); color: var(--shopee-orange); }
.page-link.active { background: var(--shopee-orange); color: #fff; border-color: var(--shopee-orange); }
.page-link.disabled { opacity: 0.4; pointer-events: none; }

/* WooCommerce pagination */
.woocommerce nav.woocommerce-pagination ul {
    border: none;
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 24px 0;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a {
    border: 1px solid var(--shopee-border);
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: var(--shopee-radius);
    color: var(--shopee-gray-5);
    transition: var(--shopee-transition);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--shopee-orange);
    color: #fff;
    border-color: var(--shopee-orange);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--shopee-orange-pale);
    border-color: var(--shopee-orange);
    color: var(--shopee-orange);
}

/* ========================================
   TOAST / NOTIFICATIONS
======================================== */
.shopee-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 9999;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.shopee-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========================================
   ELEMENTOR COMPATIBILITY
======================================== */
.elementor-section { margin-bottom: 10px; }

.elementor-widget-container { overflow: hidden; }

/* Elementor Button Widget Override */
.elementor-button.elementor-button-shopee {
    background: var(--shopee-orange) !important;
    border-color: var(--shopee-orange) !important;
    border-radius: var(--shopee-radius) !important;
}

.elementor-button.elementor-button-shopee:hover {
    background: var(--shopee-orange-dark) !important;
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-orange { color: var(--shopee-orange); }
.text-gray { color: var(--shopee-gray-4); }
.bg-orange { background: var(--shopee-orange); }
.bg-orange-pale { background: var(--shopee-orange-pale); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.hidden { display: none !important; }

/* ========================================
   BACK TO TOP
======================================== */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--shopee-orange);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--shopee-transition);
    z-index: 998;
    box-shadow: var(--shopee-shadow);
    font-size: 18px;
    border: none;
}

.back-to-top.visible { opacity: 1; }
.back-to-top:hover { background: var(--shopee-orange-dark); transform: translateY(-2px); }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1199px) {
    .products-grid { grid-template-columns: repeat(5, 1fr); }
    .categories-grid { grid-template-columns: repeat(5, 1fr); }
    .footer-widgets { grid-template-columns: repeat(3, 1fr); }
    .brands-grid { grid-template-columns: repeat(4, 1fr); }
    .hero-layout { grid-template-columns: 200px 1fr 140px; }
    .woocommerce ul.products { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991px) {
    .hero-layout { grid-template-columns: 1fr 140px; }
    .hero-categories { display: none; }
    .products-grid { grid-template-columns: repeat(4, 1fr); }
    .categories-grid { grid-template-columns: repeat(5, 1fr); }
    .shopee-sidebar { display: none; }
    .footer-widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .shopee-topbar { display: none; }
    .header-inner { gap: 12px; }
    .hero-layout { grid-template-columns: 1fr; }
    .hero-promos { display: none; }
    .hero-slider { height: 200px; position: relative; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(5, 1fr); }
    .shopee-promo-banners { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: repeat(2, 1fr); }
    .brands-grid { grid-template-columns: repeat(3, 1fr); }
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
    .shopee-sticky-atc { display: flex; }
    .section-title h2 { font-size: 15px; }
    .search-suggestions { display: none; }
    .footer-top { padding: 24px 0; }
    .footer-widgets { gap: 20px; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: repeat(5, 1fr); }
    .category-icon-wrapper { width: 44px; height: 44px; }
    .category-name { font-size: 10px; }
    .flash-products .shopee-product-card { width: 140px; }
}
