/**
 * Storefront Pro – Professional marketplace styling
 * Inspired by modern storefronts (e.g. AliExpress-style): clean grids, trust, clarity.
 * Uses theme variables from style.css; does not break existing structure.
 */

/* ----- Section spacing & container ----- */
#content-wrapper .container {
  max-width: 1280px;
}

#content-wrapper section {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

#content-wrapper section:first-of-type {
  padding-top: 1.75rem;
}

@media (min-width: 768px) {
  #content-wrapper section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* ----- Section headers: clear hierarchy ----- */
.sell-header-title h2,
.section-title,
.feature-header .sell-header-title h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primary-text);
}

@media (min-width: 768px) {
  .sell-header-title h2,
  .section-title {
    font-size: 1.625rem;
  }
}

.header-line span {
  background: linear-gradient(90deg, var(--primary-color), transparent);
  height: 3px;
  border-radius: 2px;
}

/* ----- Product cards: professional grid look ----- */
.best-seller-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.best-seller-item:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.best-seller-item .box-inner {
  border-radius: inherit;
}

/* Product image: consistent aspect ratio (1:1) ----- */
.best-seller-item-image {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background: var(--light);
}

.best-seller-item-image a {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.best-seller-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.best-seller-item:hover .best-seller-item-image img {
  transform: scale(1.03);
}

/* Product details ----- */
.best-seller-item-details {
  padding: 0.75rem 0.875rem 1rem;
}

.best-seller-item-name a {
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--primary-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.best-seller-item-name a:hover {
  color: var(--primary-color);
}

.best-seller-item-price {
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--primary-text);
}

.best-seller-item-rating {
  margin-top: 0.25rem;
}

/* ----- Flash deal & promotion blocks ----- */
.flash-deal-area .sell-header-title h2,
.trending-items-area .sell-header-title h2,
.dod-section-wrapper .sell-header-title h2 {
  color: var(--primary-text);
}

/* ----- Trust strip ----- */
.trust-strip {
  background: var(--bg-color);
  font-size: 0.8125rem;
  color: var(--secondary-text);
}

.trust-strip-item .trust-strip-text {
  color: var(--primary-text);
}

.trust-strip-item i {
  font-size: 0.875rem;
}

/* ----- Top nav ----- */
.top-nav {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.top-nav-inner {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.top-nav-left h3 {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--secondary-text);
}

/* ----- Header: cleaner nav ----- */
.header {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* ----- Buttons: primary CTA ----- */
.btn-primary {
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

/* ----- Featured categories carousel ----- */
.featured-category-section .featured-category {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease;
}

.featured-category-section .featured-category:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.featured-category figure {
  margin: 0;
  padding-bottom: 100%;
  position: relative;
  overflow: hidden;
  background: var(--light);
}

.featured-category figure img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-category-text h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-text);
}

/* ----- Slider area ----- */
.slider-area {
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* ----- Footer spacing ----- */
#content-wrapper + .footer,
#content-wrapper ~ .footer {
  margin-top: 0;
}
