/* ✅ 모든 요소 공통 설정 */
        * {
          box-sizing: border-box;   /* padding, border 포함해서 width 계산 */
          margin: 0;                /* 브라우저 기본 여백 제거 */
          padding: 0;               /* 브라우저 기본 안쪽 여백 제거 */
        }

        /* ✅ 전체 페이지에 적용할 기본 스타일 */
        body {
          background-color: #f8f9fa;             /* 연회색 배경 (Bootstrap 기본톤) */
          font-family: Arial, sans-serif;        /* 기본 폰트 (웹 안전 폰트) */
          padding: 0px;                         /* 페이지 바깥 여백 */
          font-size: 16px;                       /* 기본 글자 크기 */
          line-height: 1.6;                      /* 줄 간격 */
          color: #212529;                        /* 본문 글자 색상 (어두운 회색) */
        }

        /* ✅ a 태그(링크)의 기본 스타일 */
        a {
          color: #007bff;              /* 파란색 링크 */
          text-decoration: none;       /* 밑줄 제거 */
        }
        a:hover {
          text-decoration: underline;  /* 마우스 오버 시 밑줄 표시 */
        }

        /* ✅ 기본 제목 태그 (h1~h6) 여백 조정 */
        h1, h2, h3, h4, h5, h6 {
          margin-bottom: 0.75em;       /* 제목 아래 여백으로 글자와 글자 사이 공백 확보 */
          font-weight: bold;           /* 기본적으로 굵게 */
        }

        /* ✅ 단락(p) 기본 여백 설정 */
        p {
          margin-bottom: 1em;
        }

        /* ✅ 반응형 폰트 크기 조정 */
        /* 기본 (모바일 기준) */
        html {
          font-size: 16px;
        }
        body {
          font-size: 16px;
        }

        /* 📱 모바일 (최대 576px) 화면에 글자 크기  */
         @media (max-width: 576px) {  
          html {
            font-size: 16px;
          }
          body {
            font-size: 16px;
          }
          
        }

        /* 📱 모바일 (최대 767px) 화면에 글자 크기  */
        @media (max-width: 767px) {
          html {
            font-size: 16px;
          }
          body {
            font-size: 16px;
          }
        }

        /* 💻 태블릿 (768px ~ 1199px) 화면에 글자 크기  */
        @media (min-width: 768px) and (max-width: 1199px) {
          html {
            font-size: 17px;
          }
          body {
            font-size: 17px;
          }          
        }

        /* 🖥️ 데스크탑 (1200px 이상) 화면에 글자 크기 */
        @media (min-width: 1200px) {
          html {
            font-size: 18px;
            /* 웹 페이지 전체의 기준 글자 크기를 설정 모든 글꼴의 기준 크기가 18px로 설정됨 */
          }
          body {
            font-size: 18px; 
            /* body css로  안 일반 글자 18px에 적용을 받음 */
          }
          .navbar-nav {
            flex-wrap: nowrap;        /* 🔑 메뉴 항목 줄바꿈 방지 */
            overflow-x: auto;         /* 넘칠 경우 가로 스크롤 생성 */
          }
        }
        
         /* 네비게이션 메뉴 항목 글자 크기 */
        .navbar-nav .nav-link {
          font-size: 1rem;    /* 필요에 따라 0.8rem, 12px 등으로 조정 */
        }
      
        /* 상단 사용자 이름 표시 영역 글자 크기 */
        .navbar-text {
          font-size: 1rem;
        }

        /* 버튼 내 글자 크기 (선택적으로 적용) */
        .navbar .btn {
          font-size: 1rem;
        }

         /* ✅ 유튜브, 게시물, 상품 외곽 박스 강조 스타일 */
        .border-box {
          border: 1px solid #007bff;           /* 파란색 외곽선 */
          border-radius: 12px;                 /* 둥근 테두리 */
          background-color: #fff;              /* 배경은 흰색 */
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);  /* 부드러운 그림자 효과 */
          margin-bottom: 30px;                 /* 아래쪽 공간 */
        }

        /* ✅ 섹션 제목 h4 스타일 */
        h4 {
          margin-bottom: 15px;                      /* 하단 여백 */
          font-weight: bold;                        /* 굵은 글씨 */
        }

        /* ✅ 테이블 기본 설정 */
        table {
          width: 100%;                              /* 전체 너비 */
          border-collapse: collapse;               /* 셀 경계선 겹침 제거 */
          background-color: #fff;                   /* 배경 흰색 */
          box-shadow: 0 2px 6px rgba(0,0,0,0.05);   /* 살짝 그림자 효과 */
          border-radius: 5px;                       /* 모서리 둥글게 */
          overflow: hidden;                         /* 테두리 밖 내용 숨김 */
        }

        /* ✅ 테이블 셀 스타일 */
        table th, table td {
          border-bottom: 1px solid #eee;            /* 하단 경계선 */
          padding: 12px 10px;                       /* 내부 여백 */
          text-align: left;                         /* 좌측 정렬 */
          vertical-align: top;                      /* 위쪽 정렬 */
        }

        /* ✅ 테이블 헤더 셀 스타일 */
        table th {
          background-color: #f2f2f2;                /* 헤더 배경색 */
          font-weight: 600;                         /* 헤더 굵은 글씨 */
        }

        /* ✅ 테이블 행 hover 효과 */
        table tr:hover {
          background-color: #f9f9f9;                /* 마우스 오버 시 연회색 배경 */
        }

        /* ✅ 버튼 기본 스타일 */
        button {
          padding: 5px 10px;                        /* 버튼 내부 여백 */
          font-size: 16px;                          /* 글자 크기 */
          background-color: #007BFF;                /* 파란색 배경 */
          border: none;                             /* 테두리 없음 */
          border-radius: 4px;                       /* 둥근 모서리 */
          color: white;                             /* 흰색 글씨 */
          cursor: pointer;                          /* 마우스 커서 변경 */
        }

        /* ✅ 버튼 hover 시 스타일 */
        button:hover {
          background-color: #0056b3;                /* 더 진한 파랑 */
        }

        /* ✅ 드롭다운(select) 스타일 */
        select {
          padding: 5px 8px;                         /* 내부 여백 */
          border: 1px solid #ccc;                   /* 회색 테두리 */
          border-radius: 4px;                       /* 둥근 모서리 */
        }

        /* ✅ 텍스트 입력 필드 스타일 */
        input[type="text"] {
          padding: 6px 10px;                        /* 내부 여백 */
          border: 1px solid #ccc;                   /* 회색 테두리 */
          border-radius: 4px;                       /* 둥근 모서리 */
        }

        /* ✅ 리스트(ul) 전체 스타일 */
        ul {
          list-style: none;                         /* 기본 리스트 마커 제거 */
          padding-left: 0;                          /* 왼쪽 여백 제거 */
          margin-top: 8px;                          /* 위 여백 */
        }

        /* ✅ 리스트 항목(li) 스타일 */
        ul li {
          margin-bottom: 6px;                       /* 아래 간격 */
          background: #f7f7f7;                      /* 연한 회색 배경 */
          padding: 6px 8px;                         /* 내부 여백 */
          border-radius: 4px;                       /* 둥근 모서리 */
          font-size: 16px;                          /* 글자 크기 */
        }

        /* ✅ 리스트 내 버튼 (예: 삭제 버튼 등) */
        ul li button {
          background-color: #dc3545;                /* 붉은색 배경 */
          margin-left: 6px;                         /* 왼쪽 여백 */
          padding: 2px 6px;                         /* 작게 */
          font-size: 12px;                          /* 작게 */
        }

        /* ✅ 필터 입력창, 버튼 그룹 레이아웃 */
        .filter-box {
          display: flex;                            /* 가로 정렬 */
          flex-wrap: wrap;                          /* 줄바꿈 허용 */
          gap: 10px;                                /* 요소 간 간격 */
          align-items: center;                      /* 세로 중앙 정렬 */
          margin-bottom: 15px;                      /* 하단 여백 */
        }

        /* ✅ 필터 영역 안 input/select 크기 통일 */
        .filter-box input,
        .filter-box select {
          font-size: 14px;                          /* 글자 크기 */
        }

        /* ✅ 필터 버튼 (초록색) */
        .filter-box button {
          background-color: #28a745;                /* 초록 배경 */
        }

        /* ✅ 필터 버튼 hover 스타일 */
        .filter-box button:hover {
          background-color: #218838;                /* 더 진한 초록 */
        }

        /* ✅ 페이지네이션 버튼 영역 */
        .pagination-buttons {
          margin-top: 10px;                         /* 상단 여백 */
          text-align: center;                       /* 가운데 정렬 */
        }

        /* ✅ 페이지네이션 버튼 스타일 */
        .pagination-buttons button {
          margin: 0 5px;                            /* 좌우 여백 */
          background-color: #6c757d;                /* 회색 배경 */
        }

        /* ✅ 페이지네이션 버튼 hover 효과 */
        .pagination-buttons button:hover {
          background-color: #495057;                /* 더 진한 회색 */
        }


        /* 📱 [모바일 화면: 가로 576px 이하] */
        @media (max-width: 576px) {
          body {
            background-color: snow; /* 밝은 배경색으로 가독성 향상 (모바일 전용) */
          }
          .navbar .btn {
            font-size: 0.8rem;         /* 버튼 텍스트 크기 작게 조정 */
            padding: 0.3rem 0.6rem;    /* 버튼 안쪽 여백 줄여서 공간 확보 */
          }
          #searchInput {
            width: 100%;               /* 검색창을 전체 너비로 확장 */
          }
          .product {
            width: 100% !important;    /* 상품 카드 너비를 화면 전체로 */
            height: auto;              /* 높이를 내용에 따라 자동 조절 */
          }
        }

        /* 📱💻 [태블릿 화면: 가로 577px ~ 768px] */
        @media (min-width: 577px) and (max-width: 768px) {
          body {
            background-color: whitesmoke; /* 태블릿 전용 배경색 */
          }
          .product {
            width: 90%;                /* 상품 카드 너비를 90%로 설정 (좌우 여백 확보) */
            margin: auto;              /* 가운데 정렬 */
          }
          
        }

        /* 💻 [노트북/중간 해상도: 가로 769px ~ 1199px] */
        @media (min-width: 769px) and (max-width: 1199px) {
          body {
            background-color: seashell; /* 중간 화면 전용 배경색 */
          }
          .product {
            width: 90%;                /* 상품 카드 너비를 90%로 설정 */
            margin: auto;              /* 가운데 정렬 */
          }
          .navbar-text {
            display: none;             /* 텍스트 요소 숨김 (공간 절약) */
          }
        }

        /* 🖥️ [데스크탑/대형 화면: 가로 1200px 이상] */
        @media (min-width: 1200px) {
          body {
            background-color: honeydew; /* 데스크탑 전용 배경색 */
          }
          .product {
            width: 300px;              /* 상품 카드 고정 너비 설정 */
          }
          .navbar-text {
            font-size: 1rem;           /* 네비게이션 텍스트 크기 조정 */
            display: inline-block;     /* 텍스트 보이도록 설정 */
          }
        }