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

/* CSS Variables for Theme */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --dark-color: #111111;
    --dark-muted: #444444;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e5e5e5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-color);
    background-color: var(--white);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--dark-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

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

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

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

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--dark-color);
}

.btn-outline:hover {
    background-color: var(--light-bg);
    border-color: var(--dark-color);
}

/* Header & Navigation Styles */
.top-bar {
    background-color: var(--dark-color);
    color: var(--white);
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 10px;
    letter-spacing: 0.5px;
}

.main-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: relative;
    z-index: 150;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo a {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-color);
}

.search-bar-container {
    flex: 1;
    max-width: 550px;
}

.search-form {
    display: flex;
    border: 2px solid var(--dark-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
}

.search-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: var(--dark-color);
}

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

.action-link {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-link:hover {
    color: var(--primary-color);
}

.cart-icon-wrapper {
    position: relative;
    font-size: 20px;
}

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

/* Nav Menu */
.nav-bar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 150;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 12px 0;
}

.nav-item a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-item a:hover {
    color: var(--primary-color);
}

/* Nav Dropdown */
.nav-item.has-dropdown {
    position: relative;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 180px;
    padding: 8px 0;
    z-index: 200;
    list-style: none;
}

.nav-item.has-dropdown:hover .nav-dropdown {
    display: block;
}

.nav-dropdown li a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--dark-color);
}

.nav-dropdown li a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 480px;
    background-color: #eaeaea;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: var(--radius-md);
    max-width: 450px;
    margin-left: 10%;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 1s ease-out;
}

.slide-content h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 16px;
    color: var(--dark-muted);
    margin-bottom: 25px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Category Grid */
.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 50px 0 30px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 110px);
    gap: 25px;
    margin-bottom: 50px;
    justify-content: center;
    justify-items: center;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
    width: 110px;
    transition: all 0.3s ease;
}

.category-card-img-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--light-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 3px solid var(--white);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card-name {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    transition: color 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card:hover .category-card-img-wrapper {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.category-card:hover .category-card-img-wrapper img {
    transform: scale(1.1);
}

.category-card:hover .category-card-name {
    color: var(--primary-color);
}

/* Products Layout & Card */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    z-index: 2;
}

.product-image-container {
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: var(--light-bg);
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-size: 12px;
    font-weight: 600;
    color: #2ecc71;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
}

.original-price {
    font-size: 14px;
    text-decoration: line-through;
    color: #999999;
}

.discount-tag {
    font-size: 10px;
    background-color: #dbeafe;
    color: var(--primary-color);
    padding: 1px 4px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-block;
}

/* Watch & Buy Section homepage */
.watch-buy-section {
    background-color: transparent;
    color: var(--dark-color);
    padding: 20px 0;
    margin: 40px 0;
    overflow: hidden;
}

.watch-buy-section .section-title {
    color: var(--dark-color);
}

.watch-buy-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 5px 20px;
    scroll-snap-type: x mandatory;
}

