/* OhWow International - Responsive CSS */

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

img {
  max-width: 100%;
  height: auto;
}

/* Alert Styles */
.alert-container {
  padding: 15px;
  max-width: 1200px;
  margin: 15px auto;
}

.alert {
  padding: 15px 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  position: relative;
}

.alert i {
  margin-right: 10px;
  font-size: 18px;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.alert-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}

.alert-close:hover {
  opacity: 1;
}

/* Header Styles */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 20px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-right a {
  text-decoration: none;
  color: #1a5da3;
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

.header-right a i {
  font-size: 1.2rem;
}

.header-right a span.underline {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffda03;
}

/* Responsive Header Styles */
@media screen and (max-width: 768px) {
  .site-header {
    padding: 12px 15px;
  }

  .logo {
    font-size: 1.5rem;
  }

  .header-right {
    gap: 15px;
  }
}

@media screen and (max-width: 576px) {
  .site-header {
    padding: 10px;
  }

  .header-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .logo {
    margin-bottom: 5px;
  }

  .header-right {
    width: 100%;
    justify-content: center;
  }
}

.site-logo {
  flex: 0 0 auto;
  font-size: 1.5rem;
  text-decoration: none;
}

.site-logo-text {
  color: #ffda03;
  font-weight: bold;
}

.site-logo-text span {
  color: #1a5da3;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #333;
  font-size: 1.5rem;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.main-nav-item a {
  text-decoration: none;
  color: #333;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.main-nav-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: #ffda03;
  transition: width 0.3s ease;
}

.main-nav-item a:hover,
.main-nav-item a.active {
  color: #1a5da3;
}

.main-nav-item a:hover::after,
.main-nav-item a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-link {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.header-link:hover {
  color: #1a5da3;
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #333;
}

/* Hero Section */
.hero-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  max-width: 800px;
  padding: 20px;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: #ffda03;
  color: #333;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.hero-button:hover {
  background-color: #e5c400;
  transform: translateY(-2px);
}

/* Features Section */
.features-section {
  padding: 50px 0;
  background-color: #f9f9f9;
  margin-bottom: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-box {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 2.5rem;
  color: #ffda03;
  margin-bottom: 20px;
}

.feature-title {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* Categories Section */
.categories-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #1a5da3;
}

.section-subheading {
  color: #666;
  font-size: 1.1rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.category-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-icon {
  width: 80px;
  height: 80px;
  background: #1a5da3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.1);
  background: #ffda03;
}

.category-icon i {
  font-size: 2rem;
  color: white;
}

.category-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
}

.category-description {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.explore-btn {
  color: #1a5da3;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.category-card:hover .explore-btn {
  color: #ffda03;
  gap: 12px;
}

/* Products Section */
.products-section {
  padding: 60px 0;
  background-color: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-link {
  text-decoration: none;
  color: inherit;
}

.product-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.product-info {
  padding: 20px;
  background: white;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-title {
  font-size: 1.5rem;
  color: #333;
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

.product-category {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.product-price {
  font-size: 1.4rem;
  color: #000;
  font-weight: bold;
  margin: 5px 0;
}

.add-to-cart-form {
  padding: 0 20px 20px;
}

.quantity-input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
}

.add-to-cart-btn {
  width: 100%;
  padding: 12px;
  background-color: #1a5da3;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1rem;
}

.add-to-cart-btn:hover {
  background-color: #164785;
  transform: translateY(-2px);
}

.add-to-cart-btn.out-of-stock {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Footer Section */
.site-footer {
  background-color: #222;
  color: white;
  padding: 60px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo h2 {
  color: #ffda03;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-logo span {
  color: #4a9eff;
}

.footer-logo p {
  color: #bbb;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.footer-links h3,
.footer-contact h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #ffda03;
}

.footer-contact p {
  color: #bbb;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .features-grid,
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .section-heading {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav {
    flex-basis: 100%;
    display: none;
    margin-top: 20px;
  }
  .header-actions{
    flex-basis: 100%;
    display: none;
    margin-top: 20px;
  }
  .main-nav.show {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .main-nav-list {
    flex-direction: column;
    width: 100%;
  }
  
  .header-actions {
    margin-left: auto;
  }
  
  .hero-section {
    min-height: 400px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .product-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .features-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-contact p {
    justify-content: center;
  }
  
  .hero-section {
    min-height: 350px;
  }
  
  .hero-button {
    padding: 12px 30px;
  }
  
  .section-heading {
    font-size: 1.5rem;
  }
  
  .header-container {
    flex-wrap: wrap;
  }
  
  .site-logo {
    flex: 1;
  }
}

/* Responsive styles for cart page */

/* For tablets and smaller screens */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header {
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.5rem;
    }

    .header-right {
        margin-left: auto;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .form-control {
        width: 70px !important;
    }
}

/* For mobile devices */
@media screen and (max-width: 576px) {
    header {
        padding: 10px;
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 10px;
    }

    .header-right {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .container {
        margin-top: 2rem !important;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Stack buttons vertically on mobile */
    .btn-primary,
    .btn-success {
        display: block;
    }

    /* Adjust table for better mobile view */
    table thead {
        display: none;
    }

    table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
    }

    table td {
        display: block;
        text-align: right;
        padding: 0.5rem;
        border: none;
    }

    table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
    }

    .form-control {
        width: 100% !important;
    }
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .main-nav-list {
        gap: 1rem;
    }

    .header-actions {
        gap: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    body {
        padding-bottom: 60px; /* Space for mobile navigation */
    }
}

/* Mobile Navigation Animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.mobile-categories-dropdown.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        padding: 0.5rem;
    }

    .brand-logo {
        font-size: 1.2rem;
    }

    .cart-amount {
        font-size: 0.9rem;
    }

    .table {
        border: 0;
    }

    .table thead {
        display: none;
    }

    .table tr {
        margin-bottom: 1rem;
        display: block;
        border: 1px solid var(--border-color);
        border-radius: 4px;
    }

    .table td {
        display: block;
        text-align: right;
        padding: 0.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .table td:last-child {
        border-bottom: 0;
    }

    .table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.85em;
    }

    .cart-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .header-container {
        padding: 0.75rem;
    }

    .table td {
        padding: 0.75rem;
    }

    .cart-actions {
        padding: 1rem 0;
    }
}

@media (min-width: 1025px) {
    .container {
        padding: 0 2rem;
    }

    .table {
        margin-bottom: 2rem;
    }

    .cart-actions {
        padding: 1.5rem 0;
    }
} 