/**
 * EcommPaaS Fastest Theme — Core Stylesheet
 *
 * Pixel-perfect clone of Codazon Fastest Magento 2 theme.
 * CSS custom properties for per-demo color overrides.
 *
 * Class prefix: fst- (fastest theme)
 * Breakpoints: 480 / 768 / 992 / 1200
 */

/* ===================================================================
   1. CSS Variables & Design Tokens
   =================================================================== */

:root {
    /* Primary palette — Default Fashion demo colors */
    --fst-primary: #f75454;
    --fst-primary-dark: #e04343;
    --fst-primary-light: #ff6b6b;
    --fst-secondary: #333333;
    --fst-secondary-light: #555555;
    --fst-accent: #ffc107;

    /* Neutrals */
    --fst-text: #666666;
    --fst-text-dark: #333333;
    --fst-text-light: #999999;
    --fst-text-muted: #aaaaaa;
    --fst-heading: #222222;
    --fst-bg: #ffffff;
    --fst-bg-light: #f5f5f5;
    --fst-bg-dark: #222222;
    --fst-bg-darker: #1a1a1a;
    --fst-border: #e5e5e5;
    --fst-border-light: #eeeeee;
    --fst-border-dark: #cccccc;

    /* Status colors */
    --fst-success: #4caf50;
    --fst-danger: #f44336;
    --fst-warning: #ff9800;
    --fst-info: #2196f3;
    --fst-new: #1abc9c;
    --fst-sale: #f75454;
    --fst-hot: #ff6600;

    /* Rating stars */
    --fst-star: #ffc107;
    --fst-star-empty: #e0e0e0;

    /* Shadows */
    --fst-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --fst-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --fst-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --fst-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --fst-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.15);

    /* Borders & Radius */
    --fst-radius: 0;
    --fst-radius-sm: 2px;
    --fst-radius-md: 4px;
    --fst-radius-lg: 8px;
    --fst-radius-round: 50%;
    --fst-transition: 0.3s ease;
    --fst-transition-fast: 0.15s ease;

    /* Typography */
    --fst-font: 'Open Sans', Arial, Helvetica, sans-serif;
    --fst-font-heading: 'Poppins', 'Open Sans', Arial, sans-serif;
    --fst-font-size: 14px;
    --fst-font-size-sm: 12px;
    --fst-font-size-xs: 11px;
    --fst-font-size-lg: 16px;
    --fst-font-size-xl: 18px;
    --fst-line-height: 1.6;

    /* Heading sizes */
    --fst-h1: 28px;
    --fst-h2: 24px;
    --fst-h3: 20px;
    --fst-h4: 18px;
    --fst-h5: 16px;
    --fst-h6: 14px;

    /* Layout */
    --fst-container: 1200px;
    --fst-container-wide: 1600px;
    --fst-container-narrow: 960px;
    --fst-gutter: 15px;
    --fst-sidebar-width: 270px;

    /* Header heights */
    --fst-topbar-height: 35px;
    --fst-header-height: 70px;
    --fst-nav-height: 48px;
    --fst-sticky-height: 60px;

    /* Z-index scale */
    --fst-z-dropdown: 100;
    --fst-z-sticky: 200;
    --fst-z-overlay: 300;
    --fst-z-modal: 400;
    --fst-z-toast: 500;
}

/* ===================================================================
   2. Reset & Base
   =================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--fst-font);
    font-size: var(--fst-font-size);
    color: var(--fst-text);
    line-height: var(--fst-line-height);
    background: var(--fst-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

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

a:hover,
a:focus {
    color: var(--fst-primary-dark);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fst-font-heading);
    color: var(--fst-heading);
    font-weight: 600;
    margin-top: 0;
    line-height: 1.3;
}

h1 { font-size: var(--fst-h1); }
h2 { font-size: var(--fst-h2); }
h3 { font-size: var(--fst-h3); }
h4 { font-size: var(--fst-h4); }
h5 { font-size: var(--fst-h5); }
h6 { font-size: var(--fst-h6); }

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

/* ===================================================================
   3. Layout & Container
   =================================================================== */

.fst-container {
    max-width: var(--fst-container);
    margin: 0 auto;
    padding: 0 var(--fst-gutter);
}

.fst-container-wide {
    max-width: var(--fst-container-wide);
    margin: 0 auto;
    padding: 0 var(--fst-gutter);
}

.fst-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--fst-gutter) * -1);
}

.fst-col {
    padding: 0 var(--fst-gutter);
}