.watch-buy-item-wrapper {
    flex: 0 0 200px;
    width: 200px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

.watch-buy-card {
    width: 100%;
    height: 350px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.watch-buy-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.watch-buy-thumb {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}

.watch-buy-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #d63031;
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    z-index: 3;
}

.watch-buy-inset-thumb {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    border: 2px solid var(--white);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 3;
    background-color: var(--white);
}

.watch-buy-inset-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watch-buy-card-info {
    margin-top: 12px;
    text-align: left;
    width: 100%;
}

.watch-buy-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.watch-buy-card-price {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wb-card-price-current {
    color: #d63031;
}

.wb-card-price-original {
    color: #999999;
    text-decoration: line-through;
    font-weight: 500;
    font-size: 12px;
}

/* Watch & Buy Fullscreen Modal */
.wb-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.wb-modal-content {
    display: flex;
    width: fit-content;
    max-width: 95%;
    height: 90%;
    max-height: 700px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.wb-video-panel {
    height: 100%;
    aspect-ratio: 9 / 16;
    background-color: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wb-video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wb-video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.wb-control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.wb-control-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.wb-control-btn.liked {
    color: #ff3366;
}

.wb-likes-count {
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    margin-top: -10px;
}

.wb-close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    color: var(--white);
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Right Details Panel */
.wb-details-panel {
    width: 320px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    color: var(--dark-color);
    border-left: 1px solid var(--border-color);
    justify-content: space-between;
    overflow-y: auto;
}

.wb-product-image-wrapper {
    width: 100%;
    height: 180px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.wb-product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wb-product-header {
    margin-bottom: 20px;
}

.wb-product-cat {
    color: #2ecc71;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.wb-product-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.wb-product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.wb-product-price-del {
    font-size: 14px;
    text-decoration: line-through;
    color: var(--dark-muted);
    margin-left: 10px;
}

.wb-product-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--dark-muted);
    margin-bottom: 25px;
    max-height: 120px;
    overflow-y: auto;
    padding-right: 5px;
}

.wb-product-desc::-webkit-scrollbar {
    width: 4px;
}
.wb-product-desc::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

.wb-buy-section {
    margin-top: auto;
}

.wb-buy-btn {
    width: 100%;
    padding: 14px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.wb-buy-btn:hover {
    background-color: var(--primary-hover);
}

.wb-details-link {
    display: block;
    text-align: center;
    font-size: 13px;
    margin-top: 15px;
    color: var(--dark-muted);
    text-decoration: underline;
}

.wb-details-link:hover {
    color: var(--primary-color);
}

/* Category Filter Layout */
.category-page-layout {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

.sidebar-filters {
    width: 250px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    padding-right: 25px;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-link {
    font-size: 14px;
    color: var(--dark-muted);
}

.filter-link:hover, .filter-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.catalog-panel {
    flex: 1;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.catalog-title {
    font-size: 24px;
    font-weight: 700;
}

.catalog-count {
    font-size: 14px;
    color: var(--dark-muted);
}

/* Product Detail Page */
.product-detail-layout {
    display: flex;
    gap: 50px;
    margin: 50px 0;
}

.product-gallery {
    flex: 1.2;
}

.main-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.main-image-wrapper img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--light-bg);
    transition: opacity 0.3s ease;
    display: block;
}

/* Thumbnail Gallery Styles */
.product-image-gallery {
    margin-bottom: 20px;
}

.gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.thumbnail-btn {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--light-bg);
    padding: 4px;
    width: 76px;
    height: 76px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.thumbnail-btn:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.thumbnail-btn:hover img {
    transform: scale(1.05);
}

.thumbnail-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.2);
}

.product-specs-panel {
    flex: 1;
}

.product-detail-name {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.product-detail-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: var(--dark-muted);
    margin-bottom: 25px;
}

.meta-item span {
    font-weight: 600;
    color: var(--dark-color);
}

.product-detail-price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    background-color: var(--light-bg);
    padding: 15px 20px;
    border-radius: var(--radius-md);
}

.detail-current-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
}

.detail-original-price {
    font-size: 18px;
    text-decoration: line-through;
    color: #999999;
}

.detail-desc-block {
    margin-bottom: 30px;
}

.detail-desc-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.detail-desc-content {
    font-size: 14px;
    color: var(--dark-muted);
    line-height: 1.6;
}

.add-to-cart-form {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.qty-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background-color: var(--light-bg);
    border: none;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
}

.qty-val {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
}

.add-cart-btn {
    flex: 1;
    height: 42px;
}

/* Shopping Cart View */
.cart-layout {
    display: flex;
    gap: 40px;
    margin: 50px 0;
}

.cart-items-table {
    flex: 2;
    border-collapse: collapse;
    width: 100%;
}

.cart-items-table th {
    border-bottom: 2px solid var(--border-color);
    padding: 12px 10px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

.cart-items-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 10px;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
}

.cart-item-remove {
    font-size: 12px;
    color: #ff3366;
    margin-top: 5px;
    display: inline-block;
    cursor: pointer;
}

.cart-summary-panel {
    flex: 1;
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--radius-md);
    height: fit-content;
}

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

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.summary-row.total {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    font-size: 18px;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    margin-top: 20px;
}

/* Forms & Customer Portal (Login/Register/Checkout) */
.auth-layout {
    max-width: 450px;
    margin: 80px auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
}

.form-alert {
    background-color: #fce8e6;
    color: #c53929;
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 13px;
    text-align: center;
}

.auth-switch-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--dark-muted);
}

.auth-switch-text a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer Section */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cccccc;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #999999;
}

/* Keyframes for animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating WhatsApp Widget */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background-color: #25d366;
    color: var(--white);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-floating-btn:hover {
    transform: translateY(-3px);
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    color: var(--white);
}

