/*
Theme Name: SureStore Plus
Theme URI: https://example.com/surestore-plus
Author: Your Name
Author URI: https://example.com
Description: A modern, feature-rich online store theme with Surecart integration.
Version: 1.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: surestore-plus
Tags: e-commerce, online store, responsive, modern, sleek
*/

/* Import Google Fonts for modern typography */
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* Base Reset & Global Styles */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #333;
  line-height: 1.6;
}

/* Containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header with sticky behavior */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease, padding 0.3s ease;
  padding: 20px 0;
}
.site-header.sticky {
  background: #f8f8f8;
  padding: 10px 0;
}

/* Header inner layout */
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Branding */
.site-branding h1 a {
  color: #333;
  font-size: 1.8rem;
  text-decoration: none;
}

/* Navigation */
.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation li {
  margin: 0 15px;
}
.main-navigation li a {
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}
.main-navigation li a:hover {
  color: #0073aa;
}

/* Off-canvas Mobile Menu (hidden by default) */
.off-canvas-menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background: #ffffff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 1100;
  padding: 20px;
}
.off-canvas-menu.active {
  right: 0;
}
.off-canvas-menu ul {
  list-style: none;
  padding: 0;
}
.off-canvas-menu li {
  margin-bottom: 15px;
}

/* Mobile menu toggle button */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Cart */
.cart a {
  color: #333;
  font-size: 1.2rem;
  text-decoration: none;
}

/* Main Content – add top margin to account for fixed header */
.site-main {
  margin-top: 100px;
}

/* Product Grid using CSS Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

/* Individual Product Item */
.product-item {
  background: #fff;
  border: 1px solid #eaeaea;
  padding: 20px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.product-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.btn:hover {
  background: #005177;
}

/* Footer */
.site-footer {
  background: #222;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}
.site-footer a {
  color: #fff;
  text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .main-navigation {
    display: none;
  }
}