/* Grid columns */
.fst-col-1  { width: 8.3333%; }
.fst-col-2  { width: 16.6667%; }
.fst-col-3  { width: 25%; }
.fst-col-4  { width: 33.3333%; }
.fst-col-5  { width: 41.6667%; }
.fst-col-6  { width: 50%; }
.fst-col-7  { width: 58.3333%; }
.fst-col-8  { width: 66.6667%; }
.fst-col-9  { width: 75%; }
.fst-col-10 { width: 83.3333%; }
.fst-col-11 { width: 91.6667%; }
.fst-col-12 { width: 100%; }

/* ===================================================================
   4. Header — Top Bar (Row 1)
   =================================================================== */

.fst-topbar {
    background: var(--fst-bg-dark);
    color: #cccccc;
    font-size: var(--fst-font-size-sm);
    height: var(--fst-topbar-height);
    line-height: var(--fst-topbar-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.fst-topbar__left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fst-topbar__right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fst-topbar a {
    color: #cccccc;
    transition: color var(--fst-transition-fast);
}

.fst-topbar a:hover {
    color: var(--fst-primary);
}

.fst-topbar__phone {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fst-topbar__phone::before {
    content: '\f095';
    font-family: 'FontAwesome';
    font-size: 13px;
}

.fst-topbar__links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fst-topbar__links a {
    padding: 0 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.fst-topbar__links a:last-child {
    border-right: none;
    padding-right: 0;
}

.fst-topbar__switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fst-topbar__welcome {
    color: #cccccc;
}

/* ===================================================================
   5. Header — Main Header (Row 2)
   =================================================================== */

.fst-header-main {
    background: var(--fst-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--fst-border);
}

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

.fst-logo {
    flex-shrink: 0;
}

.fst-logo img {
    display: block;
    max-height: 40px;
    width: auto;
}

.fst-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.fst-search__form {
    display: flex;
    border: 2px solid var(--fst-primary);
    border-radius: var(--fst-radius-md);
    overflow: hidden;
}

.fst-search__category {
    background: var(--fst-bg-light);
    border: none;
    border-right: 1px solid var(--fst-border);
    padding: 0 15px;
    font-size: var(--fst-font-size-sm);
    color: var(--fst-text);
    cursor: pointer;
    min-width: 140px;
}

.fst-search__input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: var(--fst-font-size);
    color: var(--fst-text-dark);
    outline: none;
}

.fst-search__input::placeholder {
    color: var(--fst-text-light);
}

.fst-search__btn {
    background: var(--fst-primary);
    border: none;
    color: #ffffff;
    padding: 0 20px;
    cursor: pointer;
    transition: background var(--fst-transition-fast);
    display: flex;
    align-items: center;
}

.fst-search__btn:hover {
    background: var(--fst-primary-dark);
}

.fst-search__btn::before {
    content: '\f002';
    font-family: 'FontAwesome';
    font-size: 16px;
}

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

.fst-header-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fst-text-dark);
    font-size: var(--fst-font-size-sm);
    position: relative;
    cursor: pointer;
    transition: color var(--fst-transition-fast);
}

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

.fst-header-action__icon {
    font-size: 22px;
    position: relative;
}

.fst-header-action__count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--fst-primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: var(--fst-radius-round);
}

.fst-header-action__label {
    display: block;
    font-weight: 600;
}

.fst-header-action__sublabel {
    display: block;
    font-size: var(--fst-font-size-xs);
    color: var(--fst-text-light);
}

/* ===================================================================
   6. Header — Navigation Bar (Row 3)
   =================================================================== */

.fst-nav {
    background: var(--fst-primary);
    height: var(--fst-nav-height);
}

.fst-nav .fst-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.fst-nav__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.fst-nav__item {
    position: relative;
    height: 100%;
}

/* Issue #13: Nav links — letter-spacing, font-weight 600, uppercase */
.fst-nav__link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 18px;
    color: #ffffff;
    font-size: var(--fst-font-size);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background var(--fst-transition-fast);
}

.fst-nav__link:hover,
.fst-nav__item--active .fst-nav__link {
    background: rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.fst-nav__link--has-sub::after {
    content: '\f107';
    font-family: 'FontAwesome';
    margin-left: 6px;
    font-size: 12px;
}

/* Mega menu dropdown */
.fst-megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--fst-bg);
    min-width: 240px;
    box-shadow: var(--fst-shadow-lg);
    border-top: 3px solid var(--fst-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--fst-transition);
    z-index: var(--fst-z-dropdown);
    padding: 20px;
}

.fst-nav__item:hover .fst-megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fst-megamenu--full {
    left: 0;
    right: 0;
    width: 100%;
}