/* Popular Collections Grid Styles */
.popular-collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px;
    margin-top: 20px;
    margin-bottom: 60px;
}

.collection-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.collection-item-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
}

.collection-item-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.collection-item-card:hover .collection-item-img-wrapper img {
    transform: scale(1.08);
}

.collection-item-card:hover .collection-item-img-wrapper {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.collection-item-title {
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    color: var(--dark-color);
    transition: var(--transition);
}

.collection-item-card:hover .collection-item-title {
    color: var(--primary-color);
}

/* Horizontal Product Scrollers */
.scroller {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 10px 5px 25px;
    margin: 0 -5px;
}

.scroller-inner {
    display: flex;
    gap: 24px;
    flex-wrap: nowrap;
}

.scroller-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

/* Custom minimal scrollbar for scrollers */
.scroller::-webkit-scrollbar {
    height: 6px;
}

.scroller::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.scroller::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 3px;
    transition: background 0.3s;
}

.scroller::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ----------------------------------------------------
   MOBILE MENU TOGGLES & DRAWER STYLES
   ---------------------------------------------------- */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--dark-color);
    cursor: pointer;
    padding: 5px;
    order: 1;
}

.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 1001;
}

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

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-drawer.active {
    left: 0;
}

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

.mobile-drawer-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-color);
}
.mobile-drawer-logo span {
    color: var(--primary-color);
}

.mobile-drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--dark-color);
    cursor: pointer;
}

