/* Main Styles for Shoping.ph Website */
:root {
  --primary-color: #4CAF50;
  --secondary-color: #2E7D32;
  --accent-color: #FFC107;
  --text-color: #333333;
  --light-color: #FFFFFF;
  --dark-color: #212121;
  --gray-color: #F5F5F5;
  --border-color: #E0E0E0;
  --danger-color: #FF5252;
  --section-padding: 5rem 0;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 1rem;
  color: var(--text-color);
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  position: relative;
  margin-bottom: 2.5rem;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}

.text-center h2:after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.text-center {
  text-align: center;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  padding: 0 15px;
  flex: 1;
}

.col-1 { flex: 0 0 8.33%; max-width: 8.33%; }
.col-2 { flex: 0 0 16.66%; max-width: 16.66%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.33%; max-width: 33.33%; }
.col-5 { flex: 0 0 41.66%; max-width: 41.66%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.33%; max-width: 58.33%; }
.col-8 { flex: 0 0 66.66%; max-width: 66.66%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.33%; max-width: 83.33%; }
.col-11 { flex: 0 0 91.66%; max-width: 91.66%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

.section {
  padding: var(--section-padding);
}

.section-sm {
  padding: 3rem 0;
}

.section-lg {
  padding: 7rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: var(--light-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-transparent {
  background-color: transparent;
  box-shadow: none;
}

.header-transparent .nav-link {
  color: var(--light-color);
}

.header-transparent.scrolled {
  background-color: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-transparent.scrolled .nav-link {
  color: var(--text-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 1.5rem;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.pexels.com/photos/1476321/pexels-photo-1476321.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--light-color);
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--light-color);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

/* Features */
.features {
  background-color: var(--gray-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(76, 175, 80, 0.1);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.feature-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background-color: var(--light-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--accent-color);
  color: var(--dark-color);
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 3px;
  font-weight: 500;
}

.product-body {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.product-price {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.current-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.old-price {
  text-decoration: line-through;
  font-size: 0.9rem;
  color: #999;
  margin-left: 0.5rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: #f9f9f9;
  border-top: 1px solid var(--border-color);
}

.add-to-cart {
  border: none;
  background-color: transparent;
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.add-to-cart i {
  margin-right: 5px;
}

.add-to-cart:hover {
  color: var(--secondary-color);
}

.product-rating {
  display: flex;
  align-items: center;
}

.product-rating i {
  color: var(--accent-color);
  font-size: 0.9rem;
}

/* Categories */
.categories {
  background-color: var(--light-color);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.category-card {
  position: relative;
  height: 250px;
  border-radius: 5px;
  overflow: hidden;
}

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

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

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.category-title {
  color: var(--light-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0;
}

/* Testimonials */
.testimonials {
  background-color: var(--gray-color);
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-card:last-child {
  margin-bottom: 0;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-content:before {
  content: '"';
  font-size: 4rem;
  color: rgba(76, 175, 80, 0.1);
  position: absolute;
  top: 10px;
  left: 10px;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0;
}

/* Games Section */
.games {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 4rem 0;
}

.games h2 {
  color: var(--light-color);
}

.games h2:after {
  background: var(--accent-color);
}

.games-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.game-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.game-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.game-card h3 {
  color: var(--light-color);
  margin-bottom: 1rem;
}

.game-card p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.game-links a {
  color: var(--accent-color);
  margin-right: 1rem;
  font-weight: 500;
}

.game-links a:hover {
  text-decoration: underline;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: var(--light-color);
  padding: 4rem 0;
}

.newsletter h2 {
  color: var(--light-color);
}

.newsletter h2:after {
  background: var(--accent-color);
}

.newsletter-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 0 1.5rem;
  background-color: var(--accent-color);
  color: var(--dark-color);
  border: none;
  border-radius: 0 4px 4px 0;
  font-weight: 600;
  cursor: pointer;
}

.newsletter-form button:hover {
  background-color: #FFB300;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 0;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 40px;
}

.footer h4 {
  color: var(--light-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
  margin-bottom: 2rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 0.8rem;
  color: var(--light-color);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
  transform: translateY(-3px);
}

.contact-info {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  margin-bottom: 1rem;
}

.contact-item i {
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
}

.payment-methods {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.payment-methods img {
  height: 30px;
  margin: 0 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .features-grid,
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .games-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .row {
    flex-direction: column;
  }
  
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    max-width: 100%;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background-color: var(--light-color);
    flex-direction: column;
    padding: 2rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 1rem 0;
    text-align: center;
  }
  
  .features-grid,
  .category-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: 4px;
    margin-bottom: 1rem;
  }
  
  .newsletter-form button {
    border-radius: 4px;
    padding: 0.8rem;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}