.fst-megamenu__cols {
    display: flex;
    gap: 30px;
}

.fst-megamenu__col {
    flex: 1;
}

.fst-megamenu__title {
    font-size: var(--fst-font-size);
    font-weight: 700;
    color: var(--fst-heading);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--fst-border);
    text-transform: uppercase;
}

.fst-megamenu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fst-megamenu__list li {
    margin-bottom: 6px;
}

.fst-megamenu__list a {
    color: var(--fst-text);
    font-size: var(--fst-font-size-sm);
    transition: all var(--fst-transition-fast);
    display: block;
    padding: 3px 0;
}

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

/* ===================================================================
   7. Sticky Header
   =================================================================== */

.fst-sticky-header {
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    background: var(--fst-bg);
    box-shadow: var(--fst-shadow-md);
    z-index: var(--fst-z-sticky);
    transition: top var(--fst-transition);
    height: var(--fst-sticky-height);
}

.fst-sticky-header--visible {
    top: 0;
}

.fst-sticky-header .fst-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.fst-sticky-header .fst-logo img {
    max-height: 32px;
}

.fst-sticky-header .fst-nav__menu {
    height: auto;
}

.fst-sticky-header .fst-nav__link {
    color: var(--fst-text-dark);
    font-size: var(--fst-font-size-sm);
    padding: 8px 14px;
    height: auto;
}

.fst-sticky-header .fst-nav__link:hover {
    color: var(--fst-primary);
    background: transparent;
}

/* ===================================================================
   8. Hero Slider
   =================================================================== */

.fst-hero {
    position: relative;
    overflow: hidden;
}

.fst-hero__slide {
    position: relative;
    display: block;
}

.fst-hero__slide img {
    width: 100%;
    height: auto;
    display: block;
}

.fst-hero__content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 60px;
    max-width: 50%;
}

.fst-hero__content--left {
    left: 0;
}

.fst-hero__content--right {
    right: 0;
    text-align: right;
}

.fst-hero__subtitle {
    font-size: var(--fst-font-size-lg);
    color: var(--fst-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.fst-hero__title {
    font-size: 42px;
    font-weight: 700;
    color: var(--fst-heading);
    line-height: 1.2;
    margin-bottom: 15px;
}

.fst-hero__desc {
    font-size: var(--fst-font-size-lg);
    color: var(--fst-text);
    margin-bottom: 25px;
}

.fst-hero__btn {
    display: inline-block;
    background: var(--fst-primary);
    color: #ffffff;
    padding: 12px 30px;
    font-size: var(--fst-font-size);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all var(--fst-transition);
}

.fst-hero__btn:hover {
    background: var(--fst-primary-dark);
    color: #ffffff;
}

/* Slider navigation */
.fst-hero .swiper-button-next,
.fst-hero .swiper-button-prev {
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border-radius: var(--fst-radius-round);
    opacity: 0;
    transition: all var(--fst-transition);
}

.fst-hero:hover .swiper-button-next,
.fst-hero:hover .swiper-button-prev {
    opacity: 1;
}

.fst-hero .swiper-button-next:hover,
.fst-hero .swiper-button-prev:hover {
    background: var(--fst-primary);
}

.fst-hero .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.fst-hero .swiper-pagination-bullet-active {
    background: var(--fst-primary);
}

/* ===================================================================
   9. Homepage Sections
   =================================================================== */

.fst-section {
    padding: 40px 0;
}

.fst-section--gray {
    background: var(--fst-bg-light);
}

.fst-section__header {
    text-align: center;
    margin-bottom: 30px;
}

.fst-section__title {
    font-size: var(--fst-h2);
    font-weight: 700;
    color: var(--fst-heading);
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.fst-section__title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--fst-primary);
    margin: 10px auto 0;
}

.fst-section__subtitle {
    font-size: var(--fst-font-size);
    color: var(--fst-text-light);
}

/* Promotional banners */
.fst-banners {
    display: flex;
    gap: var(--fst-gutter);
    margin-bottom: 30px;
}

.fst-banner {
    position: relative;
    overflow: hidden;
    flex: 1;
}

.fst-banner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.fst-banner:hover img {
    transform: scale(1.05);
}

.fst-banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 30px;
}

.fst-banner__title {
    font-size: var(--fst-h3);
    font-weight: 700;
    color: var(--fst-heading);
    margin-bottom: 10px;
}

.fst-banner__link {
    color: var(--fst-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--fst-font-size-sm);
    letter-spacing: 1px;
}

.fst-banner__link:hover {
    color: var(--fst-primary-dark);
}