.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-drawer-search .search-form {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.mobile-drawer-search .search-input {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    border: none;
}

.mobile-drawer-search .search-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

.mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-drawer-nav-item a {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-drawer-nav-item a:hover {
    color: var(--primary-color);
}

.mobile-drawer-subnav {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
}

.mobile-drawer-subnav li a {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 0;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    color: var(--dark-muted);
}

.mobile-drawer-subnav li a:hover {
    color: var(--primary-color);
}

.mobile-drawer-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.drawer-action-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}


/* ----------------------------------------------------
   RESPONSIVE DESIGN MEDIA QUERIES
   ---------------------------------------------------- */

@media (max-width: 992px) {
    .header-row {
        gap: 15px;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .scroller-inner {
        gap: 15px;
    }
    
    .scroller-card {
        flex: 0 0 220px;
    }
    
    .category-page-layout {
        gap: 20px;
    }
    
    .sidebar-filters {
        width: 200px;
    }
    
    .product-detail-layout {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Header Row Restructuring */
    .mobile-nav-toggle {
        display: block;
        order: 1;
    }
    
    .logo {
        order: 2;
        flex: unset;
    }
    
    .logo a {
        font-size: 20px;
    }
    
    .header-actions {
        order: 3;
        gap: 15px;
    }
    
    .header-actions .action-link span {
        display: none; /* Hide labels like "Cart" / "Hi User" to save horizontal space */
    }
    
    .header-actions .action-link {
        font-size: 16px;
    }
    
    /* Search Bar spans full width on second row */
    .search-bar-container {
        display: block;
        order: 4;
        flex: 1 0 100%;
        max-width: 100%;
    }
    
    .search-form {
        border: 1px solid var(--dark-color);
    }
    
    .search-input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .search-btn {
        padding: 0 15px;
        font-size: 13px;
    }
    
    .header-row {
        flex-wrap: wrap;
        justify-content: space-between;
        row-gap: 12px;
    }
    
    .nav-bar {
        display: none; /* Hide regular horizontal desktop navbar */
    }
    
    /* Hero Slider scaling */
    .hero-slider {
        height: 260px;
    }
    
    .slide-content {
        padding: 20px;
        max-width: 300px;
        margin-left: 5%;
    }
    
    .slide-content h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .slide-content p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    /* Common page titles layout */
    .section-title {
        font-size: 20px;
        margin: 35px 0 20px;
    }
    
    /* Category grids spacing */
    .category-grid {
        gap: 15px;
        margin-bottom: 35px;
        grid-template-columns: repeat(4, 80px);
        justify-content: center;
    }
    
    .category-card {
        width: 90px;
    }
    
    .category-card-img-wrapper {
        width: 75px;
        height: 75px;
    }
    
    .category-card-name {
        font-size: 12px;
        margin-top: 8px;
    }
    
    .popular-collections-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
        margin-bottom: 35px;
    }
    
    /* PRODUCTS LISTINGS GRID: 2 COLUMNS ON MOBILE */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 35px;
    }
    
    .product-card {
        border-radius: var(--radius-sm);
    }
    
    .product-image-container {
        height: 160px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-cat {
        font-size: 10px;
    }
    
    .product-name {
        font-size: 13px;
        height: 36px;
        margin-bottom: 5px;
        -webkit-line-clamp: 2;
    }
    
    .product-price-row {
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .current-price {
        font-size: 14px;
    }
    
    .original-price {
        font-size: 11px;
    }
    
    .discount-tag {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .product-badge {
        top: 10px;
        left: 10px;
        font-size: 10px;
        padding: 2px 6px;
    }
    
    /* Watch & Buy horizontal items scroll */
    .watch-buy-carousel {
        gap: 12px;
    }
    
    .watch-buy-item-wrapper {
        flex: 0 0 160px;
        width: 160px;
    }
    
    .watch-buy-card {
        height: 280px;
    }
    
    .watch-buy-card-title {
        font-size: 12px;
    }
    
    .watch-buy-card-price {
        font-size: 12px;
    }
    
    /* WATCH & BUY MODAL OVERLAY: MOBLE NATIVE SCREEN FORMAT (TikTok Reels style) */
    .wb-modal-content {
        flex-direction: column;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .wb-video-panel {
        height: 100%;
        width: 100%;
        aspect-ratio: unset;
    }
    
    .wb-video-player {
        object-fit: cover;
    }
    
    .wb-details-panel {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 42%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 75%, rgba(0, 0, 0, 0) 100%);
        border-left: none;
        padding: 25px 15px 20px;
        color: var(--white);
        z-index: 5;
        overflow-y: visible;
        box-sizing: border-box;
    }
    
    .wb-product-image-wrapper {
        display: none; /* Hide product image panel to make content fit screen height */
    }
    
    .wb-product-desc {
        display: none; /* Hide description text overlay to avoid overflowing */
    }
    
    .wb-product-cat {
        color: var(--primary-color);
        font-size: 10px;
        font-weight: 700;
        margin-bottom: 2px;
    }
    
    .wb-product-title {
        color: var(--white);
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .wb-product-price {
        color: var(--white);
        font-size: 18px;
    }
    
    .wb-product-price-del {
        color: #cccccc;
        font-size: 12px;
    }
    
    .wb-buy-section {
        margin-top: 15px;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .wb-buy-btn {
        flex: 2;
        padding: 10px;
        font-size: 13px;
    }
    
    .wb-details-link {
        flex: 1;
        margin-top: 0;
        color: #dddddd;
        font-size: 12px;
        text-decoration: underline;
    }
    
    .wb-video-controls {
        bottom: 150px; /* Elevated to display nicely above details overlay card */
        right: 15px;
        gap: 12px;
    }
    
    .wb-control-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .wb-likes-count {
        margin-top: -8px;
        font-size: 10px;
    }
    
    .wb-close-btn {
        top: 15px;
        right: 15px;
        left: unset;
    }
    
    /* Category Filter Layout Sidebar Stacking */
    .category-page-layout {
        flex-direction: column;
        margin: 20px 0;
    }
    
    .sidebar-filters {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .sidebar-filters .filter-section:nth-child(2) {
        display: none; /* Hide sidebar info list on mobile view */
    }
    
    .filter-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .filter-list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-list li {
        margin-bottom: 0;
    }
    
    .filter-link {
        display: inline-block;
        padding: 6px 12px;
        background-color: var(--light-bg);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        font-size: 12px;
        color: var(--dark-muted);
    }
    
    .filter-link.active {
        background-color: var(--primary-color);
        color: var(--white) !important;
        border-color: var(--primary-color);
    }
    
    .catalog-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .catalog-title {
        font-size: 18px;
    }
    
    .catalog-count {
        font-size: 12px;
    }
    
    /* Product Details Page styling */
    .product-detail-layout {
        flex-direction: column;
        gap: 25px;
        margin: 25px 0;
    }
    
    .product-gallery {
        width: 100%;
    }
    
    .main-image-wrapper img {
        max-height: 320px;
    }
    
    .gallery-thumbnails {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .thumbnail-btn {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
    }
    
    .product-specs-panel {
        width: 100%;
    }
    
    .product-detail-name {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .product-detail-meta {
        margin-bottom: 15px;
        font-size: 13px;
    }
    
    .product-detail-price-row {
        padding: 10px 15px;
        margin-bottom: 20px;
    }
    
    .detail-current-price {
        font-size: 22px;
    }
    
    .detail-original-price {
        font-size: 16px;
    }
    
    .detail-desc-block {
        margin-bottom: 20px;
    }
    
    .add-to-cart-form {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .qty-input-wrapper {
        justify-content: center;
    }
    
    .qty-btn, .qty-val {
        height: 45px;
    }
    
    .add-cart-btn {
        height: 45px;
        font-size: 15px;
    }
    
    /* Cart & Checkout stacking */
    .cart-layout {
        flex-direction: column;
        gap: 25px;
        margin: 25px 0;
    }
    
    /* CART TABLE CONVERSIONS TO CARDS */
    .cart-items-table thead {
        display: none;
    }
    
    .cart-items-table,
    .cart-items-table tbody,
    .cart-items-table tr,
    .cart-items-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .cart-items-table tr {
        background-color: var(--white);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .cart-items-table td {
        border-bottom: none;
        padding: 6px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
    }
    
    .cart-items-table td:first-child {
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px dashed var(--border-color);
        padding-bottom: 12px;
        margin-bottom: 8px;
    }
    
    .cart-item-info {
        width: 100%;
        gap: 12px;
    }
    
    .cart-item-img {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .cart-item-name {
        font-size: 13px;
        display: block;
        line-height: 1.3;
        margin-bottom: 5px;
    }
    
    .cart-items-table td:nth-child(2)::before {
        content: "Unit Price:";
        font-weight: 600;
        color: var(--dark-muted);
    }
    
    .cart-items-table td:nth-child(3)::before {
        content: "Quantity:";
        font-weight: 600;
        color: var(--dark-muted);
    }
    
    .cart-items-table td:nth-child(4)::before {
        content: "Total:";
        font-weight: 600;
        color: var(--dark-muted);
    }
    
    .cart-items-table td:nth-child(4) {
        font-weight: 700;
        font-size: 14px;
        border-top: 1px dashed var(--border-color);
        padding-top: 10px;
        margin-top: 5px;
    }
    
    /* Checkout Form tweaks */
    #checkoutForm {
        padding: 20px !important;
    }
    
    #checkoutForm .form-group[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    /* Banner details stacking */
    div[style*="background-color: var(--light-bg)"][style*="padding: 40px"] {
        flex-direction: column !important;
        padding: 20px !important;
        margin: 30px 0 !important;
        gap: 20px !important;
        text-align: center;
    }
    
    div[style*="background-color: var(--light-bg)"][style*="padding: 40px"] div {
        max-width: 100% !important;
    }
    
    div[style*="background-color: var(--light-bg)"][style*="padding: 40px"] h3 {
        font-size: 20px !important;
    }
    
    div[style*="background-color: var(--light-bg)"][style*="padding: 40px"] a {
        justify-content: center;
        width: 100%;
    }
    
    /* Footer columns stacking */
    .footer {
        padding: 40px 0 20px;
        margin-top: 50px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-col h4 {
        margin-bottom: 12px;
    }
    
    .whatsapp-floating-btn {
        bottom: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Premium Product Accordion */
.product-accordion {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-color);
    text-align: left;
    transition: color 0.2s ease;
}

.accordion-header:hover {
    color: var(--primary-color);
}

.accordion-icon {
    font-size: 14px;
    color: var(--dark-muted);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    font-size: 14px;
    color: var(--dark-muted);
    line-height: 1.6;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding-bottom: 18px;
    transition: max-height 0.5s ease-in-out;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* Mobile Sticky Action Bar & Responsive Action Buttons */
.mobile-sticky-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sticky-price-info {
    display: flex;
    flex-direction: column;
}

.sticky-price-label {
    font-size: 11px;
    color: var(--dark-muted);
    text-transform: uppercase;
}

.sticky-price-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color);
}

.sticky-btn-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sticky-btn {
    height: 38px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
}

.sticky-buy-btn {
    padding: 0 12px !important;
    font-size: 11px !important;
    height: 36px !important;
}

@media (max-width: 768px) {
    .mobile-sticky-action-bar {
        display: flex;
    }

    body {
        padding-bottom: 70px;
    }

    .whatsapp-floating-btn {
        bottom: 75px !important;
    }
}


