/* Shree Star Technology Custom CSS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #ffc107;
    --primary-dark: #e0a800;
    --secondary: #0088cc;
    --secondary-dark: #006699;
    --dark: #1e293b;
    --dark-surface: #0f172a;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #334155;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --radius: 8px;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

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

/* Layout Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Top Announcement Bar */
.top-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-muted);
}

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

.top-contacts span {
    margin-right: 20px;
}

.top-links a {
    margin-left: 15px;
    color: var(--text-muted);
}

.top-links a:hover {
    color: var(--secondary);
}

/* Main Header */
.main-header {
    background: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-brand {
    font-size: 22px;
    font-weight: 700;
    color: #0056b3;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-brand span {
    display: block;
    font-size: 10px;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search Bar */
.search-box {
    flex: 1;
    max-width: 600px;
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease;
}

.search-box:focus-within {
    border-color: var(--secondary);
}

.search-category {
    border: none;
    border-right: 1px solid var(--border-color);
    padding: 0 14px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    background: #f1f5f9;
    color: var(--dark);
    cursor: pointer;
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
}

.search-btn {
    background: transparent;
    border: none;
    padding: 0 18px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
}

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

/* Header Icons (Account, Wishlist, Cart) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    position: relative;
    cursor: pointer;
}

.action-icon {
    font-size: 20px;
    color: var(--dark);
}

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

/* Yellow Main Navigation */
.nav-bar {
    background: var(--primary);
    box-shadow: var(--shadow-sm);
}

.nav-bar .container {
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #000000;
    letter-spacing: 0.5px;
}

.nav-menu > li:hover > a,
.nav-menu > li.active > a {
    color: #ffffff;
    background: rgba(0,0,0,0.1);
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    z-index: 999;
    border-top: 3px solid #0056b3;
    padding: 6px 0;
    list-style: none;
}

.nav-menu > li:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block !important;
    padding: 10px 20px !important;
    color: #1e293b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: #f8fafc !important;
    color: #0056b3 !important;
}

/* Sub-category Header Strip */
.sub-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.sub-nav-menu {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.sub-nav-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--dark);
}

.sub-nav-menu a:hover {
    color: var(--secondary);
}

/* Hero Section Carousel Slider */
.hero-section {
    padding: 20px 0;
}

.hero-slider-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #0f172a;
    min-height: 400px;
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: fadeIn 0.6s ease-in-out;
}

.hero-slide.active {
    display: flex;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.1) 100%);
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 40px 60px;
}

.hero-slide-content {
    max-width: 650px;
    color: #ffffff;
}

.hero-slide-content h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.hero-slide-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #f1f5f9;
    font-weight: 500;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.slider-btn:hover {
    background: var(--primary);
    color: #000000;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.25);
}

/* 3-Column Promo Banners Grid */
.hero-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.promo-banner-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 220px;
    box-shadow: var(--shadow-md);
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
}

.promo-banner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.promo-banner-card .card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background 0.3s ease;
}

.promo-banner-card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.45);
}

.promo-banner-card h3 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.promo-banner-card .price-tag {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.banner-btn {
    display: inline-block;
    padding: 9px 22px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    width: fit-content;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.btn-white {
    background: #ffffff;
    color: #000000;
}

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

/* Popular Categories Thumbnail Grid */
.popular-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.popular-cat-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-md);
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.popular-cat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.popular-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
    padding: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    transition: background 0.3s ease;
}

.popular-cat-card:hover .popular-cat-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,0.85) 100%);
}

.popular-cat-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    margin: 0;
}

/* Brands We Sell Interactive Carousel Slider */
.brands-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    position: relative;
}

.brands-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 10px 45px;
}

.brands-slider-track {
    display: flex;
    align-items: center;
    gap: 35px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.brand-card {
    flex: 0 0 220px;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 10px;
    background: #ffffff;
    transition: transform 0.3s ease;
}

.brand-card img {
    max-height: 200px;
    max-width: 185px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-card:hover img {
    transform: scale(1.15);
}

.brand-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    color: var(--dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.brand-slider-btn:hover {
    background: var(--primary);
    color: #000000;
    transform: translateY(-50%) scale(1.1);
}

.brand-slider-btn.prev { left: 8px; }
.brand-slider-btn.next { right: 8px; }

/* Standardized Pagination Controls «« ‹ 1 2 ... 5 › »» */
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--dark);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.page-link:hover {
    border-color: var(--primary-dark);
    background: var(--primary);
    color: #000000;
}

.page-active {
    background: var(--primary) !important;
    color: #000000 !important;
    border-color: var(--primary-dark) !important;
    font-weight: 800 !important;
}

.page-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f5f9;
}

.page-ellipsis {
    padding: 0 6px;
    color: var(--text-muted);
    font-weight: 700;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #000000;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background: var(--secondary);
    color: #ffffff;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

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

/* Section Title */
.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-all {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.view-all:hover {
    color: var(--secondary);
}

/* Product Cards & Grids */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

.product-img-wrapper {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
}

.product-img-wrapper img {
    max-height: 160px;
    object-fit: contain;
}

.product-brand {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.product-price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

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

.original-price {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}

.btn-add-cart {
    background: var(--primary);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
}

/* Tabs Section */
.tabs-header {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: var(--dark);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-dark);
}

/* Popular Search Pills */
.search-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.pill-btn {
    background: #ffecb3;
    color: #795548;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

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

/* Discount Banner */
.promo-strip {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.promo-strip h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.promo-strip span {
    color: #d97706;
    border: 1px border #d97706;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 18px;
}

/* Today's Best Deals */
.deal-box {
    background: #ffffff;
    border: 2px solid var(--dark);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

.deal-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.deal-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding-top: 50px;
    margin-top: 60px;
}

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

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--secondary);
}

.footer-bottom {
    background: #f1f5f9;
    padding: 20px 0;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

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

/* Utility Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--dark);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}