/* ===================================================================
   10. Product Card
   =================================================================== */

/* Issue #14: Product cards — border 1px solid #eee, text-align center, no padding */
.fst-product-card {
    position: relative;
    background: var(--fst-bg);
    border: 1px solid #eeeeee;
    transition: all var(--fst-transition);
    text-align: center;
    padding: 0;
}

.fst-product-card:hover {
    box-shadow: var(--fst-shadow-hover);
    border-color: transparent;
}

/* Issue #15: Product image area — 15px padding */
.fst-product-card__image {
    position: relative;
    overflow: hidden;
    padding: 15px;
}

.fst-product-card__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity var(--fst-transition);
}

/* Second image on hover */
.fst-product-card__image img + img {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    opacity: 0;
}

.fst-product-card:hover .fst-product-card__image img:first-child {
    opacity: 0;
}

.fst-product-card:hover .fst-product-card__image img + img {
    opacity: 1;
}

/* Product badges */
.fst-product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.fst-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: var(--fst-font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 4px;
}

.fst-badge--new {
    background: var(--fst-new);
}

.fst-badge--sale {
    background: var(--fst-sale);
}

.fst-badge--hot {
    background: var(--fst-hot);
}

/* Product actions (wishlist, compare, quickview) */
.fst-product-card__actions {
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--fst-transition);
}

.fst-product-card:hover .fst-product-card__actions {
    opacity: 1;
    transform: translateX(0);
}

.fst-product-card__action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fst-bg);
    border: 1px solid var(--fst-border);
    color: var(--fst-text);
    cursor: pointer;
    transition: all var(--fst-transition-fast);
    font-size: 14px;
}

.fst-product-card__action-btn:hover {
    background: var(--fst-primary);
    border-color: var(--fst-primary);
    color: #ffffff;
}

/* Product info */
.fst-product-card__info {
    padding: 15px;
    border-top: 1px solid var(--fst-border-light);
}

/* Issue #16: Product name — 14px, #333, proper margin */
.fst-product-card__name {
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    margin: 10px 0 5px;
    line-height: 1.4;
}

.fst-product-card__name a {
    color: inherit;
}

.fst-product-card__name a:hover {
    color: var(--fst-primary);
}

/* Rating */
.fst-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 8px;
}

/* Issue #18: Star ratings — 12px, gold filled, gray empty */
.fst-rating__stars {
    display: flex;
    gap: 2px;
    color: #ffc107;
    font-size: 12px;
}

.fst-rating__stars .empty {
    color: #e0e0e0;
}

.fst-rating__count {
    font-size: var(--fst-font-size-xs);
    color: var(--fst-text-light);
}

/* Price */
.fst-price {
    margin-bottom: 10px;
}

/* Issue #17: Price — 16px, bold, primary */
.fst-price__current {
    font-size: 16px;
    font-weight: 700;
    color: #f75454;
}

.fst-price__old {
    font-size: var(--fst-font-size-sm);
    color: var(--fst-text-light);
    text-decoration: line-through;
    margin-left: 8px;
}

/* Issue #19: Add to cart button — full width, primary bg, hidden until hover */
.fst-product-card__addtocart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f75454;
    color: #ffffff;
    border: none;
    padding: 8px 0;
    font-size: var(--fst-font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--fst-transition-fast);
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
}

.fst-product-card:hover .fst-product-card__addtocart {
    opacity: 1;
    transform: translateY(0);
}

.fst-product-card__addtocart:hover {
    background: var(--fst-primary-dark);
}

/* ===================================================================
   11. Product Carousel
   =================================================================== */

.fst-product-carousel {
    position: relative;
}

.fst-product-carousel .swiper-button-next,
.fst-product-carousel .swiper-button-prev {
    width: 36px;
    height: 36px;
    background: var(--fst-bg);
    border: 1px solid var(--fst-border);
    color: var(--fst-text);
    border-radius: var(--fst-radius-round);
    top: -40px;
}

.fst-product-carousel .swiper-button-prev {
    right: 40px;
    left: auto;
}

.fst-product-carousel .swiper-button-next {
    right: 0;
}

.fst-product-carousel .swiper-button-next:hover,
.fst-product-carousel .swiper-button-prev:hover {
    background: var(--fst-primary);
    border-color: var(--fst-primary);
    color: #ffffff;
}

/* ===================================================================
   12. Category Tabs
   =================================================================== */

.fst-tabs {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--fst-border);
    padding-bottom: 0;
}

