/* Custom CSS for The Laptop Shop - Modern Design */

:root {
  /* Primary Brand Colors */
  --primary-color: #8A4FFF;  /* Vibrant Purple */
  --secondary-color: #2C3E50; /* Deep Blue-Gray */
  --accent-color: #00D1B2;   /* Turquoise */
  
  /* Background Colors */
  --light-bg: #F7F9FC;
  --dark-bg: #1A202C;
  --gradient-bg: linear-gradient(135deg, var(--primary-color), #B06AB3);
  
  /* Text Colors */
  --text-primary: #2D3748;
  --text-secondary: #4A5568;
  --text-light: #718096;
  --text-white: #FFFFFF;
  
  /* Border Colors */
  --border-light: #E2E8F0;
  --border-medium: #CBD5E0;
  
  /* UI Elements */
  --success-color: #48BB78;
  --warning-color: #F6AD55;
  --error-color: #F56565;
  --info-color: #4299E1;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-hover: 0 15px 30px rgba(138,79,255,0.15);
  
  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.4s ease;
}

/* Global Style Overrides */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background-color: var(--light-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

/* Buttons */
.tp-btn {
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.tp-btn:hover {
  background: var(--gradient-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

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

/* Cards */
.tp-card {
  background: var(--text-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.tp-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Navigation */
.tp-nav {
  background: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.tp-nav-link {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.tp-nav-link:hover,
.tp-nav-link.active {
  color: var(--primary-color);
}

/* Form Elements */
.tp-input {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 16px;
  transition: var(--transition-fast);
}

.tp-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(138,79,255,0.1);
}

/* Badges */
.tp-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.tp-badge-primary {
  background: rgba(138,79,255,0.1);
  color: var(--primary-color);
}

.tp-badge-success {
  background: rgba(72,187,120,0.1);
  color: var(--success-color);
}

.tp-badge-warning {
  background: rgba(246,173,85,0.1);
  color: var(--warning-color);
}

/* Section Titles */
.section-title {
  position: relative;
  margin-bottom: 2rem;
}

.section-main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

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

/* Product Cards */
.tp-product-card {
  background: var(--text-white);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-normal);
}

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

.tp-product-title {
  color: var(--text-primary);
  font-weight: 600;
}

.tp-product-price {
  color: var(--primary-color);
  font-weight: 700;
}

/* Call to Action Sections */
.tp-cta-section {
  background: var(--gradient-bg);
  color: var(--text-white);
  padding: 4rem 0;
}

/* Footer */
.tp-footer {
  background: var(--dark-bg);
  color: var(--text-white);
  padding: 4rem 0 2rem;
}

.tp-footer-link {
  color: var(--text-light);
  transition: var(--transition-fast);
}

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

/* Utility Classes */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-accent { background-color: var(--accent-color); }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-bg); }

/* Global Styles */
.section-title {
  margin-bottom: 40px;
}

.section-main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.section-main-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
}

.tp-btn {
  background: var(--primary-color);
  border: none;
  border-radius: 5px;
  padding: 12px 25px;
  font-weight: 600;
  color: var(--white);
  box-shadow: 0 5px 15px rgba(255, 94, 20, 0.2);
  transition: var(--transition);
}

.tp-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

/* Header Styles */
.tp-header__main {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Banner Styles */
.tp-slider-item {
  background: linear-gradient(120deg, #2a3f54 0%, #1a2a38 100%);
}

.tp-slider-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.slider-badge {
  position: absolute;
  top: 30px;
  right: 40px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--box-shadow);
}

.slider-img-animation img {
  transition: var(--transition);
}

.tp-slider-button-prev,
.tp-slider-button-next {
  background: rgba(255,255,255,0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: var(--transition);
}

.tp-slider-button-prev:hover,
.tp-slider-button-next:hover {
  background: var(--primary-color);
}

/* Category Styles */
.tp-product-category-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.tp-product-category-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: var(--primary-color);
}

.tp-product-category-thumb {
  position: relative;
  overflow: hidden;
  background: var(--light-bg);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-product-category-thumb img {
  max-height: 120px;
  transition: var(--transition);
}

.tp-product-category-item:hover .tp-product-category-thumb img {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,94,20,0.8);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
}

.tp-product-category-item:hover .category-overlay {
  opacity: 1;
}

.tp-product-category-content {
  padding: 20px 15px;
  background: var(--white);
}

.tp-product-category-title {
  font-size: 18px;
  margin-bottom: 5px;
}

.tp-product-category-title a {
  color: var(--secondary-color);
  font-weight: 600;
}

/* Feature Styles */
.tp-feature-item {
  background: var(--light-bg);
  border-radius: 10px;
  padding: 25px;
  height: 100%;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.tp-feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: var(--primary-color);
}

.tp-feature-icon {
  background: rgba(255,94,20,0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.tp-feature-icon span {
  color: var(--primary-color);
}

.tp-feature-item:hover .tp-feature-icon {
  background: rgba(255,94,20,0.2);
}

.tp-feature-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

/* Product Styles */
.tp-product-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.tp-product-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: var(--primary-color);
}

.tp-product-thumb {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  overflow: hidden;
}

.tp-product-thumb img {
  max-height: 180px;
  transition: var(--transition);
}

.tp-product-item:hover .tp-product-thumb img {
  transform: scale(1.05);
}

.tp-product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
}

.product-hot {
  background: var(--primary-color);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 13px;
}

.tp-product-action-btn {
  background: rgba(255,255,255,0.9);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 5px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: var(--transition);
}

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

.tp-product-action-btn:hover svg path {
  fill: var(--white);
}

.tp-product-content {
  padding: 20px 15px;
  background: var(--white);
}

.tp-product-category {
  margin-bottom: 5px;
}

.tp-product-category a {
  color: var(--text-light);
  font-size: 13px;
  text-transform: uppercase;
}

.tp-product-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  height: 45px;
  overflow: hidden;
}

.tp-product-title a {
  color: var(--secondary-color);
}

.tp-product-rating-icon {
  color: #ffb800;
}

.tp-product-rating-text {
  margin-left: 5px;
}

.tp-product-rating-text span {
  color: var(--text-light);
  font-size: 13px;
}

.old-price {
  color: var(--text-light);
  text-decoration: line-through;
  margin-right: 10px;
  font-size: 15px;
}

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

.tp-btn-view-details {
  display: block;
  text-align: center;
  padding: 10px;
  background: var(--light-bg);
  color: var(--secondary-color);
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
}

.tp-btn-view-details:hover {
  background: var(--primary-color) !important;
  color: var(--white) !important;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .tp-slider-title {
    font-size: 2.5rem;
  }
  
  .slider-badge {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 767px) {
  .section-main-title {
    font-size: 2rem;
  }
  
  .tp-slider-title {
    font-size: 2rem;
  }
  
  .tp-feature-item {
    margin-bottom: 20px;
  }
}

@media (max-width: 575px) {
  .tp-slider-title {
    font-size: 1.8rem;
  }
  
  .slider-badge {
    width: 80px;
    height: 80px;
    top: 15px;
    right: 15px;
  }
}

/* Featured Products Section - Improved Visibility */
.featured-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.featured-section-title {
  color: #ffffff;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.featured-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
}

.featured-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 0;
  padding: 20px 0;
}

.featured-product-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

.featured-product-thumb {
  position: relative;
  padding-top: 100%;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.featured-product-thumb img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.featured-product-content {
  padding: 20px;
  text-align: center;
}

.featured-product-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
  line-height: 1.4;
}

.featured-product-price {
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 600;
  margin-top: 10px;
}

.featured-product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-color);
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
  .featured-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 575px) {
  .featured-products-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .featured-section {
    padding: 20px;
  }
  
  .featured-section-title {
    font-size: 24px;
  }
}

/* Product Slider Section - Increased Size */
.tp-slider-height {
  min-height: 850px; /* Increased from 700px */
}

.tp-product-arrival-slider {
  padding: 50px 0; /* Increased padding */
}

.tp-product-thumb {
  height: 500px; /* Increased product image height */
  overflow: hidden;
}

.tp-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tp-product-thumb:hover img {
  transform: scale(1.05);
}

.swiper-container {
  padding: 30px 0; /* Increased padding */
}

.tp-slider-item {
  padding: 80px 0; /* Increased padding */
}

/* Adjust responsive breakpoints for larger slider */
@media (max-width: 991px) {
  .tp-slider-height {
    min-height: 750px; /* Increased from 600px */
  }
  
  .tp-product-thumb {
    height: 450px; /* Increased from 350px */
  }
}

@media (max-width: 767px) {
  .tp-slider-height {
    min-height: 650px; /* Increased from 500px */
  }
  
  .tp-product-thumb {
    height: 400px; /* Increased from 300px */
  }
}

@media (max-width: 575px) {
  .tp-slider-height {
    min-height: 550px; /* Increased from 400px */
  }
  
  .tp-product-thumb {
    height: 350px; /* Increased from 250px */
  }
}

/* Remove space between slider and stats */
.tp-slider-area {
  margin-bottom: -100px; /* Increased negative margin to pull up the next section more */
  position: relative;
  z-index: 1;
}

.tp-product-arrival-slider {
  margin-top: -30px; /* Reduce top space */
  padding: 20px 0; /* Reduced padding */
  position: relative;
  z-index: 2;
}

.tp-product-thumb {
  margin-bottom: 0; /* Remove bottom margin */
}

/* Stats section positioning */
.tp-feature-item {
  margin-top: -40px; /* Increased negative margin to pull up stats section more */
  position: relative;
  z-index: 3;
  background: var(--white); /* Ensure background covers any overlap */
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Ticker tape animation */
.ticker-wrap {
  background: var(--primary-color);
  width: 100%;
  height: 40px;
  overflow: hidden;
  position: relative;
}

.ticker {
  height: 100%;
  display: flex;
  align-items: center;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  padding-left: 100%;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 2rem;
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.ticker-item i {
  margin-right: 8px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

.ticker-wrap:hover .ticker {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .ticker-wrap {
    height: 35px;
  }
  
  .ticker-item {
    font-size: 13px;
    padding: 0 1.5rem;
  }
  
  .ticker-item i {
    font-size: 14px;
  }
}

/* Simple Marquee Animation */
@keyframes simple-marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.simple-marquee {
  background-color: #ff5e14;
  overflow: hidden;
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}

.simple-marquee-content {
  display: flex;
  animation: simple-marquee 20s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.simple-marquee-content span {
  color: white;
  padding: 0 30px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.simple-marquee-content i {
  margin-right: 8px;
}

.simple-marquee:hover .simple-marquee-content {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .simple-marquee {
    height: 35px;
  }
  .simple-marquee-content span {
    padding: 0 20px;
    font-size: 13px;
  }
}

/* Bulletproof Marquee */
.marquee-outer {
  width: 100%;
  overflow: hidden;
  background: #ff5e14;
  height: 40px;
  display: flex;
  align-items: center;
  position: relative;
}
.marquee-inner {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-move 18s linear infinite;
}
.marquee-inner span {
  display: inline-block;
  color: #fff;
  padding: 0 30px;
  font-size: 15px;
  line-height: 40px;
  vertical-align: middle;
}
.marquee-inner i {
  margin-right: 8px;
}
@keyframes marquee-move {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-outer:hover .marquee-inner {
  animation-play-state: paused;
}
@media (max-width: 768px) {
  .marquee-outer { height: 32px; }
  .marquee-inner span { font-size: 13px; padding: 0 16px; line-height: 32px; }
}

/* New Marquee Implementation */
.top-marquee {
  background: linear-gradient(to right, #1a2a38, #2a3f54, #1a2a38);
  overflow: hidden;
  height: 36px;
  position: relative;
  width: 100%;
}

.top-marquee-content {
  display: block;
  width: fit-content;
  height: 100%;
  position: absolute;
  overflow: hidden;
  animation: marquee 15s linear infinite;
  padding-left: 100%;
}

.marquee-item {
  float: left;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 25px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  position: relative;
}

.marquee-item:after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.marquee-item:last-child:after {
  display: none;
}

.marquee-item i {
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 16px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.top-marquee:hover .top-marquee-content {
  animation-play-state: paused;
}

/* Force Color Overrides */
.tp-header-top,
.tp-header-mobile {
    background: #4A49FF !important;
    background-color: #4A49FF !important;
}

.tp-header-search-btn {
    background: #FF6B00 !important;
    color: #FFFFFF !important;
}

.tp-header-search-wrapper {
    border: 1px solid #D1D5DB !important;
}

.tp-header-search-wrapper input {
    color: #1E1E1E !important;
}

.tp-header-search-clear {
    color: #6B7280 !important;
}

/* Text Colors */
body {
    color: #1E1E1E !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #1E1E1E !important;
}

p, span {
    color: #6B7280 !important;
}

/* Buttons */
.tp-btn,
.btn-primary {
    background: #FF6B00 !important;
    color: #FFFFFF !important;
    border: none !important;
}

/* Success States */
.success,
.text-success {
    color: #28C76F !important;
}

/* Error States */
.error,
.text-danger {
    color: #F14646 !important;
}

/* Disabled States */
.disabled,
button:disabled {
    background: #E5E7EB !important;
    color: #6B7280 !important;
}

/* Links */
a:not(.tp-btn):not(.btn) {
    color: #4A49FF !important;
}

/* Borders */
.border,
.card,
.input,
select,
textarea {
    border-color: #D1D5DB !important;
}

/* Background Colors */
.bg-white,
.card,
.dropdown-menu {
    background: #FFFFFF !important;
}

/* Force header colors */
#header-sticky-2,
.tp-header-sticky-area {
    background: #4A49FF !important;
}

/* Mobile menu colors */
.tp-mobile-menu,
.offcanvas__area {
    background: #4A49FF !important;
}

/* Search button in all contexts */
button[type="submit"],
.search-btn,
.tp-header-search-btn {
    background: #FF6B00 !important;
    color: #FFFFFF !important;
}

/* Cart and action buttons */
.tp-cart-btn,
.action-btn,
.tp-header-action-btn {
    background: #FF6B00 !important;
    color: #FFFFFF !important;
} 