/*
filename: style.css
version: 4.4
*/

/* Global Resets & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  background-color: #f9fafb;
  color: #222;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Navbar */
.navbar {
  background: #000; /* blue-600 */
  padding: 10px 20px;
  color: #fff;
  display: flex;
  align-items: center;
}
.navbar a {
  color: #fff;
  margin-right: 15px;
  font-weight: 500;
}
.navbar a:hover {
  text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 10px;
}

/* Buttons */
.button, input[type="submit"], button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  background: #22c55e; /* green-500 */
  color: #fff;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s;
}
.button:hover,
input[type="submit"]:hover,
button:hover {
  background: #16a34a; /* green-600 */
}

/* Inputs, Textareas, Selects */
.input-field,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 4px;
  border: 1px solid #d1d5db; /* gray-300 */
  font-size: 0.95rem;
}
.input-field:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2563eb; /* blue-600 */
}


/* Media Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.media-item {
/*  background: #fff;
  border: 1px solid #e5e7eb; 
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);*/
}
.media-item img, .media-item video {
  width: 100%;
  border-radius: 4px;
}
.media-item audio {
  width: 100%;
}

/* Cart items, Order items, etc. */
.cart-item,
.order-item,
.user-item {
  border: 1px solid #e5e7eb; 
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  background: #fff;
}

    .hero-video-container {
            position: relative;
            width: 100%;
            height: 60vw;
            overflow: hidden;
		
        }
        .hero-video-container video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        /* Overlay Caption */
        .hero-overlay {
            position: absolute;
            top: 0; 
            left: 0;
            width: 100%;
            height: 100%;
            display: flex; 
            flex-direction: column;
            justify-content: center; 
            align-items: center;
            text-align: center;
            color: #fff;
            background: rgba(0,0,0,0.2);
        }
        .hero-overlay h1 {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            text-shadow: 0 2px 4px rgba(0,0,0,0.8);
        }
        .hero-overlay p {
            font-size: 1.2rem;
            max-width: 600px;
            margin: 0 auto 1.5rem;
            text-shadow: 0 2px 4px rgba(0,0,0,0.8);
        }
        .hero-button {
            padding: 12px 24px;
            border: 2px solid #fff;
            border-radius: 6px;
            color: #fff;
            font-size: 1rem;
            font-weight: 500;
            text-decoration: none;
            transition: background 0.3s;
        }
        .hero-button:hover {
            background: rgba(255,255,255,0.2);
        }

        /* SEARCH BAR WRAPPER - so we can make it sticky */
        .search-bar-wrapper {
            position: relative;
            z-index: 999; /* above other elements */
			margin:2vw;
        }
        /* The actual search bar */
        .top-search-bar {
			
            background: rgba(255,255,255,0.9);
            border-radius: 8px;
            display: flex;
            align-items: center;
            padding: 8px 12px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.15);
            transition: all 0.3s ease;
            margin: 0 auto;
            max-width: 800px;
        }
        .top-search-bar select {
            border: none;
            background: #f5f5f5;
            font-size: 1rem;
            margin-right: 10px;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 4px;
        }
        .top-search-bar input[type="text"] {
            border: none;
            outline: none;
            font-size: 1rem;
            width: 400px;
            padding: 8px;
            margin-right: 10px;
            border-radius: 4px;
            background: #f5f5f5;
        }
        .top-search-bar button {
            background: #2563eb;
            color: #fff;
            border: none;
            border-radius: 4px;
            padding: 8px 16px;
            cursor: pointer;
            font-size: 1rem;
        }
        .top-search-bar button:hover {
            background: #1e4fb8;
        }

        /* Sticky class triggered by JS */
        .sticky-search {
            position: fixed;
            top: 60px; /* just below main nav if nav is ~60px tall */
            left: 0;
            right: 0;
            margin: 0 auto;
            max-width: 800px;
        }

        /* Icon row (iPhone-like) */
        .icon-row {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            margin: 20px 0;
            gap: 20px;
        }
        .icon-box {
            width: 80px;
            height: 80px;
            background: #000;
            border-radius: 16px;
            color: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        .icon-box i {
            font-size: 1.5rem;
            margin-bottom: 5px;
        }
        .icon-title {
            font-size: 0.8rem;
        }

        /* Tag Chips */
        .tag-chips {
            margin: 20px 0;
            text-align: center;
        }
        .tag-chip {
            display: inline-block;
            padding: 8px 12px;
            margin: 5px;
            border-radius: 20px;
            border: 2px solid #000;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
        }
        .tag-chip:hover {
            background: #f0f0f0;
        }

        /* Media Grid */
        .media-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 20px;
            margin-bottom: 20px;
        }
        .media-item {
            overflow: hidden;
            cursor: pointer;
            text-align: center;
            background: #fff;
            border-radius: 10px;
        }
        .media-item video {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 10px;
        }

/* Responsiveness */
@media (max-width: 768px) {
  .container {
    width: 95%;
    margin-top: 10px;
    padding: 15px;
  }
  .hero-video-container {
    height: 60vh; /* shorter hero on mobile */
  }
  .media-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns on small screens */
  }
}

@media (max-width: 480px) {
  .media-grid {
    grid-template-columns: 1fr; /* single column on extra small screens */
  }
  .hero-video-container {
    height: 50vh;
  }
}