.fst-tab {
    font-size: var(--fst-font-size);
    font-weight: 600;
    color: var(--fst-text);
    padding: 10px 5px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--fst-transition-fast);
    text-transform: uppercase;
}

.fst-tab:hover,
.fst-tab--active {
    color: var(--fst-primary);
    border-bottom-color: var(--fst-primary);
}

/* ===================================================================
   13. Brand/Logo Carousel
   =================================================================== */

.fst-brands {
    padding: 30px 0;
    border-top: 1px solid var(--fst-border);
    border-bottom: 1px solid var(--fst-border);
}

.fst-brands__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.fst-brands__item img {
    max-height: 50px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all var(--fst-transition);
}

.fst-brands__item:hover img {
    opacity: 1;
    filter: grayscale(0);
}

/* ===================================================================
   14. Footer
   =================================================================== */

/* Newsletter */
.fst-footer-newsletter {
    background: var(--fst-primary);
    padding: 25px 0;
    color: #ffffff;
}

.fst-footer-newsletter .fst-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.fst-footer-newsletter__title {
    font-size: var(--fst-h4);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
}

.fst-footer-newsletter__desc {
    font-size: var(--fst-font-size-sm);
    opacity: 0.8;
}

.fst-footer-newsletter__form {
    display: flex;
    max-width: 450px;
    width: 100%;
}

.fst-footer-newsletter__input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: var(--fst-font-size);
    outline: none;
}

.fst-footer-newsletter__btn {
    background: var(--fst-bg-dark);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--fst-transition-fast);
    white-space: nowrap;
}

.fst-footer-newsletter__btn:hover {
    background: var(--fst-bg-darker);
}

/* Footer main */
.fst-footer-main {
    background: var(--fst-bg-dark);
    padding: 50px 0 30px;
    color: #aaaaaa;
}

.fst-footer-main .fst-container {
    display: flex;
    gap: 30px;
}

.fst-footer-col {
    flex: 1;
}

.fst-footer-col--wide {
    flex: 1.5;
}

.fst-footer-col__title {
    font-size: var(--fst-font-size);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fst-footer-col__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fst-footer-col__list li {
    margin-bottom: 8px;
}

.fst-footer-col__list a {
    color: #aaaaaa;
    font-size: var(--fst-font-size-sm);
    transition: all var(--fst-transition-fast);
}

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

.fst-footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fst-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: var(--fst-font-size-sm);
}

.fst-footer-contact li i {
    color: var(--fst-primary);
    width: 16px;
    text-align: center;
    margin-top: 3px;
}

/* Footer bottom */
.fst-footer-bottom {
    background: var(--fst-bg-darker);
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.fst-footer-bottom__copyright {
    font-size: var(--fst-font-size-sm);
    color: #777777;
}

.fst-footer-bottom__payments {
    display: flex;
    gap: 8px;
}

.fst-footer-bottom__payments img {
    height: 24px;
    width: auto;
    opacity: 0.7;
    transition: opacity var(--fst-transition-fast);
}

.fst-footer-bottom__payments img:hover {
    opacity: 1;
}

.fst-footer-social {
    display: flex;
    gap: 8px;
}

.fst-footer-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #aaaaaa;
    border-radius: var(--fst-radius-round);
    transition: all var(--fst-transition-fast);
    font-size: 14px;
}

.fst-footer-social a:hover {
    background: var(--fst-primary);
    color: #ffffff;
}

/* ===================================================================
   15. Buttons
   =================================================================== */

.fst-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 25px;
    font-size: var(--fst-font-size);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all var(--fst-transition);
    text-decoration: none;
}

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

.fst-btn--primary:hover {
    background: var(--fst-primary-dark);
    color: #ffffff;
}

.fst-btn--outline {
    background: transparent;
    border: 2px solid var(--fst-primary);
    color: var(--fst-primary);
}

.fst-btn--outline:hover {
    background: var(--fst-primary);
    color: #ffffff;
}

.fst-btn--dark {
    background: var(--fst-bg-dark);
    color: #ffffff;
}

.fst-btn--dark:hover {
    background: var(--fst-heading);
    color: #ffffff;
}

.fst-btn--sm {
    padding: 7px 15px;
    font-size: var(--fst-font-size-sm);
}

.fst-btn--lg {
    padding: 14px 35px;
    font-size: var(--fst-font-size-lg);
}

/* ===================================================================
   16. Category Page
   =================================================================== */

.fst-category-banner {
    margin-bottom: 20px;
    overflow: hidden;
}

.fst-category-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.fst-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--fst-border);
    margin-bottom: 20px;
}

