/* ============================================
   RONGSHRE - Professional Style Sheet
   ============================================ */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #0F4C2A;
    --primary-dark: #0A3A1F;
    --primary-light: #1A6B3A;
    --secondary: #FFC107;
    --secondary-dark: #E6A800;
    --bg: #F8F9FA;
    --text: #1A1A2E;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --container-width: 100%;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ===== CONTAINER ===== */
.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 60px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 12px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text);
    padding: 12px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.header .logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
}
.header .logo span { color: var(--secondary); }

.header .search {
    display: flex;
    background: var(--bg);
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: var(--transition);
}
.header .search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 76, 42, 0.1);
}
.header .search input {
    padding: 10px 18px;
    border: none;
    outline: none;
    background: transparent;
    width: 240px;
    font-size: 14px;
}
.header .search button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    transition: var(--transition);
}
.header .search button:hover {
    background: var(--primary-dark);
}

.header .nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.header .nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}
.header .nav a:hover { color: var(--primary); }

.header .nav .cart {
    position: relative;
    font-size: 20px;
    color: var(--text);
}
.header .nav .cart .badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--secondary);
    color: var(--text);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50%;
}

/* ===== CATEGORY DROPDOWN ===== */
.category-dropdown {
    position: relative;
}
.category-dropdown .dropbtn {
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px 0;
    transition: var(--transition);
    font-family: inherit;
}
.category-dropdown .dropbtn:hover { color: var(--primary); }
.category-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
    padding: 8px 0;
    z-index: 100;
}
.category-dropdown:hover .dropdown-content { display: block; }
.category-dropdown .dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--text);
    transition: var(--transition);
}
.category-dropdown .dropdown-content a:hover {
    background: var(--bg);
    color: var(--primary);
}
.category-dropdown .dropdown-content a i {
    width: 20px;
    color: var(--primary);
}

/* ============================================
   BANNER
   ============================================ */
.banner {
    position: relative;
    height: 460px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    overflow: hidden;
    border-radius: 0;
}
.banner .slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    padding: 40px;
}
.banner .slide.active { opacity: 1; }
.banner .slide .content {
    text-align: center;
    color: var(--white);
    max-width: 640px;
}
.banner .slide .content h2 {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.banner .slide .content h2 span { color: var(--secondary); }
.banner .slide .content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
}
.banner .dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.banner .dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}
.banner .dots .dot.active {
    background: var(--secondary);
    transform: scale(1.2);
}

/* ============================================
   SECTION
   ============================================ */
.section {
    padding: 60px 0;
    width: 100%;
}
.section-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text);
}
.section-title span { color: var(--secondary); }

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    width: 100%;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
    position: relative;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.product-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}
.product-card .badge.new { background: var(--primary); color: var(--white); }
.product-card .badge.used { background: var(--text); color: var(--white); }

.product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg);
    margin-bottom: 12px;
}
.product-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.product-card .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}
.product-card .old-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
}
.product-card .actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.product-card .actions .wishlist-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-light);
    transition: var(--transition);
    padding: 6px 14px;
    cursor: pointer;
}
.product-card .actions .wishlist-btn:hover,
.product-card .actions .wishlist-btn.active { color: #dc3545; border-color: #dc3545; }

.product-card .add-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    cursor: pointer;
}
.product-card .add-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* ============================================
   TABS
   ============================================ */
.tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.tabs .tab-btn {
    padding: 10px 28px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--white);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
    transition: var(--transition);
    font-family: inherit;
}
.tabs .tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.tabs .tab-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text);
    color: var(--white);
    padding: 48px 0 24px;
    margin-top: 40px;
}
.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}
.footer .brand {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.footer .brand span { color: var(--secondary); }
.footer p { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer .social {
    display: flex;
    gap: 14px;
    margin: 12px 0;
}
.footer .social a {
    color: var(--white);
    font-size: 20px;
    transition: var(--transition);
}
.footer .social a:hover { color: var(--secondary); }
.footer .email { color: var(--secondary); }
.footer .seller-link {
    display: inline-block;
    margin-top: 12px;
    background: var(--secondary);
    color: var(--text);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
}
.footer .seller-link:hover {
    background: var(--white);
    transform: scale(1.02);
}
.footer .bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   HERO GRAPHIC
   ============================================ */
.hero-pro .hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 340px;
    height: 340px;
    background: rgba(255, 193, 7, 0.12);
    border: 3px solid rgba(255, 193, 7, 0.4);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
    animation: floatGraphic 3s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.hero-graphic::before {
    content: '';
    position: absolute;
    inset: -15px;
    border: 2px dashed rgba(255, 193, 7, 0.25);
    border-radius: 50%;
    animation: rotateCircle 20s linear infinite;
}

.hero-graphic i {
    font-size: 56px;
    color: #FFC107;
    margin-bottom: 14px;
}

.hero-graphic .graphic-text {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 4px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.hero-graphic .graphic-sub {
    font-size: 12px;
    opacity: 0.85;
    letter-spacing: 1.5px;
    margin-top: 6px;
    text-transform: uppercase;
}

@keyframes floatGraphic {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes rotateCircle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .container { padding: 0 24px; }
    .hero-graphic {
        width: 260px;
        height: 260px;
    }
    .hero-graphic i { font-size: 42px; }
    .hero-graphic .graphic-text { font-size: 20px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .header .container { flex-direction: column; align-items: stretch; }
    .header .search input { width: 100%; }
    .header .nav { justify-content: center; }
    .banner { height: 320px; }
    .banner .slide .content h2 { font-size: 28px; }
    .banner .slide .content p { font-size: 15px; }
    .section { padding: 40px 0; }
    .section-title { font-size: 22px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
    .footer .container { grid-template-columns: 1fr; text-align: center; }
    .footer .social { justify-content: center; }
}

@media (max-width: 480px) {
    .banner { height: 260px; }
    .banner .slide .content h2 { font-size: 22px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
    .tabs .tab-btn { padding: 6px 16px; font-size: 12px; }
    .hero-graphic {
        width: 220px;
        height: 220px;
    }
    .hero-graphic i { font-size: 36px; }
    .hero-graphic .graphic-text { font-size: 16px; }
    .hero-graphic .graphic-sub { font-size: 10px; }
}