.fst-toolbar__left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fst-toolbar__right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fst-toolbar__sort select {
    border: 1px solid var(--fst-border);
    padding: 6px 10px;
    font-size: var(--fst-font-size-sm);
    color: var(--fst-text);
}

.fst-toolbar__viewmode {
    display: flex;
    gap: 5px;
}

.fst-toolbar__viewmode-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fst-border);
    color: var(--fst-text-light);
    cursor: pointer;
    transition: all var(--fst-transition-fast);
}

.fst-toolbar__viewmode-btn--active,
.fst-toolbar__viewmode-btn:hover {
    border-color: var(--fst-primary);
    color: var(--fst-primary);
}

/* Product grid */
.fst-product-grid {
    display: grid;
    gap: var(--fst-gutter);
}

.fst-product-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.fst-product-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.fst-product-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.fst-product-grid--cols-5 { grid-template-columns: repeat(5, 1fr); }
.fst-product-grid--cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Sidebar filters */
.fst-sidebar {
    width: var(--fst-sidebar-width);
}

.fst-sidebar__block {
    margin-bottom: 25px;
}

.fst-sidebar__title {
    font-size: var(--fst-font-size);
    font-weight: 700;
    color: var(--fst-heading);
    padding: 12px 0;
    border-bottom: 2px solid var(--fst-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* ===================================================================
   17. Product Detail Page
   =================================================================== */

.fst-pdp {
    padding: 30px 0;
}

.fst-pdp__gallery {
    position: relative;
}

.fst-pdp__main-image {
    border: 1px solid var(--fst-border);
    overflow: hidden;
    margin-bottom: 10px;
}

.fst-pdp__main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.fst-pdp__thumbnails {
    display: flex;
    gap: 8px;
}

.fst-pdp__thumb {
    width: 80px;
    height: 80px;
    border: 1px solid var(--fst-border);
    cursor: pointer;
    overflow: hidden;
    transition: border-color var(--fst-transition-fast);
}

.fst-pdp__thumb--active,
.fst-pdp__thumb:hover {
    border-color: var(--fst-primary);
}

.fst-pdp__info {
    padding-left: 30px;
}

.fst-pdp__title {
    font-size: var(--fst-h2);
    font-weight: 600;
    color: var(--fst-heading);
    margin-bottom: 10px;
}

.fst-pdp__sku {
    font-size: var(--fst-font-size-sm);
    color: var(--fst-text-light);
    margin-bottom: 15px;
}

.fst-pdp__price {
    margin-bottom: 20px;
}

.fst-pdp__price .fst-price__current {
    font-size: 28px;
}

.fst-pdp__short-desc {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--fst-text);
}

.fst-pdp__qty {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.fst-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--fst-border);
}

.fst-qty-control__btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fst-bg-light);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--fst-text);
    transition: all var(--fst-transition-fast);
}

.fst-qty-control__btn:hover {
    background: var(--fst-primary);
    color: #ffffff;
}

.fst-qty-control__input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--fst-border);
    border-right: 1px solid var(--fst-border);
    font-size: var(--fst-font-size);
}

/* Product tabs */
.fst-pdp-tabs {
    margin-top: 40px;
    border-top: 1px solid var(--fst-border);
}

.fst-pdp-tabs__nav {
    display: flex;
    border-bottom: 1px solid var(--fst-border);
}

.fst-pdp-tabs__tab {
    padding: 15px 25px;
    font-size: var(--fst-font-size);
    font-weight: 600;
    color: var(--fst-text);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--fst-transition-fast);
    text-transform: uppercase;
}

.fst-pdp-tabs__tab:hover,
.fst-pdp-tabs__tab--active {
    color: var(--fst-primary);
    border-bottom-color: var(--fst-primary);
}

.fst-pdp-tabs__content {
    padding: 25px 0;
}

/* ===================================================================
   18. Newsletter Popup
   =================================================================== */

.fst-newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--fst-z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--fst-transition);
}

.fst-newsletter-popup--visible {
    opacity: 1;
    visibility: visible;
}

.fst-newsletter-popup__inner {
    background: var(--fst-bg);
    max-width: 700px;
    width: 90%;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: var(--fst-shadow-lg);
}

.fst-newsletter-popup__image {
    width: 50%;
    background-size: cover;
    background-position: center;
}

.fst-newsletter-popup__content {
    width: 50%;
    padding: 40px;
    text-align: center;
}

.fst-newsletter-popup__close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--fst-text-light);
    cursor: pointer;
    transition: color var(--fst-transition-fast);
}

.fst-newsletter-popup__close:hover {
    color: var(--fst-text-dark);
}

.fst-newsletter-popup__title {
    font-size: var(--fst-h3);
    font-weight: 700;
    margin-bottom: 10px;
}

.fst-newsletter-popup__desc {
    color: var(--fst-text);
    margin-bottom: 20px;
}

.fst-newsletter-popup__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fst-newsletter-popup__input {
    border: 1px solid var(--fst-border);
    padding: 12px 15px;
    font-size: var(--fst-font-size);
    text-align: center;
    outline: none;
}

.fst-newsletter-popup__input:focus {
    border-color: var(--fst-primary);
}

.fst-newsletter-popup__noshow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: var(--fst-font-size-sm);
    color: var(--fst-text-light);
}

/* ===================================================================
   19. Promo Bar (Top Announcement)
   =================================================================== */

.fst-promo-bar {
    background: var(--fst-primary);
    color: #ffffff;
    text-align: center;
    padding: 8px 15px;
    font-size: var(--fst-font-size-sm);
    position: relative;
}

.fst-promo-bar a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.fst-promo-bar__close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
}

.fst-promo-bar__close:hover {
    color: #ffffff;
}

/* ===================================================================
   20. Countdown / Deal Timer
   =================================================================== */

.fst-countdown {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.fst-countdown__block {
    text-align: center;
    background: var(--fst-bg-dark);
    color: #ffffff;
    padding: 8px 12px;
    min-width: 50px;
}

.fst-countdown__number {
    font-size: var(--fst-h3);
    font-weight: 700;
    display: block;
}

.fst-countdown__label {
    font-size: var(--fst-font-size-xs);
    text-transform: uppercase;
    opacity: 0.7;
}

.fst-countdown__separator {
    font-size: var(--fst-h3);
    font-weight: 700;
    color: var(--fst-text);
}

/* ===================================================================
   21. Back to Top
   =================================================================== */

.fst-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--fst-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--fst-radius-round);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--fst-transition);
    z-index: var(--fst-z-overlay);
    box-shadow: var(--fst-shadow);
}

.fst-back-to-top--visible {
    opacity: 1;
    visibility: visible;
}

.fst-back-to-top:hover {
    background: var(--fst-primary-dark);
    transform: translateY(-3px);
}

/* ===================================================================
   22. Responsive Breakpoints
   =================================================================== */

@media (max-width: 1200px) {
    :root {
        --fst-container: 100%;
    }
}

@media (max-width: 992px) {
    .fst-header-main .fst-container {
        flex-wrap: wrap;
    }

    .fst-search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
        margin-top: 10px;
    }

    .fst-nav__menu {
        display: none;
    }

    .fst-footer-main .fst-container {
        flex-wrap: wrap;
    }

    .fst-footer-col {
        flex: 0 0 50%;
        margin-bottom: 20px;
    }

    .fst-product-grid--cols-4,
    .fst-product-grid--cols-5,
    .fst-product-grid--cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .fst-hero__title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .fst-topbar__left,
    .fst-topbar__right {
        font-size: var(--fst-font-size-xs);
    }

    .fst-banners {
        flex-direction: column;
    }

    .fst-product-grid--cols-3,
    .fst-product-grid--cols-4,
    .fst-product-grid--cols-5,
    .fst-product-grid--cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .fst-footer-newsletter .fst-container {
        flex-direction: column;
        text-align: center;
    }

    .fst-footer-bottom .fst-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .fst-pdp__info {
        padding-left: 0;
        margin-top: 20px;
    }

    .fst-hero__title {
        font-size: 24px;
    }

    .fst-hero__content {
        padding: 0 30px;
    }

    .fst-newsletter-popup__inner {
        flex-direction: column;
    }

    .fst-newsletter-popup__image {
        width: 100%;
        height: 200px;
    }

    .fst-newsletter-popup__content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .fst-topbar {
        display: none;
    }

    .fst-product-grid--cols-2,
    .fst-product-grid--cols-3,
    .fst-product-grid--cols-4 {
        grid-template-columns: 1fr;
    }

    .fst-footer-col {
        flex: 0 0 100%;
    }

    .fst-hero__content {
        max-width: 100%;
        padding: 0 15px;
    }

    .fst-hero__title {
        font-size: 20px;
    }
}

/* ===================================================================
   23. Utility Classes
   =================================================================== */

.fst-text-center { text-align: center; }
.fst-text-left { text-align: left; }
.fst-text-right { text-align: right; }
.fst-text-uppercase { text-transform: uppercase; }
.fst-text-primary { color: var(--fst-primary); }
.fst-text-white { color: #ffffff; }
.fst-bg-primary { background: var(--fst-primary); }
.fst-bg-dark { background: var(--fst-bg-dark); }
.fst-bg-light { background: var(--fst-bg-light); }
.fst-hidden { display: none !important; }
.fst-visible { display: block !important; }
.fst-clearfix::after { content: ''; display: table; clear: both; }

/* ===================================================================
   24. Hover Image Swap (Fastest signature effect)
   =================================================================== */

.fst-product-card__image {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.fst-product-card__img-main,
.fst-product-card__img-hover {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fst-product-card__img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.fst-product-card:hover .fst-product-card__img-main {
    opacity: 0;
}

.fst-product-card:hover .fst-product-card__img-hover {
    opacity: 1;
}

/* Zoom effect on hover */
.fst-product-card:hover .fst-product-card__img-main,
.fst-product-card:hover .fst-product-card__img-hover {
    transform: scale(1.03);
}

/* ===================================================================
   25. Animations & Keyframes
   =================================================================== */

@keyframes fst-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fst-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fst-slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fst-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fst-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Product card stagger animation on page load */
.fst-product-card {
    animation: fst-fadeInUp 0.5s ease backwards;
}

.fst-product-card:nth-child(1) { animation-delay: 0s; }
.fst-product-card:nth-child(2) { animation-delay: 0.05s; }
.fst-product-card:nth-child(3) { animation-delay: 0.1s; }
.fst-product-card:nth-child(4) { animation-delay: 0.15s; }
.fst-product-card:nth-child(5) { animation-delay: 0.2s; }
.fst-product-card:nth-child(6) { animation-delay: 0.25s; }
.fst-product-card:nth-child(7) { animation-delay: 0.3s; }
.fst-product-card:nth-child(8) { animation-delay: 0.35s; }

/* Action buttons stagger on hover */
.fst-product-card__actions .fst-product-card__action-btn {
    animation: fst-slideInRight 0.3s ease backwards;
}

.fst-product-card:hover .fst-product-card__actions .fst-product-card__action-btn:nth-child(1) {
    animation-delay: 0s;
}

.fst-product-card:hover .fst-product-card__actions .fst-product-card__action-btn:nth-child(2) {
    animation-delay: 0.08s;
}

.fst-product-card:hover .fst-product-card__actions .fst-product-card__action-btn:nth-child(3) {
    animation-delay: 0.16s;
}

/* Add to cart button fly effect */
.fst-product-card__addtocart.fst-adding {
    animation: fst-pulse 0.4s ease;
}

/* Hero slide transition */
.fst-hero .swiper-slide {
    transition: transform 0.6s ease;
}

/* Mega menu fade in */
.fst-nav__item:hover .fst-megamenu {
    animation: fst-fadeIn 0.2s ease;
}

/* Newsletter popup entrance */
.fst-newsletter-popup--visible .fst-newsletter-popup__inner {
    animation: fst-fadeInUp 0.4s ease;
}

/* Back to top bounce */
.fst-back-to-top:hover {
    animation: fst-pulse 0.6s ease infinite;
}

/* Loading spinner */
.fst-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: fst-spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

/* ===================================================================
   26. Tooltip
   =================================================================== */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fst-bg-dark);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: var(--fst-radius-sm);
    font-size: var(--fst-font-size-xs);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    margin-bottom: 6px;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ===================================================================
   27. Demo Switcher (admin-configurable demo selection)
   =================================================================== */

.fst-demo-selector {
    display: none;
}

body.fst-demo-garden { --fst-primary: #4caf50; --fst-primary-dark: #388e3c; }
body.fst-demo-furniture { --fst-primary: #8d6e63; --fst-primary-dark: #6d4c41; }
body.fst-demo-electronics { --fst-primary: #1976d2; --fst-primary-dark: #1565c0; }
body.fst-demo-supermarket { --fst-primary: #e53935; --fst-primary-dark: #c62828; }
body.fst-demo-sportswear { --fst-primary: #ff5722; --fst-primary-dark: #e64a19; }
body.fst-demo-jewelry { --fst-primary: #b8860b; --fst-primary-dark: #9a7209; }
body.fst-demo-medical { --fst-primary: #00897b; --fst-primary-dark: #00695c; }
body.fst-demo-food { --fst-primary: #2e7d32; --fst-primary-dark: #1b5e20; }
body.fst-demo-baby { --fst-primary: #ec407a; --fst-primary-dark: #d81b60; }
body.fst-demo-outdoor { --fst-primary: #d32f2f; --fst-primary-dark: #b71c1c; }
